[LLVMdev] Run several LLVM Passes automatically with clang
Gaoyao Xiao
windxing2007 at gmail.com
Thu Jul 17 13:48:40 PDT 2014
Hi,
I want to run several LLVM passes on the IR when clang compiles source
code. I know the passes can run in this way "clang -Xclang -load -Xclang
/path/to/LLVMpass.so src.c -o bin". The time when the pass is executed can
be determined through selecting a ExtensionPointTy. However,
ExtensionPointTy does not allow me to specify the order of execution of my
pass. My question is: If I want to run three passes, including
LLVMMypass1.so, LLVMMypass2.so, inline (provided by LLVM), how should I
specify the optimization flag of Clang?
Many thanks!
Gaoyao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140717/256c62e8/attachment.html>
More information about the llvm-dev
mailing list