jetming / llvm-pass-skeleton

the way to write llvm pass without llvm framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

llvm pass skeleton

this reposity shows the way to write llvm pass by two ways, dynamic and excutable.

dynamic

this will generate dynamic library and use it by `opt -load`.

excutable

this will generate an excutable file, and you can run it directly.

how to build?

    cd DynamicLib/test
    ./run.sh
tips: remember to modify the llvm path in shell script.

About

the way to write llvm pass without llvm framework.


Languages

Language:C++ 64.1%Language:CMake 19.0%Language:C 12.0%Language:Shell 4.9%