Home | History | Annotate | Download | only in Analysis

Lines Matching defs:IP

26 /// ReuseOrCreateCast - Arrange for there to be a cast of V to Ty at IP,
32 BasicBlock::iterator IP) {
41 if (BasicBlock::iterator(CI) != IP) {
45 Instruction *NewCI = CastInst::Create(Op, V, Ty, "", IP);
58 Instruction *I = CastInst::Create(Op, V, Ty, V->getName(), IP);
103 BasicBlock::iterator IP = A->getParent()->getEntryBlock().begin();
104 while ((isa<BitCastInst>(IP) &&
105 isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) &&
106 cast<BitCastInst>(IP)->getOperand(0) != A) ||
107 isa<DbgInfoIntrinsic>(IP) ||
108 isa<LandingPadInst>(IP))
109 ++IP;
110 return ReuseOrCreateCast(A, Ty, Op, IP);
115 BasicBlock::iterator IP = I; ++IP;
117 IP = II->getNormalDest()->begin();
118 while (isa<PHINode>(IP) || isa<DbgInfoIntrinsic>(IP) ||
119 isa<LandingPadInst>(IP))
120 ++IP;
121 return ReuseOrCreateCast(I, Ty, Op, IP);
137 BasicBlock::iterator IP = Builder.GetInsertPoint();
138 if (IP != BlockBegin) {
139 --IP;
140 for (; ScanLimit; --IP, --ScanLimit) {
143 if (isa<DbgInfoIntrinsic>(IP))
145 if (IP->getOpcode() == (unsigned)Opcode && IP->getOperand(0) == LHS &&
146 IP->getOperand(1) == RHS)
147 return IP;
148 if (IP == BlockBegin) break;
507 BasicBlock::iterator IP = Builder.GetInsertPoint();
508 if (IP != BlockBegin) {
509 --IP;
510 for (; ScanLimit; --IP, --ScanLimit) {
513 if (isa<DbgInfoIntrinsic>(IP))
515 if (IP->getOpcode() == Instruction::GetElementPtr &&
516 IP->getOperand(0) == V && IP->getOperand(1) == Idx)
517 return IP;
518 if (IP == BlockBegin) break;
1367 BasicBlock::iterator IP = I;
1368 while (isInsertedInstruction(IP) || isa<DbgInfoIntrinsic>(IP))
1369 ++IP;
1370 Builder.SetInsertPoint(IP->getParent(), IP);