Home | History | Annotate | Download | only in Utils

Lines Matching full:instruction

49     Instruction &I = BB->back();
50 // If this instruction is used, replace uses with an arbitrary value.
194 /// ReplaceInstWithValue - Replace all uses of an instruction (specified by BI)
195 /// with a value, then remove and delete the original instruction.
199 Instruction &I = *BI;
200 // Replaces all of the uses of the instruction with uses of the value
207 // Delete the unnecessary instruction now...
212 /// ReplaceInstWithInst - Replace the instruction specified by BI with the
213 /// instruction specified by I. The original instruction is deleted and BI is
214 /// updated to point to the new instruction.
217 BasicBlock::iterator &BI, Instruction *I) {
219 "ReplaceInstWithInst: Instruction already inserted into basic block!");
221 // Insert the new instruction into the basic block...
224 // Replace all uses of the old instruction, and delete it.
227 // Move BI back to point to the newly inserted instruction
231 /// ReplaceInstWithInst - Replace the instruction specified by From with the
232 /// instruction specified by To.
234 void llvm::ReplaceInstWithInst(Instruction *From, Instruction *To) {
267 /// SplitBlock - Split the specified block at the specified instruction - every
272 BasicBlock *llvm::SplitBlock(BasicBlock *Old, Instruction *SplitPt, Pass *P) {
482 /// block gets the remaining predecessors of OrigBB. The landingpad instruction
563 Instruction *Clone1 = LPad->clone();
568 Instruction *Clone2 = LPad->clone();
587 /// instruction into a predecessor which ends in an unconditional branch. If
588 /// the return instruction returns a value defined by a PHI, propagate the
589 /// right value into the return. It returns the new return instruction in the
593 Instruction *UncondBranch = Pred->getTerminator();
595 Instruction *NewRet = RI->clone();
598 // If the return instruction returns a value, and if the value was a
603 Instruction *NewBC = 0;
606 // return instruction.
630 /// specified instruction - everything before and including Cmp stays
649 TerminatorInst *llvm::SplitBlockAndInsertIfThen(Instruction *Cmp,
651 Instruction *SplitBefore = Cmp->getNextNode();