this reposity shows the way to write llvm pass by two ways, dynamic and excutable.
this will generate dynamic library and use it by `opt -load`.
this will generate an excutable file, and you can run it directly.
cd DynamicLib/test
./run.sh
tips: remember to modify the llvm path in shell script.