Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 453 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 453 Bytes

llvm-pass-skeleton

A completely useless LLVM pass. It's for LLVM 9.

Build:

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

Run:

$ clang -S -emit-llvm -Xclang -disable-O0-optnone foo.c
$ opt -load build/skeleton/libSkeletonPass.* -skeleton -S foo.ll

The -Xclang -disable-O0-optnone flag ensures that Clang will allow later optimizations even when initially compiling without any.