This repository contains a simple example of LLVM pass that written out of source of LLVM
- Install dependencies
sudo apt install llvm-dev
- Build the pass
mkdir build && cd build && cmake .. && make && cd ..
- Run
- Example
cd example/simple && ./run.sh
- Your own file
clang -Xclang -load -Xclang <path to lib>/libHelloWorld.so <your file>
- Example