Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAlignment.cpp27 function_ref<Align(Value *PtrOp, Align OldAlign, Align PrefAlign)> Fn) { in tryToImproveAlign() argument
29 Value *PtrOp = LI->getPointerOperand(); in tryToImproveAlign() local
31 Align NewAlign = Fn(PtrOp, OldAlign, DL.getPrefTypeAlign(LI->getType())); in tryToImproveAlign()
37 Value *PtrOp = SI->getPointerOperand(); in tryToImproveAlign() local
40 Align NewAlign = Fn(PtrOp, OldAlign, DL.getPrefTypeAlign(ValOp->getType())); in tryToImproveAlign()
59 DL, &I, [&](Value *PtrOp, Align OldAlign, Align PrefAlign) { in inferAlignment() argument
62 tryEnforceAlignment(PtrOp, PrefAlign, DL)); in inferAlignment()
72 DL, &I, [&](Value *PtrOp, Align OldAlign, Align PrefAlign) { in inferAlignment() argument
73 KnownBits Known = computeKnownBits(PtrOp, DL, 0, &AC, &I, &DT); in inferAlignment()
H A DEarlyCSE.cpp1034 auto PtrOp = [](const IntrinsicInst *II) { in isNonTargetIntrinsicMatch() local
1054 if (PtrOp(Earlier) != PtrOp(Later)) in isNonTargetIntrinsicMatch()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp841 getStrideAndModOffsetOfGEP(Value *PtrOp, const DataLayout &DL) {
842 unsigned BW = DL.getIndexTypeSizeInBits(PtrOp->getType()); in getStrideAndModOffsetOfGEP() argument
847 while (auto *GEP = dyn_cast<GEPOperator>(PtrOp)) { in getStrideAndModOffsetOfGEP()
863 PtrOp = GEP->getPointerOperand(); in getStrideAndModOffsetOfGEP()
868 if (!isa<GlobalVariable>(PtrOp) || !Stride) in getStrideAndModOffsetOfGEP()
889 auto *PtrOp = LI->getPointerOperand(); in foldPatternedLoads()
890 auto *GV = dyn_cast<GlobalVariable>(getUnderlyingObject(PtrOp)); in foldPatternedLoads() local
901 unsigned BW = DL.getIndexTypeSizeInBits(PtrOp->getType()); in foldPatternedLoads()
902 auto [Stride, ConstOffset] = getStrideAndModOffsetOfGEP(PtrOp, DL); in foldPatternedLoads()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp306 Value *PtrOp = LI->getPointerOperand(); in CleanupConstantGlobalUsers() local
307 APInt Offset(DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in CleanupConstantGlobalUsers()
308 PtrOp = PtrOp->stripAndAccumulateConstantOffsets( in CleanupConstantGlobalUsers()
310 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(PtrOp)) { in CleanupConstantGlobalUsers()
312 PtrOp = II->getArgOperand(0); in CleanupConstantGlobalUsers()
314 if (PtrOp == GV) { in CleanupConstantGlobalUsers()
H A DAttributorAttributes.cpp2929 Value *PtrOp = in updateImpl() local
2931 assert(PtrOp && in updateImpl()
2937 stopOnUndefOrAssumed(A, PtrOp, &I); in updateImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h243 Value *simplifyLoadInst(LoadInst *LI, Value *PtrOp, const SimplifyQuery &Q);
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2710 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local
2715 simplifyGEPInst(GEPEltType, PtrOp, Indices, GEP.getNoWrapFlags(), in visitGetElementPtrInst()
2786 GEP, Builder.CreatePtrAdd(PtrOp, Builder.getInt(Offset), "", in visitGetElementPtrInst()
2802 GEP, Builder.CreatePtrAdd(PtrOp, Offset, "", GEP.getNoWrapFlags())); in visitGetElementPtrInst()
2806 if (auto *PN = dyn_cast<PHINode>(PtrOp)) { in visitGetElementPtrInst()
2910 if (auto *Src = dyn_cast<GEPOperator>(PtrOp)) in visitGetElementPtrInst()
3054 DL.getIndexSizeInBits(PtrOp->getType()->getPointerAddressSpace()); in visitGetElementPtrInst()
3057 PtrOp->stripAndAccumulateInBoundsConstantOffsets(DL, in visitGetElementPtrInst()
3068 GEP.getSourceElementType(), PtrOp, Indices, GEP.getName()); in visitGetElementPtrInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1477 Value *PtrOp = II.getOperand(1); in instCombineSVELD1() local
1485 LoadInst *Load = IC.Builder.CreateLoad(VecTy, PtrOp); in instCombineSVELD1()
1491 IC.Builder.CreateMaskedLoad(VecTy, PtrOp, PtrOp->getPointerAlignment(DL), in instCombineSVELD1()
1501 Value *PtrOp = II.getOperand(2); in instCombineSVEST1() local
1504 StoreInst *Store = IC.Builder.CreateStore(VecOp, PtrOp); in instCombineSVEST1()
1510 VecOp, PtrOp, PtrOp->getPointerAlignment(DL), Pred); in instCombineSVEST1()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DNumericalStabilitySanitizer.cpp1777 Value *PtrOp = Store.getPointerOperand(); in propagateNonFTStore() local
1780 Value *Dst = PtrOp; in propagateNonFTStore()
1872 {PtrOp, ConstantInt::get(IntptrTy, Extents.NumElts)}); in propagateNonFTStore()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp1312 auto *PtrOp = I.getPointerOperand(); in visitStoreInst() local
1314 Intrinsic::spv_store, {I.getValueOperand()->getType(), PtrOp->getType()}, in visitStoreInst()
1315 {I.getValueOperand(), PtrOp, B.getInt16(Flags), in visitStoreInst()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp7018 Value *llvm::simplifyLoadInst(LoadInst *LI, Value *PtrOp, in simplifyLoadInst() argument
7023 if (auto *PtrOpC = dyn_cast<Constant>(PtrOp)) in simplifyLoadInst()
7028 auto *GV = dyn_cast<GlobalVariable>(getUnderlyingObject(PtrOp)); in simplifyLoadInst()
7040 APInt Offset(Q.DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in simplifyLoadInst()
7041 PtrOp = PtrOp->stripAndAccumulateConstantOffsets( in simplifyLoadInst()
7044 if (PtrOp == GV) { in simplifyLoadInst()
7046 Offset = Offset.sextOrTrunc(Q.DL.getIndexTypeSizeInBits(PtrOp->getType())); in simplifyLoadInst()
H A DScalarEvolution.cpp4661 const SCEV **PtrOp = nullptr; in removePointerBase() local
4664 assert(!PtrOp && "Cannot have multiple pointer ops"); in removePointerBase()
4665 PtrOp = &AddOp; in removePointerBase()
4668 *PtrOp = removePointerBase(*PtrOp); in removePointerBase()
4854 const SCEV *PtrOp = nullptr; in getPointerBase() local
4857 assert(!PtrOp && "Cannot have multiple pointer ops"); in getPointerBase()
4858 PtrOp = AddOp; in getPointerBase()
4861 assert(PtrOp && "Must have pointer op"); in getPointerBase()
4862 V = PtrOp; in getPointerBase()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp1571 auto SetRVVLoadStoreInfo = [&](unsigned PtrOp, bool IsStore, in getTgtMemIntrinsic() argument
1577 Info.ptrVal = I.getArgOperand(PtrOp); in getTgtMemIntrinsic()
1580 I.getArgOperand(PtrOp)->getType()->getPointerAddressSpace(); in getTgtMemIntrinsic()
1627 return SetRVVLoadStoreInfo(/*PtrOp*/ 1, /*IsStore*/ false, in getTgtMemIntrinsic()
1630 return SetRVVLoadStoreInfo(/*PtrOp*/ 1, /*IsStore*/ true, in getTgtMemIntrinsic()
1639 return SetRVVLoadStoreInfo(/*PtrOp*/ 0, /*IsStore*/ false, in getTgtMemIntrinsic()
1649 return SetRVVLoadStoreInfo(/*PtrOp*/ I.arg_size() - 2, in getTgtMemIntrinsic()
1656 return SetRVVLoadStoreInfo(/*PtrOp*/ 1, in getTgtMemIntrinsic()
1662 return SetRVVLoadStoreInfo(/*PtrOp*/ 1, in getTgtMemIntrinsic()
1672 return SetRVVLoadStoreInfo(/*PtrOp*/ in getTgtMemIntrinsic()
[all...]