skyel1u / skeleton

LLVM Module Pass example based on LLVM 6.0.1.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

My work.

Run the Module Pass

~/Desktop 
➜ $LLVM_HOME/bin/opt -load ~/Desktop/pass-example/cmake-build-debug/src/libSkeletonPass.so -hello < 1_6.bc
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

==========================
Main Function Found!%                                                           
~/Desktop 
➜ $LLVM_HOME/bin/opt -load ~/Desktop/pass-example/cmake-build-debug/src/libSkeletonPass.so -hello < tt.bc 
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

==========================
no main Function found!% 

About

LLVM Module Pass example based on LLVM 6.0.1.


Languages

Language:C++ 62.4%Language:CMake 37.6%