Displaying 1 result from an estimated 1 matches for "obinsert".
Did you mean:
dbinsert
2010 Jun 18
1
[LLVMdev] Problem adding a MachineBasicBlock during X86 EmitPrologue
...cause of this, I figured a good place to do this code insertion is
in EmitPrologue. I also, at this time, create the block that handles
the error case.
// create a new block for the overflow handling code
MF.overflowBlock = MF.CreateMachineBasicBlock();
MachineFunction::iterator obinsert = MF.begin();
MF.addToMBBNumbering(MF.overflowBlock);
MF.push_back(MF.overflowBlock);
// on overflow jump to a new block to handle overflow
BuildMI(MBB, MBBI, DL, TII.get(X86::JAE_4)).addMBB(MF.overflowBlock);
//add dummy instruction to overflow block
BuildMI(MF...