Home | History | Annotate | Download | only in Analysis

Lines Matching defs:IP

27 /// ReuseOrCreateCast - Arrange for there to be a cast of V to Ty at IP,
33 BasicBlock::iterator IP) {
35 // point. It doesn't need to be the actual IP where the uses of the returned
36 // cast will be added, but it must dominate such IP.
54 // If the cast isn't where we want it, create a new cast at IP.
57 if (BasicBlock::iterator(CI) != IP || BIP == IP) {
61 Ret = CastInst::Create(Op, V, Ty, "", IP);
74 Ret = CastInst::Create(Op, V, Ty, V->getName(), IP);
76 // We assert at the end of the function since IP might point to an
130 BasicBlock::iterator IP = A->getParent()->getEntryBlock().begin();
131 while ((isa<BitCastInst>(IP) &&
132 isa<Argument>(cast<BitCastInst>(IP)->getOperand(0)) &&
133 cast<BitCastInst>(IP)->getOperand(0) != A) ||
134 isa<DbgInfoIntrinsic>(IP) ||
135 isa<LandingPadInst>(IP))
136 ++IP;
137 return ReuseOrCreateCast(A, Ty, Op, IP);
142 BasicBlock::iterator IP = I; ++IP;
144 IP = II->getNormalDest()->begin();
145 while (isa<PHINode>(IP) || isa<LandingPadInst>(IP))
146 ++IP;
147 return ReuseOrCreateCast(I, Ty, Op, IP);
163 BasicBlock::iterator IP = Builder.GetInsertPoint();
164 if (IP != BlockBegin) {
165 --IP;
166 for (; ScanLimit; --IP, --ScanLimit) {
169 if (isa<DbgInfoIntrinsic>(IP))
171 if (IP->getOpcode() == (unsigned)Opcode && IP->getOperand(0) == LHS &&
172 IP->getOperand(1) == RHS)
173 return IP;
174 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;
1478 Instruction *IP) {
1479 Builder.SetInsertPoint(IP->getParent(), IP);
1676 Instruction *IP = isa<PHINode>(OrigInc)
1679 IRBuilder<> Builder(IP);