Skip to content

phypoh/llvm-pass-skeleton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llvm-pass-skeleton

Sample LLVM pass templates. Adapted from Prof Adrian Sampson's template to include support for Module passes. For more details on how to create a LLVM pass, check out Prof Sampson's LLVM for Grad Students

It's for LLVM 14.

Build:

$ cd llvm-pass-skeleton
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ..

Run:

$ clang -flegacy-pass-manager -Xclang -load -Xclang build/skeleton/libSkeletonPass.* something.c

Thanks to LeadroyaL for the issue fix!

Releases

No releases published

Packages

No packages published

Languages

  • C++ 50.7%
  • CMake 49.3%