{"id":13991885,"url":"https://github.com/mshockwave/generator-llvm","last_synced_at":"2025-07-13T12:04:09.240Z","repository":{"id":23344534,"uuid":"98758468","full_name":"mshockwave/generator-llvm","owner":"mshockwave","description":"Generate project templates for executables that use LLVM and LLVM passes","archived":false,"fork":false,"pushed_at":"2022-04-28T21:11:05.000Z","size":165,"stargazers_count":52,"open_issues_count":6,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-27T07:44:50.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mshockwave.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-29T20:58:20.000Z","updated_at":"2024-12-18T06:00:03.000Z","dependencies_parsed_at":"2022-07-07T16:51:37.530Z","dependency_job_id":null,"html_url":"https://github.com/mshockwave/generator-llvm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshockwave%2Fgenerator-llvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshockwave%2Fgenerator-llvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshockwave%2Fgenerator-llvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mshockwave%2Fgenerator-llvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mshockwave","download_url":"https://codeload.github.com/mshockwave/generator-llvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251106450,"owners_count":21537168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T14:01:39.267Z","updated_at":"2025-04-27T07:44:56.113Z","avatar_url":"https://github.com/mshockwave.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# LLVM Executable/Pass Templates Generator\n\nGenerate project templates for executables that use LLVM \nand LLVM passes.\n\n## Generator Kinds \u0026 Guides\n#### Standalone Executable(`executable`)\nA normal executable program that uses LLVM.\n\n#### Pass(`pass`)\nA LLVM pass that can be easily integrated into LLVM project in the future. See [this](https://llvm.org/docs/CMake.html#id15) for more information\n\n#### Executable(`tool`)(Status: _TBD_)\nA executable program that can be easily integrated into LLVM project as one of the tools in the future.\n\n## Install\nRequirements:\n - [Node.js](https://nodejs.org/en/download/)\n - [npm](https://www.npmjs.com/get-npm) or [yarn](https://yarnpkg.com/en/docs/install)\n\nInstall yeoman:\n```\nnpm install -g yo\n```\nInstall this generator from npm repository\n```\nnpm install -g generator-llvm\n```\n\n## Usage\n### Generating Standalone Executable\nBoostraping a new project:\n```\nyo llvm:executable init\n```\nAdding new program to existing (executable)project\n```\nyo llvm:executable append\n```\n\n### Generating New Pass\nBoostraping a new project\n```\nyo llvm:pass init\n```\nAdding new program to existing (pass)project\n```\nyo llvm:pass append\n```\nIf you like to stay on bleeding edge and want to try the new PassManager pass, add the `--new-pm` at the tail:\n```\nyo llvm::pass init --new-pm\n# Same option applies to the \"append\" command as well\n```\nThe generated pass is also loaded as an external plugin. Please refer to [this article](https://medium.com/@mshockwave/writing-llvm-pass-in-2018-part-i-531c700e85eb) I wrote about how to run a new PassManager pass.\n\n#### Note\nIf you append new executable/pass to existing project, it would show the following message:\n```\n conflict ../CMakeLists.txt\n? Overwrite ../CMakeLists.txt? (ynaxdH)\n```\nIt is because that we're trying to modify an exist file(the top-level CMakeLists.txt), which is not what yeoman glad to see. However, in this case, press `y` to overrite is totally fine.\n\n## Development\n(In this repo folder)Install dependencies:\n```\nnpm install\n```\nTemporary link to yeoman's generator repository\n```\nnpm link\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmshockwave%2Fgenerator-llvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmshockwave%2Fgenerator-llvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmshockwave%2Fgenerator-llvm/lists"}