Skip to content

Latest commit

 

History

History

05-LLVM_Pass

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Lesson 05 - LLVM Pass

Build the LLVM Pass

clang-14 `llvm-config-14 --cxxflags` -shared -fPIC demo-pass.so.cc -o demo-pass.so

Build object

clang-14 `llvm-config-14 --cflags` -fPIC -c demo-rt.o.c -o demo-rt.o

Compile program with the Pass

clang-14 `llvm-config-14 --cflags` -fexperimental-new-pass-manager -fpass-plugin=./demo-pass.so ./demo-rt.o program.c -o program