Home | History | Annotate | Download | only in Utils

Lines Matching defs:BI

136   for (BasicBlock::iterator BI = BB->begin(), BE = BB->end(); BI != BE; ++BI) {
137 if (PHINode *PN = dyn_cast<PHINode>(BI)) {
186 /// ReplaceInstWithValue - Replace all uses of an instruction (specified by BI)
190 BasicBlock::iterator &BI, Value *V) {
191 Instruction &I = *BI;
200 BI = BIL.erase(BI);
204 /// ReplaceInstWithInst - Replace the instruction specified by BI with the
205 /// instruction specified by I. The original instruction is deleted and BI is
209 BasicBlock::iterator &BI, Instruction *I) {
216 I->setDebugLoc(BI->getDebugLoc());
219 BasicBlock::iterator New = BIL.insert(BI, I);
222 ReplaceInstWithValue(BIL, BI, I);
224 // Move BI back to point to the newly inserted instruction
225 BI = New;
232 BasicBlock::iterator BI(From);
233 ReplaceInstWithInst(From->getParent()->getInstList(), BI, To);
394 ArrayRef<BasicBlock *> Preds, BranchInst *BI,
441 BI);
498 BranchInst *BI = BranchInst::Create(BB, NewBB);
499 BI->setDebugLoc(BB->getFirstNonPHI()->getDebugLoc());
528 UpdatePHINodes(BB, NewBB, Preds, BI, HasLoopExit);
865 BranchInst *BI = dyn_cast<BranchInst>(CommonPred->getTerminator());
866 if (!BI) return nullptr;
868 assert(BI->isConditional() && "Two successors but not conditional?");
869 if (BI->getSuccessor(0) == Pred1) {
876 return BI->getCondition();