search for: splitmbbat

Displaying 2 results from an estimated 2 matches for "splitmbbat".

2009 Sep 24
0
[LLVMdev] Split MachineBasicBlocks
...ve 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 program will do. I have attached my MachineFunctionPass, in case you need to look at the code. Does anyone have an idea what is wrong here? - Artjom http://www.nabble.com/file/p25552660/S...
2008 Sep 30
2
[LLVMdev] Inserting MachineBasicBlock(s) before a MachineBasicBlock
I want to be able to do two things with LLVM (both just before code emission): 1. Insert a MachineBasicBlock just before a MachineBasicBlock. There is a function called AddPredecessor(). However, the comment says that it does not update the actual CFG. I want to redirect all CFG edges that are incoming to this MachineBasicBlock to the new one I create, and add just one outgoing edge (no branch)