search for: isindirectjump

Displaying 5 results from an estimated 5 matches for "isindirectjump".

2007 Aug 19
1
[LLVMdev] MBB Critical edges
...I am sending you the code. best, Fernando > Can you explain briefly what it does? What benefits do you expect? >> At least I think I've solved it. I had to add one method to >> TargetInstrInfo to tell me when an instruction is an indirect jump - >> TargetInstrInfo::tii.isIndirectJump(opcode). When that is the case, I >> update the jump table using: >> >> // Change jumps to go to the new basic block: >> if(isJumpTable) { >> mf.getJumpTableInfo()->ReplaceMBBInJumpTables(& dst, >> crit_mbb); >> } >> &gt...
2007 Aug 17
2
[LLVMdev] MBB Critical edges
Thanks, Evan. Actually I've solved my problem with some hints from Dale and Anton. At least I think I've solved it. I had to add one method to TargetInstrInfo to tell me when an instruction is an indirect jump - TargetInstrInfo::tii.isIndirectJump(opcode). When that is the case, I update the jump table using: // Change jumps to go to the new basic block: if(isJumpTable) { mf.getJumpTableInfo()->ReplaceMBBInJumpTables(& dst, crit_mbb); } where dst was the old basic block, and crit_mbb is the new one, created...
2007 Aug 18
0
[LLVMdev] MBB Critical edges
...some hints from Dale and > Anton. Ok, cool. I didn't see their replies. Like I said, my email client is acting funny. > At least I think I've solved it. I had to add one method to > TargetInstrInfo to tell me when an instruction is an indirect jump - > TargetInstrInfo::tii.isIndirectJump(opcode). When that is the case, I > update the jump table using: > > // Change jumps to go to the new basic block: > if(isJumpTable) { > mf.getJumpTableInfo()->ReplaceMBBInJumpTables(& dst, > crit_mbb); > } > > where dst was the old basic...
2007 Aug 17
0
[LLVMdev] MBB Critical edges
Sorry about the tardiness of my reply. My mail client has playing tricks with me. :-) I am assuming the issue has nothing to do the branch to jumptable instructions but rather the MachineJumpTableInfo associated with every MachineFunction? If so, please take a look at BranchFoldiing.cpp for an example. Evan On Aug 10, 2007, at 12:30 PM, Fernando Magno Quintao Pereira wrote: > >
2007 Aug 10
2
[LLVMdev] MBB Critical edges
Hi all, I have a pass to break critical edges of Machine Basic Blocks, but I just discovered a bug (when compiling code for x86). The problem is 'jumpl *%reg'. I don't know how to update the jump table for this type of instruction. The code that I had (see below) does not update the jump table, and the actual branch keeps jumping to the old basic block, instead of the new.