Searched refs:PtrOp (Results 1 – 11 of 11) sorted by relevance
1446 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local1491 if (auto *PN = dyn_cast<PHINode>(PtrOp)) { in visitGetElementPtrInst()1594 PtrOp = NewGEP; in visitGetElementPtrInst()1600 if (auto *Src = dyn_cast<GEPOperator>(PtrOp)) { in visitGetElementPtrInst()1642 Builder.SetInsertPoint(cast<Instruction>(PtrOp)); in visitGetElementPtrInst()1746 Value *PtrToInt = Builder.CreatePtrToInt(PtrOp, Index->getType()); in visitGetElementPtrInst()1765 Value *StrippedPtr = PtrOp->stripPointerCasts(); in visitGetElementPtrInst()1768 if (StrippedPtr != PtrOp) { in visitGetElementPtrInst()1938 Value *ASCStrippedPtrOp = PtrOp; in visitGetElementPtrInst()1939 if (auto *ASC = dyn_cast<AddrSpaceCastInst>(PtrOp)) { in visitGetElementPtrInst()[all …]
805 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local844 if (GEPOperator *Src = dyn_cast<GEPOperator>(PtrOp)) { in visitGetElementPtrInst()883 Sum = Builder->CreateAdd(SO1, GO1, PtrOp->getName()+".sum"); in visitGetElementPtrInst()911 Value *StrippedPtr = PtrOp->stripPointerCasts(); in visitGetElementPtrInst()913 if (StrippedPtr != PtrOp && in visitGetElementPtrInst()928 PointerType *CPTy = cast<PointerType>(PtrOp->getType()); in visitGetElementPtrInst()960 Type *ResElTy=cast<PointerType>(PtrOp->getType())->getElementType(); in visitGetElementPtrInst()1041 if (BitCastInst *BCI = dyn_cast<BitCastInst>(PtrOp)) { in visitGetElementPtrInst()
1336 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local1377 if (PHINode *PN = dyn_cast<PHINode>(PtrOp)) { in visitGetElementPtrInst()1480 PtrOp = NewGEP; in visitGetElementPtrInst()1487 if (GEPOperator *Src = dyn_cast<GEPOperator>(PtrOp)) { in visitGetElementPtrInst()1531 Sum = Builder->CreateAdd(SO1, GO1, PtrOp->getName()+".sum"); in visitGetElementPtrInst()1591 Value *PtrToInt = Builder->CreatePtrToInt(PtrOp, Index->getType()); in visitGetElementPtrInst()1608 Value *StrippedPtr = PtrOp->stripPointerCasts(); in visitGetElementPtrInst()1615 if (StrippedPtr != PtrOp) { in visitGetElementPtrInst()1787 if (AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(PtrOp)) { in visitGetElementPtrInst()1793 PtrOp = BC; in visitGetElementPtrInst()[all …]
326 Value *PtrOp = GepI->getPointerOperand(); in processGepInst() local327 ValueToNodeMap::iterator F = NM.find(PtrOp); in processGepInst()329 N->BaseVal = PtrOp; in processGepInst()337 N->PTy = PtrOp->getType(); in processGepInst()360 Type *PtrTy = cast<PointerType>(PtrOp->getType())->getElementType(); in processGepInst()
347 Value *PtrOp = GepI->getPointerOperand(); in processGepInst() local349 ValueToNodeMap::iterator F = NM.find(PtrOp); in processGepInst()351 N->BaseVal = PtrOp; in processGepInst()359 N->PTy = PtrOp->getType(); in processGepInst()382 Type *PtrTy = cast<PointerType>(PtrOp->getType())->getElementType(); in processGepInst()
1488 Operator *PtrOp = dyn_cast<Operator>(Ptr); in GetPointerBaseWithConstantOffset() local1489 if (PtrOp == 0) return Ptr; in GetPointerBaseWithConstantOffset()1492 if (PtrOp->getOpcode() == Instruction::BitCast) in GetPointerBaseWithConstantOffset()1493 return GetPointerBaseWithConstantOffset(PtrOp->getOperand(0), Offset, TD); in GetPointerBaseWithConstantOffset()1496 GEPOperator *GEP = dyn_cast<GEPOperator>(PtrOp); in GetPointerBaseWithConstantOffset()
2900 const SCEV *PtrOp = 0; in getPointerBase() local2905 if (PtrOp) in getPointerBase()2907 PtrOp = *I; in getPointerBase()2910 if (!PtrOp) in getPointerBase()2912 return getPointerBase(PtrOp); in getPointerBase()
827 if (Instruction *PtrOp = dyn_cast<Instruction>(LoadedPtr)) in SimplifyPartiallyRedundantLoad() local828 if (PtrOp->getParent() == LoadBB) in SimplifyPartiallyRedundantLoad()
946 if (Instruction *PtrOp = dyn_cast<Instruction>(LoadedPtr)) in SimplifyPartiallyRedundantLoad() local947 if (PtrOp->getParent() == LoadBB) in SimplifyPartiallyRedundantLoad()
3623 const SCEV *PtrOp = nullptr; in getPointerBase() local3627 if (PtrOp) in getPointerBase()3629 PtrOp = NAryOp; in getPointerBase()3632 if (!PtrOp) in getPointerBase()3634 return getPointerBase(PtrOp); in getPointerBase()
4144 const SCEV *PtrOp = nullptr; in getPointerBase() local4148 if (PtrOp) in getPointerBase()4150 PtrOp = NAryOp; in getPointerBase()4153 if (!PtrOp) in getPointerBase()4155 return getPointerBase(PtrOp); in getPointerBase()