Skip to content
Snippets Groups Projects
Commit 505e7a3e authored by Per's avatar Per
Browse files

README

parent 64dec56f
No related branches found
No related tags found
No related merge requests found
# llvm-pass-skeleton # llvm callgirl pass
A completely useless LLVM pass. Per Lindgren, Nils Fitinghof, free for all license
It's for LLVM 7.0.
Build: Based on https://github.com/sampsyo/llvm-pass-skeleton
Tested on LLVM 7.0 under arch linux.
## Build:
``` sh
$ cd llvm-pass-skeleton $ cd llvm-pass-skeleton
$ mkdir build $ mkdir build
$ cd build $ cd build
$ cmake .. $ cmake ..
$ make $ make
$ cd .. $ cd ..
```
Conseqitive re-build is done from the `build` directory using `make`. Conseqitive re-build is done from the `build` directory using `make`.
Run: ## Run:
``` sh
$ clang -Xclang -load -Xclang build/skeleton/libSkeletonPass.* ctest/test1.c $ clang -Xclang -load -Xclang build/skeleton/libSkeletonPass.* ctest/test1.c
$ cd ctest $ cd ctest
$ clang -S -emit-llvm test1.c $ clang -S -emit-llvm test1.c
$ opt -load ../build/skeleton/libSkeletonPass.* -callgirl test1.ll -o dummy.ll $ opt -load ../build/skeleton/libSkeletonPass.* -callgirl test1.ll -o dummy.ll
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment