[LLVMdev] Problem using a label to a MachineBasicBlock

Abhishek Rhisheekesan abhishekr1982 at gmail.com
Thu Mar 22 04:49:31 PDT 2012


Can you please post the code to split a MachineBasicBlock?

I am trying to split a MachineBasicBlock at a specific instruction in the
MBB, let us say, into MBB1 and MBB2. This instruction should go into MBB2.
Also MBB1 should have an unconditional branch to MBB2 as the terminator.
(quite similar to splitBasicBlock in BasicBlock.cpp)

Meanwhile, I am trying to come up with a variant of SplitCriticalEdge to do
this but if someone can provide the code to split a MBB, it will be of great
help.


Jeroen Dobbelaere-2 wrote:
> 
> Using 'NEW_BB->setIsLandingPad(true);' seems to resolve everything.
> 
> Greetings,
> 
> Jeroen Dobbelaere
> [...]
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> 
> 

-- 
View this message in context: http://old.nabble.com/Problem-using-a-label-to-a-MachineBasicBlock-tp32889812p33544612.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list