search for: setsuccessor

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

Did you mean: getsuccessor
2010 Feb 08
1
[LLVMdev] converting an unconditional into a conditional branch
...ut I got a question for which I haven't found a good answer yet: What is the best way to turn an unconditional branch into a conditional branch? All I want to do is add two more operands, a successor and a condition. But no matter how I try to do this any one of setCondition()/setOperand()/setSuccessor() causes an assertion like these: Cannot set condition of unconditional branch! Successor # out of range for Branch! setOperand() out of range! Can this only be done by completely replacing the unconditional branch instruction with a new, conditional one or is there a method with which I can im...
2015 Jun 12
2
[LLVMdev] How to insert basic block in a loop
Dear All I'm making a transformation pass that inserts a new basic block at the start of a loop. However when I try to change predecessor/successor relations, it does not consider the new block in the loop at all. So I got that just inserting a loop in a function before another loop is not enough. So how exactly to do this job? Regards, Marwa Yusuf Teaching Assistant - Computer Engineering