Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp305 auto *PtrOp = I.getPointerOperand(); in visitStoreInst() local
307 Intrinsic::spv_store, {I.getValueOperand()->getType(), PtrOp->getType()}, in visitStoreInst()
308 {I.getValueOperand(), PtrOp, IRB->getInt16(Flags), in visitStoreInst()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2265 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local
2337 if (auto *PN = dyn_cast<PHINode>(PtrOp)) { in visitGetElementPtrInst()
2440 PtrOp = NewGEP; in visitGetElementPtrInst()
2443 if (auto *Src = dyn_cast<GEPOperator>(PtrOp)) in visitGetElementPtrInst()
2488 Value *StrippedPtr = PtrOp->stripPointerCasts(); in visitGetElementPtrInst()
2495 if (StrippedPtr != PtrOp && !StrippedPtrTy->isOpaque()) { in visitGetElementPtrInst()
2658 Value *ASCStrippedPtrOp = PtrOp; in visitGetElementPtrInst()
2659 if (auto *ASC = dyn_cast<AddrSpaceCastInst>(PtrOp)) { in visitGetElementPtrInst()
2674 DL.getIndexSizeInBits(PtrOp->getType()->getPointerAddressSpace()); in visitGetElementPtrInst()
2677 PtrOp->stripAndAccumulateInBoundsConstantOffsets(DL, in visitGetElementPtrInst()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonCommonGEP.cpp349 Value *PtrOp = GepI->getPointerOperand(); in processGepInst() local
351 ValueToNodeMap::iterator F = NM.find(PtrOp); in processGepInst()
353 N->BaseVal = PtrOp; in processGepInst()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp314 Value *PtrOp = LI->getPointerOperand(); in CleanupConstantGlobalUsers() local
315 APInt Offset(DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in CleanupConstantGlobalUsers()
316 PtrOp = PtrOp->stripAndAccumulateConstantOffsets( in CleanupConstantGlobalUsers()
318 if (PtrOp == GV) { in CleanupConstantGlobalUsers()
H A DAttributorAttributes.cpp2530 Value *PtrOp = in updateImpl() local
2532 assert(PtrOp && in updateImpl()
2537 Optional<Value *> SimplifiedPtrOp = stopOnUndefOrAssumed(A, PtrOp, &I); in updateImpl()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp903 auto PtrOp = [](const IntrinsicInst *II) { in isNonTargetIntrinsicMatch() local
923 if (PtrOp(Earlier) != PtrOp(Later)) in isNonTargetIntrinsicMatch()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1029 Value *PtrOp = II.getOperand(1); in instCombineSVELD1() local
1031 Value *VecPtr = Builder.CreateBitCast(PtrOp, VecTy->getPointerTo()); in instCombineSVELD1()
1040 Builder.CreateMaskedLoad(VecTy, VecPtr, PtrOp->getPointerAlignment(DL), in instCombineSVELD1()
1053 Value *PtrOp = II.getOperand(2); in instCombineSVEST1() local
1055 Builder.CreateBitCast(PtrOp, VecOp->getType()->getPointerTo()); in instCombineSVEST1()
1064 VecOp, VecPtr, PtrOp->getPointerAlignment(DL), Pred); in instCombineSVEST1()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInstructionSimplify.cpp6266 static Value *simplifyLoadInst(LoadInst *LI, Value *PtrOp, in simplifyLoadInst() argument
6271 APInt Offset(Q.DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in simplifyLoadInst()
6272 auto *PtrOpC = dyn_cast<Constant>(PtrOp); in simplifyLoadInst()
6276 if (!PtrOpC && isa<Constant>(getUnderlyingObject(PtrOp))) { in simplifyLoadInst()
6277 PtrOp = PtrOp->stripAndAccumulateConstantOffsets( in simplifyLoadInst()
6281 Offset = Offset.sextOrTrunc(Q.DL.getIndexTypeSizeInBits(PtrOp->getType())); in simplifyLoadInst()
6282 PtrOpC = dyn_cast<Constant>(PtrOp); in simplifyLoadInst()
H A DScalarEvolution.cpp4497 const SCEV **PtrOp = nullptr; in removePointerBase() local
4500 assert(!PtrOp && "Cannot have multiple pointer ops"); in removePointerBase()
4501 PtrOp = &AddOp; in removePointerBase()
4504 *PtrOp = removePointerBase(*PtrOp); in removePointerBase()
4690 const SCEV *PtrOp = nullptr; in getPointerBase() local
4693 assert(!PtrOp && "Cannot have multiple pointer ops"); in getPointerBase()
4694 PtrOp = AddOp; in getPointerBase()
4697 assert(PtrOp && "Must have pointer op"); in getPointerBase()
4698 V = PtrOp; in getPointerBase()