https://github.com/ajlekcahdp4/llvm-api-gen
Generate C++ llvm code from llvm IR
https://github.com/ajlekcahdp4/llvm-api-gen
Last synced: about 1 month ago
JSON representation
Generate C++ llvm code from llvm IR
- Host: GitHub
- URL: https://github.com/ajlekcahdp4/llvm-api-gen
- Owner: ajlekcahdp4
- License: mit
- Created: 2024-10-12T14:33:03.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-10-22T13:12:18.000Z (8 months ago)
- Last Synced: 2025-05-07T05:04:36.418Z (about 1 month ago)
- Language: C++
- Homepage:
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# llvm-api-gen
## Install dependencies
To install all needed dependencies run [nix](https://nixos.org/download/)
```sh
nix develop
```## Build
```sh
meson setup build
meson compile -C build
```Or using nix build:
```sh
nix build .
```## Run
To run compiled:
```sh
opt -load-pass-plugin build/lib/libllvm-api-gen.so -passes "llvm-api-gen" build/highlife.ll --disable-output
```Or (if you used nix build)
```sh
opt -load-pass-plugin result/lib/libllvm-api-gen.so -passes "llvm-api-gen" build/highlife.ll --disable-output
```