Displaying 2 results from an estimated 2 matches for "createyourpass".
2018 Jan 13
0
Integrating llvm pass with pass manager
Look back to the SO link [1] you posted, I assume you register your pass by
writing something like below already,
INITIALIZE_PASS_BEGIN
...
INITIALIZE_PASS_END
ModulePass *llvm::createYourPass() { return new YourPass(); }
The only suggestion I can give is looking at other existing pass to see
what you might miss. For example, take a look on X86OptimizeLEAs.cpp. It
works like the following ways.
$ clang -mllvm -disable-x86-lea-opt test.c
$ opt -disable-x86-lea-opt test.ll
On th...
2018 Jan 08
5
Integrating llvm pass with pass manager
Hello,
I have followed steps given in - https://stackoverflow.com/questions/29910051/integrating-llvm-passes/48142693#48142693 <https://stackoverflow.com/questions/29910051/integrating-llvm-passes/48142693#48142693>, to integrate my pass with pass manager and run it with clang. I am able to run my pass with opt - opt -mypass but when I try to run it with clang, I always get an error -