Lines Matching refs:IP
52 BasicBlock::iterator IP) { in ReuseOrCreateCast() argument
76 if (IP->getParent() == CI->getParent() && &*BIP != CI && in ReuseOrCreateCast()
77 (&*IP == CI || CI->comesBefore(&*IP))) { in ReuseOrCreateCast()
86 Builder.SetInsertPoint(&*IP); in ReuseOrCreateCast()
102 BasicBlock::iterator IP = ++I->getIterator(); in findInsertPointAfter() local
104 IP = II->getNormalDest()->begin(); in findInsertPointAfter()
106 while (isa<PHINode>(IP)) in findInsertPointAfter()
107 ++IP; in findInsertPointAfter()
109 if (isa<FuncletPadInst>(IP) || isa<LandingPadInst>(IP)) { in findInsertPointAfter()
110 ++IP; in findInsertPointAfter()
111 } else if (isa<CatchSwitchInst>(IP)) { in findInsertPointAfter()
112 IP = MustDominate->getParent()->getFirstInsertionPt(); in findInsertPointAfter()
114 assert(!IP->isEHPad() && "unexpected eh pad!"); in findInsertPointAfter()
120 while (isInsertedInstruction(&*IP) && &*IP != MustDominate) in findInsertPointAfter()
121 ++IP; in findInsertPointAfter()
123 return IP; in findInsertPointAfter()
131 BasicBlock::iterator IP = A->getParent()->getEntryBlock().begin(); in GetOptimalInsertionPointForCastOf() local
132 while ((isa<BitCastInst>(IP) && in GetOptimalInsertionPointForCastOf()
133 isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) && in GetOptimalInsertionPointForCastOf()
134 cast<BitCastInst>(IP)->getOperand(0) != A) || in GetOptimalInsertionPointForCastOf()
135 isa<DbgInfoIntrinsic>(IP)) in GetOptimalInsertionPointForCastOf()
136 ++IP; in GetOptimalInsertionPointForCastOf()
137 return IP; in GetOptimalInsertionPointForCastOf()
231 BasicBlock::iterator IP = Builder.GetInsertPoint(); in InsertBinop() local
232 if (IP != BlockBegin) { in InsertBinop()
233 --IP; in InsertBinop()
234 for (; ScanLimit; --IP, --ScanLimit) { in InsertBinop()
237 if (isa<DbgInfoIntrinsic>(IP)) in InsertBinop()
254 if (IP->getOpcode() == (unsigned)Opcode && IP->getOperand(0) == LHS && in InsertBinop()
255 IP->getOperand(1) == RHS && !canGenerateIncompatiblePoison(&*IP)) in InsertBinop()
256 return &*IP; in InsertBinop()
257 if (IP == BlockBegin) break; in InsertBinop()
584 BasicBlock::iterator IP = Builder.GetInsertPoint(); in expandAddToGEP() local
585 if (IP != BlockBegin) { in expandAddToGEP()
586 --IP; in expandAddToGEP()
587 for (; ScanLimit; --IP, --ScanLimit) { in expandAddToGEP()
590 if (isa<DbgInfoIntrinsic>(IP)) in expandAddToGEP()
592 if (IP->getOpcode() == Instruction::GetElementPtr && in expandAddToGEP()
593 IP->getOperand(0) == V && IP->getOperand(1) == Idx) in expandAddToGEP()
594 return &*IP; in expandAddToGEP()
595 if (IP == BlockBegin) break; in expandAddToGEP()
1855 Instruction *IP, bool Root) { in expandCodeForImpl() argument
1856 setInsertPoint(IP); in expandCodeForImpl()
2167 Instruction *IP = nullptr; in replaceCongruentIVs() local
2169 IP = &*PN->getParent()->getFirstInsertionPt(); in replaceCongruentIVs()
2171 IP = OrigInc->getNextNode(); in replaceCongruentIVs()
2173 IRBuilder<> Builder(IP); in replaceCongruentIVs()
2471 Instruction *IP) { in expandCodeForPredicate() argument
2472 assert(IP); in expandCodeForPredicate()
2475 return expandUnionPredicate(cast<SCEVUnionPredicate>(Pred), IP); in expandCodeForPredicate()
2477 return expandEqualPredicate(cast<SCEVEqualPredicate>(Pred), IP); in expandCodeForPredicate()
2480 return expandWrapPredicate(AddRecPred, IP); in expandCodeForPredicate()
2487 Instruction *IP) { in expandEqualPredicate() argument
2489 expandCodeForImpl(Pred->getLHS(), Pred->getLHS()->getType(), IP, false); in expandEqualPredicate()
2491 expandCodeForImpl(Pred->getRHS(), Pred->getRHS()->getType(), IP, false); in expandEqualPredicate()
2493 Builder.SetInsertPoint(IP); in expandEqualPredicate()
2599 Instruction *IP) { in expandWrapPredicate() argument
2605 NUSWCheck = generateOverflowCheck(A, IP, false); in expandWrapPredicate()
2609 NSSWCheck = generateOverflowCheck(A, IP, true); in expandWrapPredicate()
2620 return ConstantInt::getFalse(IP->getContext()); in expandWrapPredicate()
2624 Instruction *IP) { in expandUnionPredicate() argument
2625 auto *BoolType = IntegerType::get(IP->getContext(), 1); in expandUnionPredicate()
2630 auto *NextCheck = expandCodeForPredicate(Pred, IP); in expandUnionPredicate()
2631 Builder.SetInsertPoint(IP); in expandUnionPredicate()