Skip to content

Learner0x5a/llvm-out-of-tree-pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llvm-out-of-tree-pass

Template for an out-of-tree LLVM pass.

Tested with clang-10

Build

# modify CMakeLists.txt: add_subdirectory(hello)
# modify hello/hello.cpp
# modify hello/CMakeLists.txt: hello.cpp
mkdir build
cd build
cmake ..
make -j8

Run

clang-10 -S -emit-llvm -B test/gold/ld -flto -fsanitize=cfi-icall test/cfi_icall.c -o test/cfi_icall.ll
opt-10 -load build/hello/libmyhello.so -helloworld test/cfi_icall.ll 

About

llvm out-of-tree pass template

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •