Lines Matching defs:New
608 BasicBlock *New = BasicBlock::Create(getContext(), BBName, getParent(),
615 New->splice(New->end(), this, I, end());
618 BranchInst *BI = BranchInst::Create(New, this);
621 // Now we must loop through all of the successors of the New block (which
624 // know that incoming branches will be from New, not from Old (this).
626 New->replaceSuccessorsPhiUsesWith(this, New);
627 return New;
639 BasicBlock *New = BasicBlock::Create(getContext(), BBName, getParent(), this);
644 New->splice(New->end(), this, begin(), I);
647 // predecessors of the New block), replace the specified successor 'this'
648 // block to point at the New block and update any PHI nodes in 'this' block.
650 // to reflect that the incoming branches will be from the New block and not
656 TI->replaceSuccessorWith(this, New);
657 this->replacePhiUsesWith(Pred, New);
659 // Add a branch instruction from "New" to "this" Block.
660 BranchInst *BI = BranchInst::Create(this, New);
663 return New;
673 void BasicBlock::replacePhiUsesWith(BasicBlock *Old, BasicBlock *New) {
680 PN->replaceIncomingBlockWith(Old, New);
685 BasicBlock *New) {
692 Succ->replacePhiUsesWith(Old, New);
695 void BasicBlock::replaceSuccessorsPhiUsesWith(BasicBlock *New) {
696 this->replaceSuccessorsPhiUsesWith(this, New);