Lines Matching refs:IntToPtr
102 auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back()); in FoldIntegerTypedPHI() local
103 if (!IntToPtr) in FoldIntegerTypedPHI()
124 if (!HasPointerUse(IntToPtr)) in FoldIntegerTypedPHI()
127 if (DL.getPointerSizeInBits(IntToPtr->getAddressSpace()) != in FoldIntegerTypedPHI()
128 DL.getTypeSizeInBits(IntToPtr->getOperand(0)->getType())) in FoldIntegerTypedPHI()
144 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
190 if (!PtrPHI || PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType()) in FoldIntegerTypedPHI()
206 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
210 IntToPtr->getOperand(0)->getType()); in FoldIntegerTypedPHI()
215 return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V); in FoldIntegerTypedPHI()
222 if (V->getType() == IntToPtr->getType()) in FoldIntegerTypedPHI()
231 IntToPtr->getType(), PN.getNumIncomingValues(), PN.getName() + ".ptr"); in FoldIntegerTypedPHI()
239 if (IncomingVal->getType() == IntToPtr->getType()) { in FoldIntegerTypedPHI()
261 CI = CastInst::CreateBitOrPointerCast(IncomingVal, IntToPtr->getType(), in FoldIntegerTypedPHI()
279 IntToPtr->getOperand(0)->getType()); in FoldIntegerTypedPHI()