Lines Matching refs:IP

51                                        BasicBlock::iterator IP) {  in ReuseOrCreateCast()  argument
75 if (IP->getParent() == CI->getParent() && &*BIP != CI && in ReuseOrCreateCast()
76 (&*IP == CI || CI->comesBefore(&*IP))) { in ReuseOrCreateCast()
85 Builder.SetInsertPoint(&*IP); in ReuseOrCreateCast()
101 BasicBlock::iterator IP = ++I->getIterator(); in findInsertPointAfter() local
103 IP = II->getNormalDest()->begin(); in findInsertPointAfter()
105 while (isa<PHINode>(IP)) in findInsertPointAfter()
106 ++IP; in findInsertPointAfter()
108 if (isa<FuncletPadInst>(IP) || isa<LandingPadInst>(IP)) { in findInsertPointAfter()
109 ++IP; in findInsertPointAfter()
110 } else if (isa<CatchSwitchInst>(IP)) { in findInsertPointAfter()
111 IP = MustDominate->getParent()->getFirstInsertionPt(); in findInsertPointAfter()
113 assert(!IP->isEHPad() && "unexpected eh pad!"); in findInsertPointAfter()
119 while (isInsertedInstruction(&*IP) && &*IP != MustDominate) in findInsertPointAfter()
120 ++IP; in findInsertPointAfter()
122 return IP; in findInsertPointAfter()
130 BasicBlock::iterator IP = A->getParent()->getEntryBlock().begin(); in GetOptimalInsertionPointForCastOf() local
131 while ((isa<BitCastInst>(IP) && in GetOptimalInsertionPointForCastOf()
132 isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) && in GetOptimalInsertionPointForCastOf()
133 cast<BitCastInst>(IP)->getOperand(0) != A) || in GetOptimalInsertionPointForCastOf()
134 isa<DbgInfoIntrinsic>(IP)) in GetOptimalInsertionPointForCastOf()
135 ++IP; in GetOptimalInsertionPointForCastOf()
136 return IP; in GetOptimalInsertionPointForCastOf()
225 BasicBlock::iterator IP = Builder.GetInsertPoint(); in InsertBinop() local
226 if (IP != BlockBegin) { in InsertBinop()
227 --IP; in InsertBinop()
228 for (; ScanLimit; --IP, --ScanLimit) { in InsertBinop()
231 if (isa<DbgInfoIntrinsic>(IP)) in InsertBinop()
248 if (IP->getOpcode() == (unsigned)Opcode && IP->getOperand(0) == LHS && in InsertBinop()
249 IP->getOperand(1) == RHS && !canGenerateIncompatiblePoison(&*IP)) in InsertBinop()
250 return &*IP; in InsertBinop()
251 if (IP == BlockBegin) break; in InsertBinop()
326 BasicBlock::iterator IP = Builder.GetInsertPoint(); in expandAddToGEP() local
327 if (IP != BlockBegin) { in expandAddToGEP()
328 --IP; in expandAddToGEP()
329 for (; ScanLimit; --IP, --ScanLimit) { in expandAddToGEP()
332 if (isa<DbgInfoIntrinsic>(IP)) in expandAddToGEP()
334 if (IP->getOpcode() == Instruction::GetElementPtr && in expandAddToGEP()
335 IP->getOperand(0) == V && IP->getOperand(1) == Idx && in expandAddToGEP()
336 cast<GEPOperator>(&*IP)->getSourceElementType() == in expandAddToGEP()
338 return &*IP; in expandAddToGEP()
339 if (IP == BlockBegin) break; in expandAddToGEP()
1351 BasicBlock::iterator IP) { in expandCodeFor() argument
1352 setInsertPoint(IP); in expandCodeFor()
1640 BasicBlock::iterator IP; in replaceCongruentIVs() local
1642 IP = PN->getParent()->getFirstInsertionPt(); in replaceCongruentIVs()
1644 IP = OrigInc->getNextNonDebugInstruction()->getIterator(); in replaceCongruentIVs()
1646 IRBuilder<> Builder(IP->getParent(), IP); in replaceCongruentIVs()
1960 Instruction *IP) { in expandCodeForPredicate() argument
1961 assert(IP); in expandCodeForPredicate()
1964 return expandUnionPredicate(cast<SCEVUnionPredicate>(Pred), IP); in expandCodeForPredicate()
1966 return expandComparePredicate(cast<SCEVComparePredicate>(Pred), IP); in expandCodeForPredicate()
1969 return expandWrapPredicate(AddRecPred, IP); in expandCodeForPredicate()
1976 Instruction *IP) { in expandComparePredicate() argument
1977 Value *Expr0 = expand(Pred->getLHS(), IP); in expandComparePredicate()
1978 Value *Expr1 = expand(Pred->getRHS(), IP); in expandComparePredicate()
1980 Builder.SetInsertPoint(IP); in expandComparePredicate()
2112 Instruction *IP) { in expandWrapPredicate() argument
2118 NUSWCheck = generateOverflowCheck(A, IP, false); in expandWrapPredicate()
2122 NSSWCheck = generateOverflowCheck(A, IP, true); in expandWrapPredicate()
2133 return ConstantInt::getFalse(IP->getContext()); in expandWrapPredicate()
2137 Instruction *IP) { in expandUnionPredicate() argument
2141 Checks.push_back(expandCodeForPredicate(Pred, IP)); in expandUnionPredicate()
2142 Builder.SetInsertPoint(IP); in expandUnionPredicate()
2146 return ConstantInt::getFalse(IP->getContext()); in expandUnionPredicate()