Lines Matching defs:IP

28 /// ReuseOrCreateCast - Arrange for there to be a cast of V to Ty at IP,
34 BasicBlock::iterator IP) {
36 // point. It doesn't need to be the actual IP where the uses of the returned
37 // cast will be added, but it must dominate such IP.
55 // If the cast isn't where we want it, create a new cast at IP.
58 if (BasicBlock::iterator(CI) != IP || BIP == IP) {
62 Ret = CastInst::Create(Op, V, Ty, "", IP);
75 Ret = CastInst::Create(Op, V, Ty, V->getName(), IP);
77 // We assert at the end of the function since IP might point to an
131 BasicBlock::iterator IP = A->getParent()->getEntryBlock().begin();
132 while ((isa<BitCastInst>(IP) &&
133 isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) &&
134 cast<BitCastInst>(IP)->getOperand(0) != A) ||
135 isa<DbgInfoIntrinsic>(IP) ||
136 isa<LandingPadInst>(IP))
137 ++IP;
138 return ReuseOrCreateCast(A, Ty, Op, IP);
143 BasicBlock::iterator IP = I; ++IP;
145 IP = II->getNormalDest()->begin();
146 while (isa<PHINode>(IP) || isa<LandingPadInst>(IP))
147 ++IP;
148 return ReuseOrCreateCast(I, Ty, Op, IP);
164 BasicBlock::iterator IP = Builder.GetInsertPoint();
165 if (IP != BlockBegin) {
166 --IP;
167 for (; ScanLimit; --IP, --ScanLimit) {
170 if (isa<DbgInfoIntrinsic>(IP))
172 if (IP->getOpcode() == (unsigned)Opcode && IP->getOperand(0) == LHS &&
173 IP->getOperand(1) == RHS)
174 return IP;
175 if (IP == BlockBegin) break;
536 BasicBlock::iterator IP = Builder.GetInsertPoint();
537 if (IP != BlockBegin) {
538 --IP;
539 for (; ScanLimit; --IP, --ScanLimit) {
542 if (isa<DbgInfoIntrinsic>(IP))
544 if (IP->getOpcode() == Instruction::GetElementPtr &&
545 IP->getOperand(0) == V && IP->getOperand(1) == Idx)
546 return IP;
547 if (IP == BlockBegin) break;
1469 Instruction *IP) {
1470 Builder.SetInsertPoint(IP->getParent(), IP);
1667 Instruction *IP = isa<PHINode>(OrigInc)
1670 IRBuilder<> Builder(IP);