Displaying 3 results from an estimated 3 matches for "x86optimizelea".
Did you mean:
x86optimizeleas
2018 Jan 13
0
Integrating llvm pass with pass manager
...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 the other hand, Mem2Reg.cpp fail to be used on clang.
$ clang -mllvm -mem2reg test.c
$ clang (LLVM option parsing): Unknown command line argument
'-mem2reg...
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 -
2017 Dec 27
1
Convert MachineInstr to MCInst in AsmPrinter.cpp
Hello everyone,
In the file *lib/CodeGen/AsmPrinter/AsmPrinter.cpp*, I would like to obtain
an MCInst corresponding to its MachineInstr. Can anyone tell me a way to do
that?
If that is not possible, then, I would like to know if a given MachineInstr
is an *lea *instruction and I would like to know if the symbol involved
with this lea instruction is a jump-table.
For instance, given a