Displaying 2 results from an estimated 2 matches for "disablex86leaopt".
2018 Jan 13
0
Integrating llvm pass with pass manager
...clang -mllvm -mem2reg test.c
$ clang (LLVM option parsing): Unknown command line argument
'-mem2reg'. Try: 'clang (LLVM option parsing) -help'
I guess you need to implement the code below for your pass just like
X86OptimizeLEAS.cpp does.
static cl::opt<bool>
DisableX86LEAOpt("disable-x86-lea-opt", cl::Hidden,
cl::desc("X86: Disable LEA optimizations."),
cl::init(false));
[1] https://stackoverflow.com/questions/29910051/integrating-llvm-passes/
48142693#48142693
<https://www.google.com/url?q=htt...
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 -