Skip to content

woodruffw/llvm-passgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llvm-passgen

license CI

A tool for rapidly creating LLVM pass skeletons.

Overview

cargo install llvm-passgen
# or, build locally with `cargo build`

Usage

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:

LLVM_DIR=/path/to/llvm/lib/cmake cmake ..

See llvm-passgen --help for a full list of options.