diff options
author | Vasileios Porpodas <vporpodas@google.com> | 2022-12-14 17:42:26 -0800 |
---|---|---|
committer | Vasileios Porpodas <vporpodas@google.com> | 2022-12-15 12:27:45 -0800 |
commit | 32b38d248fd3c75abc5c86ab6677b6cb08a703cc (patch) | |
tree | 98ecfc584abe0868a651af0360bd2597b9bbb66b /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | e0f2150e99e5e429c33047f25e3da2ab146d0f57 (diff) | |
download | llvm-32b38d248fd3c75abc5c86ab6677b6cb08a703cc.zip llvm-32b38d248fd3c75abc5c86ab6677b6cb08a703cc.tar.gz llvm-32b38d248fd3c75abc5c86ab6677b6cb08a703cc.tar.bz2 |
[NFC] Rename Instruction::insertAt() to Instruction::insertInto(), to be consistent with BasicBlock::insertInto()
Differential Revision: https://reviews.llvm.org/D140085
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp index a699540..acde526 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -565,7 +565,7 @@ void llvm::ReplaceInstWithInst(BasicBlock *BB, BasicBlock::iterator &BI, I->setDebugLoc(BI->getDebugLoc()); // Insert the new instruction into the basic block... - BasicBlock::iterator New = I->insertAt(BB, BI); + BasicBlock::iterator New = I->insertInto(BB, BI); // Replace all uses of the old instruction, and delete it. ReplaceInstWithValue(BI, I); @@ -1343,12 +1343,12 @@ static void SplitLandingPadPredecessorsImpl( LandingPadInst *LPad = OrigBB->getLandingPadInst(); Instruction *Clone1 = LPad->clone(); Clone1->setName(Twine("lpad") + Suffix1); - Clone1->insertAt(NewBB1, NewBB1->getFirstInsertionPt()); + Clone1->insertInto(NewBB1, NewBB1->getFirstInsertionPt()); if (NewBB2) { Instruction *Clone2 = LPad->clone(); Clone2->setName(Twine("lpad") + Suffix2); - Clone2->insertAt(NewBB2, NewBB2->getFirstInsertionPt()); + Clone2->insertInto(NewBB2, NewBB2->getFirstInsertionPt()); // Create a PHI node for the two cloned landingpad instructions only // if the original landingpad instruction has some uses. @@ -1399,7 +1399,7 @@ ReturnInst *llvm::FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB, Instruction *UncondBranch = Pred->getTerminator(); // Clone the return and add it to the end of the predecessor. Instruction *NewRet = RI->clone(); - NewRet->insertAt(Pred, Pred->end()); + NewRet->insertInto(Pred, Pred->end()); // If the return instruction returns a value, and if the value was a // PHI node in "BB", propagate the right value into the return. @@ -1411,7 +1411,7 @@ ReturnInst *llvm::FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB, // return instruction. V = BCI->getOperand(0); NewBC = BCI->clone(); - NewBC->insertAt(Pred, NewRet->getIterator()); + NewBC->insertInto(Pred, NewRet->getIterator()); Op = NewBC; } @@ -1421,9 +1421,9 @@ ReturnInst *llvm::FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB, NewEV = EVI->clone(); if (NewBC) { NewBC->setOperand(0, NewEV); - NewEV->insertAt(Pred, NewBC->getIterator()); + NewEV->insertInto(Pred, NewBC->getIterator()); } else { - NewEV->insertAt(Pred, NewRet->getIterator()); + NewEV->insertInto(Pred, NewRet->getIterator()); Op = NewEV; } } |