/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | VectorCombine.cpp | 119 Value *PtrOp = Load->getPointerOperand()->stripPointerCasts(); in vectorizeLoadInsert() local 120 assert(isa<PointerType>(PtrOp->getType()) && "Expected a pointer type"); in vectorizeLoadInsert() 126 if (AS != PtrOp->getType()->getPointerAddressSpace()) in vectorizeLoadInsert() 127 PtrOp = Load->getPointerOperand(); in vectorizeLoadInsert() 140 if (!isSafeToLoadUnconditionally(PtrOp, MinVecTy, Alignment, DL, Load, &DT)) in vectorizeLoadInsert() 162 Value *CastedPtr = Builder.CreateBitCast(PtrOp, MinVecTy->getPointerTo(AS)); in vectorizeLoadInsert()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1336 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/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1685 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local 1730 if (auto *PN = dyn_cast<PHINode>(PtrOp)) { in visitGetElementPtrInst() 1836 PtrOp = NewGEP; in visitGetElementPtrInst() 1842 if (auto *Src = dyn_cast<GEPOperator>(PtrOp)) { in visitGetElementPtrInst() 1884 Builder.SetInsertPoint(cast<Instruction>(PtrOp)); in visitGetElementPtrInst() 1989 Value *PtrToInt = Builder.CreatePtrToInt(PtrOp, Index->getType()); in visitGetElementPtrInst() 2008 Value *StrippedPtr = PtrOp->stripPointerCasts(); in visitGetElementPtrInst() 2011 if (StrippedPtr != PtrOp) { in visitGetElementPtrInst() 2185 Value *ASCStrippedPtrOp = PtrOp; in visitGetElementPtrInst() 2186 if (auto *ASC = dyn_cast<AddrSpaceCastInst>(PtrOp)) { in visitGetElementPtrInst() [all …]
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1854 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local 1900 if (auto *PN = dyn_cast<PHINode>(PtrOp)) { in visitGetElementPtrInst() 2002 PtrOp = NewGEP; in visitGetElementPtrInst() 2008 if (auto *Src = dyn_cast<GEPOperator>(PtrOp)) { in visitGetElementPtrInst() 2050 Builder.SetInsertPoint(cast<Instruction>(PtrOp)); in visitGetElementPtrInst() 2157 Value *PtrToInt = Builder.CreatePtrToInt(PtrOp, Index->getType()); in visitGetElementPtrInst() 2176 Value *StrippedPtr = PtrOp->stripPointerCasts(); in visitGetElementPtrInst() 2179 if (StrippedPtr != PtrOp) { in visitGetElementPtrInst() 2355 Value *ASCStrippedPtrOp = PtrOp; in visitGetElementPtrInst() 2356 if (auto *ASC = dyn_cast<AddrSpaceCastInst>(PtrOp)) { in visitGetElementPtrInst() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonCommonGEP.cpp | 326 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-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonCommonGEP.cpp | 348 Value *PtrOp = GepI->getPointerOperand(); in processGepInst() local 350 ValueToNodeMap::iterator F = NM.find(PtrOp); in processGepInst() 352 N->BaseVal = PtrOp; in processGepInst() 360 N->PTy = PtrOp->getType(); in processGepInst() 383 Type *PtrTy = cast<PointerType>(PtrOp->getType())->getElementType(); in processGepInst()
|
/external/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonCommonGEP.cpp | 338 Value *PtrOp = GepI->getPointerOperand(); in processGepInst() local 340 ValueToNodeMap::iterator F = NM.find(PtrOp); in processGepInst() 342 N->BaseVal = PtrOp; in processGepInst() 350 N->PTy = PtrOp->getType(); in processGepInst() 373 Type *PtrTy = cast<PointerType>(PtrOp->getType())->getElementType(); in processGepInst()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 870 auto PtrOp = [](const IntrinsicInst *II) { in isNonTargetIntrinsicMatch() local 890 if (PtrOp(Earlier) != PtrOp(Later)) in isNonTargetIntrinsicMatch()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 946 if (Instruction *PtrOp = dyn_cast<Instruction>(LoadedPtr)) in SimplifyPartiallyRedundantLoad() local 947 if (PtrOp->getParent() == LoadBB) in SimplifyPartiallyRedundantLoad()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | Attributor.cpp | 2037 const Value *PtrOp = in updateImpl() local 2039 assert(PtrOp && in updateImpl() 2045 if (!isa<ConstantPointerNull>(PtrOp)) { in updateImpl() 2049 const Type *PtrTy = PtrOp->getType(); in updateImpl()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 3623 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/llvm-project/llvm/lib/Transforms/IPO/ |
D | AttributorAttributes.cpp | 1945 const Value *PtrOp = getPointerOperand(&I, /* AllowVolatile */ true); in updateImpl() local 1946 assert(PtrOp && in updateImpl() 1951 Optional<Value *> SimplifiedPtrOp = stopOnUndefOrAssumed(A, PtrOp, &I); in updateImpl()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 4173 const SCEV *PtrOp = nullptr; in getPointerBase() local 4177 if (PtrOp) in getPointerBase() 4179 PtrOp = NAryOp; in getPointerBase() 4182 if (!PtrOp) in getPointerBase() 4184 return getPointerBase(PtrOp); in getPointerBase()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 4132 const SCEV *PtrOp = nullptr; in getPointerBase() local 4136 if (PtrOp) in getPointerBase() 4138 PtrOp = NAryOp; in getPointerBase() 4141 if (!PtrOp) // All operands were non-pointer. in getPointerBase() 4143 V = PtrOp; in getPointerBase()
|