Lines Matching refs:IP

40                                        BasicBlock::iterator IP) {  in ReuseOrCreateCast()  argument
62 if (BasicBlock::iterator(CI) != IP || BIP == IP) { in ReuseOrCreateCast()
66 Ret = CastInst::Create(Op, V, Ty, "", &*IP); in ReuseOrCreateCast()
78 Ret = CastInst::Create(Op, V, Ty, V->getName(), &*IP); in ReuseOrCreateCast()
91 BasicBlock::iterator IP = ++I->getIterator(); in findInsertPointAfter() local
93 IP = II->getNormalDest()->begin(); in findInsertPointAfter()
95 while (isa<PHINode>(IP)) in findInsertPointAfter()
96 ++IP; in findInsertPointAfter()
98 if (isa<FuncletPadInst>(IP) || isa<LandingPadInst>(IP)) { in findInsertPointAfter()
99 ++IP; in findInsertPointAfter()
100 } else if (isa<CatchSwitchInst>(IP)) { in findInsertPointAfter()
101 IP = MustDominate->getFirstInsertionPt(); in findInsertPointAfter()
103 assert(!IP->isEHPad() && "unexpected eh pad!"); in findInsertPointAfter()
106 return IP; in findInsertPointAfter()
154 BasicBlock::iterator IP = A->getParent()->getEntryBlock().begin(); in InsertNoopCastOfTo() local
155 while ((isa<BitCastInst>(IP) && in InsertNoopCastOfTo()
156 isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) && in InsertNoopCastOfTo()
157 cast<BitCastInst>(IP)->getOperand(0) != A) || in InsertNoopCastOfTo()
158 isa<DbgInfoIntrinsic>(IP)) in InsertNoopCastOfTo()
159 ++IP; in InsertNoopCastOfTo()
160 return ReuseOrCreateCast(A, Ty, Op, IP); in InsertNoopCastOfTo()
165 BasicBlock::iterator IP = findInsertPointAfter(I, Builder.GetInsertBlock()); in InsertNoopCastOfTo() local
166 return ReuseOrCreateCast(I, Ty, Op, IP); in InsertNoopCastOfTo()
182 BasicBlock::iterator IP = Builder.GetInsertPoint(); in InsertBinop() local
183 if (IP != BlockBegin) { in InsertBinop()
184 --IP; in InsertBinop()
185 for (; ScanLimit; --IP, --ScanLimit) { in InsertBinop()
188 if (isa<DbgInfoIntrinsic>(IP)) in InsertBinop()
203 if (IP->getOpcode() == (unsigned)Opcode && IP->getOperand(0) == LHS && in InsertBinop()
204 IP->getOperand(1) == RHS && !canGeneratePoison(&*IP)) in InsertBinop()
205 return &*IP; in InsertBinop()
206 if (IP == BlockBegin) break; in InsertBinop()
523 BasicBlock::iterator IP = Builder.GetInsertPoint(); in expandAddToGEP() local
524 if (IP != BlockBegin) { in expandAddToGEP()
525 --IP; in expandAddToGEP()
526 for (; ScanLimit; --IP, --ScanLimit) { in expandAddToGEP()
529 if (isa<DbgInfoIntrinsic>(IP)) in expandAddToGEP()
531 if (IP->getOpcode() == Instruction::GetElementPtr && in expandAddToGEP()
532 IP->getOperand(0) == V && IP->getOperand(1) == Idx) in expandAddToGEP()
533 return &*IP; in expandAddToGEP()
534 if (IP == BlockBegin) break; in expandAddToGEP()
1680 Instruction *IP) { in expandCodeFor() argument
1681 setInsertPoint(IP); in expandCodeFor()
1965 Instruction *IP = nullptr; in replaceCongruentIVs() local
1967 IP = &*PN->getParent()->getFirstInsertionPt(); in replaceCongruentIVs()
1969 IP = OrigInc->getNextNode(); in replaceCongruentIVs()
1971 IRBuilder<> Builder(IP); in replaceCongruentIVs()
2123 Instruction *IP) { in expandCodeForPredicate() argument
2124 assert(IP); in expandCodeForPredicate()
2127 return expandUnionPredicate(cast<SCEVUnionPredicate>(Pred), IP); in expandCodeForPredicate()
2129 return expandEqualPredicate(cast<SCEVEqualPredicate>(Pred), IP); in expandCodeForPredicate()
2132 return expandWrapPredicate(AddRecPred, IP); in expandCodeForPredicate()
2139 Instruction *IP) { in expandEqualPredicate() argument
2140 Value *Expr0 = expandCodeFor(Pred->getLHS(), Pred->getLHS()->getType(), IP); in expandEqualPredicate()
2141 Value *Expr1 = expandCodeFor(Pred->getRHS(), Pred->getRHS()->getType(), IP); in expandEqualPredicate()
2143 Builder.SetInsertPoint(IP); in expandEqualPredicate()
2246 Instruction *IP) { in expandWrapPredicate() argument
2252 NUSWCheck = generateOverflowCheck(A, IP, false); in expandWrapPredicate()
2256 NSSWCheck = generateOverflowCheck(A, IP, true); in expandWrapPredicate()
2267 return ConstantInt::getFalse(IP->getContext()); in expandWrapPredicate()
2271 Instruction *IP) { in expandUnionPredicate() argument
2272 auto *BoolType = IntegerType::get(IP->getContext(), 1); in expandUnionPredicate()
2277 auto *NextCheck = expandCodeForPredicate(Pred, IP); in expandUnionPredicate()
2278 Builder.SetInsertPoint(IP); in expandUnionPredicate()