search for: reconnectblocks

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

2005 Apr 28
2
[LLVMdev] inserting blocks into a Function
...us in hindsight - the PHINodes need to be updated in places where the incoming control-edge has changed. Is there anything else that can be affected when a block is inserted into the CFG? Also, planning to write a helper function which will take care of such issues. The general signature is: void reconnectBlocks(BasicBlock *newBlock, BasicBlock *insertBefore , std::vector<BasicBlock*> &preds , bool createBr = true) The std::vector "preds" is used to provide a list of preds for insertBefore, which will be reconnected to newBlock. For cases where a...
2005 Apr 29
0
[LLVMdev] inserting blocks into a Function
...serted into the CFG? That should be it. Note that the -loop-simplify pass does preheader insertion among other things. If you can just use it, I do recommend that. > Also, planning to write a helper function which will take care of such > issues. The general signature is: > > void reconnectBlocks(BasicBlock *newBlock, BasicBlock *insertBefore > , std::vector<BasicBlock*> &preds > , bool createBr = true) > > The std::vector "preds" is used to provide a list of preds for > insertBefore, which will be reconnected to newBl...