Lines Matching refs:IP
90 BasicBlock::iterator IP) { in ReuseOrCreateCast() argument
114 if (IP->getParent() == CI->getParent() && &*BIP != CI && in ReuseOrCreateCast()
115 (&*IP == CI || CI->comesBefore(&*IP))) { in ReuseOrCreateCast()
124 Builder.SetInsertPoint(&*IP); in ReuseOrCreateCast()
140 BasicBlock::iterator IP = ++I->getIterator(); in findInsertPointAfter() local
142 IP = II->getNormalDest()->begin(); in findInsertPointAfter()
144 while (isa<PHINode>(IP)) in findInsertPointAfter()
145 ++IP; in findInsertPointAfter()
147 if (isa<FuncletPadInst>(IP) || isa<LandingPadInst>(IP)) { in findInsertPointAfter()
148 ++IP; in findInsertPointAfter()
149 } else if (isa<CatchSwitchInst>(IP)) { in findInsertPointAfter()
150 IP = MustDominate->getParent()->getFirstInsertionPt(); in findInsertPointAfter()
152 assert(!IP->isEHPad() && "unexpected eh pad!"); in findInsertPointAfter()
158 while (isInsertedInstruction(&*IP) && &*IP != MustDominate) in findInsertPointAfter()
159 ++IP; in findInsertPointAfter()
161 return IP; in findInsertPointAfter()
169 BasicBlock::iterator IP = A->getParent()->getEntryBlock().begin(); in GetOptimalInsertionPointForCastOf() local
170 while ((isa<BitCastInst>(IP) && in GetOptimalInsertionPointForCastOf()
171 isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) && in GetOptimalInsertionPointForCastOf()
172 cast<BitCastInst>(IP)->getOperand(0) != A) || in GetOptimalInsertionPointForCastOf()
173 isa<DbgInfoIntrinsic>(IP)) in GetOptimalInsertionPointForCastOf()
174 ++IP; in GetOptimalInsertionPointForCastOf()
175 return IP; in GetOptimalInsertionPointForCastOf()
264 BasicBlock::iterator IP = Builder.GetInsertPoint(); in InsertBinop() local
265 if (IP != BlockBegin) { in InsertBinop()
266 --IP; in InsertBinop()
267 for (; ScanLimit; --IP, --ScanLimit) { in InsertBinop()
270 if (isa<DbgInfoIntrinsic>(IP)) in InsertBinop()
287 if (IP->getOpcode() == (unsigned)Opcode && IP->getOperand(0) == LHS && in InsertBinop()
288 IP->getOperand(1) == RHS && !canGenerateIncompatiblePoison(&*IP)) in InsertBinop()
289 return &*IP; in InsertBinop()
290 if (IP == BlockBegin) break; in InsertBinop()
365 BasicBlock::iterator IP = Builder.GetInsertPoint(); in expandAddToGEP() local
366 if (IP != BlockBegin) { in expandAddToGEP()
367 --IP; in expandAddToGEP()
368 for (; ScanLimit; --IP, --ScanLimit) { in expandAddToGEP()
371 if (isa<DbgInfoIntrinsic>(IP)) in expandAddToGEP()
373 if (IP->getOpcode() == Instruction::GetElementPtr && in expandAddToGEP()
374 IP->getOperand(0) == V && IP->getOperand(1) == Idx && in expandAddToGEP()
375 cast<GEPOperator>(&*IP)->getSourceElementType() == in expandAddToGEP()
377 return &*IP; in expandAddToGEP()
378 if (IP == BlockBegin) break; in expandAddToGEP()
1408 BasicBlock::iterator IP) { in expandCodeFor() argument
1409 setInsertPoint(IP); in expandCodeFor()
1653 BasicBlock::iterator IP; in replaceCongruentIVInc() local
1655 IP = PN->getParent()->getFirstInsertionPt(); in replaceCongruentIVInc()
1657 IP = OrigInc->getNextNonDebugInstruction()->getIterator(); in replaceCongruentIVInc()
1659 IRBuilder<> Builder(IP->getParent(), IP); in replaceCongruentIVInc()
2058 Instruction *IP) { in expandCodeForPredicate() argument
2059 assert(IP); in expandCodeForPredicate()
2062 return expandUnionPredicate(cast<SCEVUnionPredicate>(Pred), IP); in expandCodeForPredicate()
2064 return expandComparePredicate(cast<SCEVComparePredicate>(Pred), IP); in expandCodeForPredicate()
2067 return expandWrapPredicate(AddRecPred, IP); in expandCodeForPredicate()
2074 Instruction *IP) { in expandComparePredicate() argument
2075 Value *Expr0 = expand(Pred->getLHS(), IP); in expandComparePredicate()
2076 Value *Expr1 = expand(Pred->getRHS(), IP); in expandComparePredicate()
2078 Builder.SetInsertPoint(IP); in expandComparePredicate()
2210 Instruction *IP) { in expandWrapPredicate() argument
2216 NUSWCheck = generateOverflowCheck(A, IP, false); in expandWrapPredicate()
2220 NSSWCheck = generateOverflowCheck(A, IP, true); in expandWrapPredicate()
2231 return ConstantInt::getFalse(IP->getContext()); in expandWrapPredicate()
2235 Instruction *IP) { in expandUnionPredicate() argument
2239 Checks.push_back(expandCodeForPredicate(Pred, IP)); in expandUnionPredicate()
2240 Builder.SetInsertPoint(IP); in expandUnionPredicate()
2244 return ConstantInt::getFalse(IP->getContext()); in expandUnionPredicate()