search for: insertbasicblockbefore

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

2010 Oct 20
1
[LLVMdev] MachineBasicBlock insertion
...e is the problem: I tried to insert a MachineBasicBlock into a function. Here is the code snippet: // insert a machine basic block with the error_label into MF and before I // Pred is the predecessor of the block to be inserted // the new basic block is inserted right before I void X86CFIOptPass::insertBasicBlockBefore(MachineFunction &MF, MachineBasicBlock *Pred, MachineFunction::iterator I){ const BasicBlock* LLVM_BB = Pred->getBasicBlock(); MachineBasicBlock * MBB = MF.CreateMachineBasicBlock(LLVM_BB); // create a MBB MBB->setNumber(19880616);...
2010 Oct 20
1
[LLVMdev] MachineBasicBlock insertion and use/def list update
...function. Here is the code >> snippet: >> >> // insert a machine basic block with the error_label into MF and >> before I >> // Pred is the predecessor of the block to be inserted >> // the new basic block is inserted right before I >> void X86CFIOptPass::insertBasicBlockBefore(MachineFunction&MF, >> MachineBasicBlock *Pred, >> MachineFunction::iterator I){ >> const BasicBlock* LLVM_BB = Pred->getBasicBlock(); >> MachineBasicBlock * MBB = MF.CreateMachineBasicBlock(LLVM_BB); // >> c...