Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 404 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 404 Bytes

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