- LLVM (>=4.0)
- g++
- cmake (>=3.1)
- doxygen
Follow these steps to build this project,
- Clone the repository
git clone https://github.com/princedhaliwal/points-to-constraintgen
- Generate Makefiles
mkdir build
cd build
cmake ..
- Build
make
- Generating documentation
cd docs
doxygen Doxyfile
There is a test pass built using this library in the tests/ directory. You can use the opt tools provided by LLVM to run the pass.
opt -load <build-dir>/lib/libTestPass.so -test-pass -analyze a.ll
You can test the pass using check
target as
make check