search for: call32m

Displaying 3 results from an estimated 3 matches for "call32m".

Did you mean: call32
2009 Sep 06
0
[LLVMdev] How to differentiate between external and internal calls in llc?
I have a MachineFunctionPass plugged into llc during LLVMTargetMachine::addPreRegAlloc. In this Pass I need to extend calls (i. e. CALL32m, CALL32r) iff they call function within the program. CALL32m has, I think, ten different possibilities for the four operands giving the target address. At the moment I have excluded calls that give the displacement as GlobalAddress or JumpTableIndex (although I am not sure whether this is actual...
2016 Mar 24
0
Problem with inserting a function call after certain x86 instructions
...o not know how to insert a function call. In my work, I write a special function for a program to be compiled and I need to insert this function after certain instructions whose destination register is esp. In X86InstrInfo.cpp, there are two kinds of call may be useful, namely X86::CALL32r and X86::CALL32m. And in X86InstrInfo.td, there are three, namely call32i, call32m and CallImmAddr. But I do not know how to use them to insert my special function. Besides, I can not find LEAVE instruction in X86InstrInfo.cpp though it is found in X86InstrInfo.td. Should I use it in form of X86::LEAVE? I would app...
2009 Sep 24
0
[LLVMdev] Split MachineBasicBlocks
Hi all, as soon as I try to split MachineBasicBlocks the resulting programs suffer from segmentation faults. I have reproduced the error using a simple MachineFunctionPass in the X86 backend that splits MachineBasicBlocks before CALL32m instructions (and inserts a fallthrough-jmp). The MachineFunctionPass is plugged into X86TargetMachine::addPreRegAlloc. The split-method is basically stolen from BranchFolder::SplitMBBAt. Currently I use the gcc benchmark from SPEC2000 to generate the error, but I guess every reasonably complex pr...