[LLVMdev] Not able to run pass

Dan Liew dan at su-root.co.uk
Wed Jun 11 07:10:23 PDT 2014


> your answer put me in starting situation.As I told I am not able to generate
> .bc file of hello.cpp(the pass file) as it is giving errors when I use clang
> -emit-llvm -c hello.cpp -o hello.bc.So please if you can help me.

I recently wrote a small (and rather incomplete) tutorial on LLVM
passes and provided the source code [1]. If you look in the
``helloPass`` folder you will see I've taken the helloPass from LLVM
and have built it as an out of tree plug-in. The ``run.sh`` script
(this is generated by the build system) shows how to use it. This
might help you gain understanding of how you can use the hello pass.
However I provide no guarantees that this code will work for you and I
provide absolutely no support so do not ask me questions on how to
build this code (it is already documented in README.md).


[1] https://github.com/delcypher/srg-llvm-pass-tutorial

-- 
Dan Liew
PhD Student - Imperial College London



More information about the llvm-dev mailing list