search for: addtombbnumbering

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

2010 Oct 20
1
[LLVMdev] MachineBasicBlock insertion and use/def list update
...k into a MachineFunction? Any advice will be appreciated. Thanks a lot in advance. ~Bin ---------------------------------------------------------------------------------------------------------------------------- Thanks a lot Jeff. I changed the setNumber function call to MBB->setNumber(mf->addToMBBNumbering(MBB)); But it still enters the infinite loop. It is strange that if I insert all these instructions into an existing MachineBasicBlock, the error disappears. It is due to the way I create or insert MachineBasicBlocks in a wrong way. When each operand is added to an instruction, the use/def list...
2010 Jun 18
1
[LLVMdev] Problem adding a MachineBasicBlock during X86 EmitPrologue
...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.overflowBlock, DL, TII.get(X86::RET));...
2010 Oct 20
1
[LLVMdev] MachineBasicBlock insertion
Hi all, I am really stumped on a problem for long. I could not figure out why. That is why i am here. OK, here 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