Lines Matching refs:IP

50                                        BasicBlock::iterator IP) {  in ReuseOrCreateCast()  argument
74 if (IP->getParent() == CI->getParent() && &*BIP != CI && in ReuseOrCreateCast()
75 (&*IP == CI || CI->comesBefore(&*IP))) { in ReuseOrCreateCast()
84 Builder.SetInsertPoint(&*IP); in ReuseOrCreateCast()
100 BasicBlock::iterator IP = ++I->getIterator(); in findInsertPointAfter() local
102 IP = II->getNormalDest()->begin(); in findInsertPointAfter()
104 while (isa<PHINode>(IP)) in findInsertPointAfter()
105 ++IP; in findInsertPointAfter()
107 if (isa<FuncletPadInst>(IP) || isa<LandingPadInst>(IP)) { in findInsertPointAfter()
108 ++IP; in findInsertPointAfter()
109 } else if (isa<CatchSwitchInst>(IP)) { in findInsertPointAfter()
110 IP = MustDominate->getParent()->getFirstInsertionPt(); in findInsertPointAfter()
112 assert(!IP->isEHPad() && "unexpected eh pad!"); in findInsertPointAfter()
118 while (isInsertedInstruction(&*IP) && &*IP != MustDominate) in findInsertPointAfter()
119 ++IP; in findInsertPointAfter()
121 return IP; in findInsertPointAfter()
129 BasicBlock::iterator IP = A->getParent()->getEntryBlock().begin(); in GetOptimalInsertionPointForCastOf() local
130 while ((isa<BitCastInst>(IP) && in GetOptimalInsertionPointForCastOf()
131 isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) && in GetOptimalInsertionPointForCastOf()
132 cast<BitCastInst>(IP)->getOperand(0) != A) || in GetOptimalInsertionPointForCastOf()
133 isa<DbgInfoIntrinsic>(IP)) in GetOptimalInsertionPointForCastOf()
134 ++IP; in GetOptimalInsertionPointForCastOf()
135 return IP; in GetOptimalInsertionPointForCastOf()
230 BasicBlock::iterator IP = Builder.GetInsertPoint(); in InsertBinop() local
231 if (IP != BlockBegin) { in InsertBinop()
232 --IP; in InsertBinop()
233 for (; ScanLimit; --IP, --ScanLimit) { in InsertBinop()
236 if (isa<DbgInfoIntrinsic>(IP)) in InsertBinop()
253 if (IP->getOpcode() == (unsigned)Opcode && IP->getOperand(0) == LHS && in InsertBinop()
254 IP->getOperand(1) == RHS && !canGenerateIncompatiblePoison(&*IP)) in InsertBinop()
255 return &*IP; in InsertBinop()
256 if (IP == BlockBegin) break; in InsertBinop()
585 BasicBlock::iterator IP = Builder.GetInsertPoint(); in expandAddToGEP() local
586 if (IP != BlockBegin) { in expandAddToGEP()
587 --IP; in expandAddToGEP()
588 for (; ScanLimit; --IP, --ScanLimit) { in expandAddToGEP()
591 if (isa<DbgInfoIntrinsic>(IP)) in expandAddToGEP()
593 if (IP->getOpcode() == Instruction::GetElementPtr && in expandAddToGEP()
594 IP->getOperand(0) == V && IP->getOperand(1) == Idx && in expandAddToGEP()
595 cast<GEPOperator>(&*IP)->getSourceElementType() == in expandAddToGEP()
597 return &*IP; in expandAddToGEP()
598 if (IP == BlockBegin) break; in expandAddToGEP()
1721 Instruction *IP, bool Root) { in expandCodeForImpl() argument
1722 setInsertPoint(IP); in expandCodeForImpl()
2020 Instruction *IP = nullptr; in replaceCongruentIVs() local
2022 IP = &*PN->getParent()->getFirstInsertionPt(); in replaceCongruentIVs()
2024 IP = OrigInc->getNextNode(); in replaceCongruentIVs()
2026 IRBuilder<> Builder(IP); in replaceCongruentIVs()
2336 Instruction *IP) { in expandCodeForPredicate() argument
2337 assert(IP); in expandCodeForPredicate()
2340 return expandUnionPredicate(cast<SCEVUnionPredicate>(Pred), IP); in expandCodeForPredicate()
2342 return expandComparePredicate(cast<SCEVComparePredicate>(Pred), IP); in expandCodeForPredicate()
2345 return expandWrapPredicate(AddRecPred, IP); in expandCodeForPredicate()
2352 Instruction *IP) { in expandComparePredicate() argument
2354 expandCodeForImpl(Pred->getLHS(), Pred->getLHS()->getType(), IP, false); in expandComparePredicate()
2356 expandCodeForImpl(Pred->getRHS(), Pred->getRHS()->getType(), IP, false); in expandComparePredicate()
2358 Builder.SetInsertPoint(IP); in expandComparePredicate()
2494 Instruction *IP) { in expandWrapPredicate() argument
2500 NUSWCheck = generateOverflowCheck(A, IP, false); in expandWrapPredicate()
2504 NSSWCheck = generateOverflowCheck(A, IP, true); in expandWrapPredicate()
2515 return ConstantInt::getFalse(IP->getContext()); in expandWrapPredicate()
2519 Instruction *IP) { in expandUnionPredicate() argument
2523 Checks.push_back(expandCodeForPredicate(Pred, IP)); in expandUnionPredicate()
2524 Builder.SetInsertPoint(IP); in expandUnionPredicate()
2528 return ConstantInt::getFalse(IP->getContext()); in expandUnionPredicate()