Skip to content

alnasir7/llvm-pass

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLVM-PASS BY Mohamed Abaker

Forked from __ with credit to __

Modify:

  • Modify skeleton/skeleton.cpp to modify your pass

  • Modify llvm-pass/test.c to modify the test file your pass will run on

  • Remeber to use the following commands after modifying the test c file

    $ clang test.c -o test $ clang -O3 -emit-llvm test.c -c -o test.bc

Build:

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

Run:

$ /usr/local/opt/llvm/bin/opt -load build/skeleton/libSkeletonPass.so -mohamed < test.bc > /dev/null  -enable-new-pm=0

Releases

No releases published

Packages

No packages published

Languages

  • C++ 54.4%
  • CMake 33.3%
  • C 12.3%