Home
last modified time | relevance | path

Searched refs:PtrOp (Results 1 – 11 of 11) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1446 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local
1491 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 …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp805 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local
844 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()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1336 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local
1377 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 …]
/external/llvm/lib/Target/Hexagon/
DHexagonCommonGEP.cpp326 Value *PtrOp = GepI->getPointerOperand(); in processGepInst() local
327 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonCommonGEP.cpp347 Value *PtrOp = GepI->getPointerOperand(); in processGepInst() local
349 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()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp1488 Operator *PtrOp = dyn_cast<Operator>(Ptr); in GetPointerBaseWithConstantOffset() local
1489 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()
DScalarEvolution.cpp2900 const SCEV *PtrOp = 0; in getPointerBase() local
2905 if (PtrOp) in getPointerBase()
2907 PtrOp = *I; in getPointerBase()
2910 if (!PtrOp) in getPointerBase()
2912 return getPointerBase(PtrOp); in getPointerBase()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DJumpThreading.cpp827 if (Instruction *PtrOp = dyn_cast<Instruction>(LoadedPtr)) in SimplifyPartiallyRedundantLoad() local
828 if (PtrOp->getParent() == LoadBB) in SimplifyPartiallyRedundantLoad()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp946 if (Instruction *PtrOp = dyn_cast<Instruction>(LoadedPtr)) in SimplifyPartiallyRedundantLoad() local
947 if (PtrOp->getParent() == LoadBB) in SimplifyPartiallyRedundantLoad()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp3623 const SCEV *PtrOp = nullptr; in getPointerBase() local
3627 if (PtrOp) in getPointerBase()
3629 PtrOp = NAryOp; in getPointerBase()
3632 if (!PtrOp) in getPointerBase()
3634 return getPointerBase(PtrOp); in getPointerBase()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DScalarEvolution.cpp4144 const SCEV *PtrOp = nullptr; in getPointerBase() local
4148 if (PtrOp) in getPointerBase()
4150 PtrOp = NAryOp; in getPointerBase()
4153 if (!PtrOp) in getPointerBase()
4155 return getPointerBase(PtrOp); in getPointerBase()