https://github.com/woodruffw/llvm-passgen
A small tool for quickly generating LLVM passes
https://github.com/woodruffw/llvm-passgen
llvm llvm-pass rust
Last synced: about 1 year ago
JSON representation
A small tool for quickly generating LLVM passes
- Host: GitHub
- URL: https://github.com/woodruffw/llvm-passgen
- Owner: woodruffw
- License: other
- Created: 2019-09-26T22:27:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-31T21:39:24.000Z (about 1 year ago)
- Last Synced: 2025-04-06T07:18:42.847Z (about 1 year ago)
- Topics: llvm, llvm-pass, rust
- Language: Rust
- Homepage: https://crates.io/crates/llvm-passgen
- Size: 276 KB
- Stars: 28
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
llvm-passgen
============

[](https://github.com/woodruffw/llvm-passgen/actions/workflows/ci.yml)
A tool for rapidly creating LLVM pass skeletons.
## Overview
```bash
cargo install llvm-passgen
# or, build locally with `cargo build`
```
## Usage
```bash
llvm-passgen --kind module Foo
cd Foo/build
cmake ..
make
```
If `cmake ..` fails, you may need to set `LLVM_DIR` to the LLVM CMake configuration:
```bash
LLVM_DIR=/path/to/llvm/lib/cmake cmake ..
```
See `llvm-passgen --help` for a full list of options.