| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | InferAlignment.cpp | 26 function_ref<Align(Value *PtrOp, Align OldAlign, Align PrefAlign)> Fn) { in tryToImproveAlign() argument 28 if (auto *PtrOp = getLoadStorePointerOperand(I)) { in tryToImproveAlign() local 32 Align NewAlign = Fn(PtrOp, OldAlign, PrefAlign); in tryToImproveAlign() 51 DL, &I, [&](Value *PtrOp, Align OldAlign, Align PrefAlign) { in inferAlignment() argument 54 tryEnforceAlignment(PtrOp, PrefAlign, DL)); in inferAlignment() 64 DL, &I, [&](Value *PtrOp, Align OldAlign, Align PrefAlign) { in inferAlignment() argument 65 KnownBits Known = computeKnownBits(PtrOp, DL, &AC, &I, &DT); in inferAlignment()
|
| H A D | LICM.cpp | 2229 const Value *PtrOp = SI->getPointerOperand(); in collectPromotionCandidates() local 2230 return !isa<ConstantData>(PtrOp) && L->isLoopInvariant(PtrOp); in collectPromotionCandidates() 2233 const Value *PtrOp = LI->getPointerOperand(); in collectPromotionCandidates() local 2234 return !isa<ConstantData>(PtrOp) && L->isLoopInvariant(PtrOp); in collectPromotionCandidates()
|
| H A D | EarlyCSE.cpp | 1023 auto PtrOp = [](const IntrinsicInst *II) { in isNonTargetIntrinsicMatch() local 1043 if (PtrOp(Earlier) != PtrOp(Later)) in isNonTargetIntrinsicMatch()
|
| H A D | GVN.cpp | 1232 Value *PtrOp = Load->getPointerOperand(); in findMayClobberedPtrAccess() local 1233 if (!PtrOp->hasUseList()) in findMayClobberedPtrAccess() 1238 for (auto *U : PtrOp->users()) { in findMayClobberedPtrAccess() 1259 for (auto *U : PtrOp->users()) { in findMayClobberedPtrAccess()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 904 getStrideAndModOffsetOfGEP(Value *PtrOp, const DataLayout &DL) { in getStrideAndModOffsetOfGEP() argument 905 unsigned BW = DL.getIndexTypeSizeInBits(PtrOp->getType()); in getStrideAndModOffsetOfGEP() 910 while (auto *GEP = dyn_cast<GEPOperator>(PtrOp)) { in getStrideAndModOffsetOfGEP() 926 PtrOp = GEP->getPointerOperand(); in getStrideAndModOffsetOfGEP() 931 if (!isa<GlobalVariable>(PtrOp) || !Stride) in getStrideAndModOffsetOfGEP() 952 auto *PtrOp = LI->getPointerOperand(); in foldPatternedLoads() local 953 auto *GV = dyn_cast<GlobalVariable>(getUnderlyingObject(PtrOp)); in foldPatternedLoads() 964 unsigned BW = DL.getIndexTypeSizeInBits(PtrOp->getType()); in foldPatternedLoads() 965 auto [Stride, ConstOffset] = getStrideAndModOffsetOfGEP(PtrOp, DL); in foldPatternedLoads()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 312 Value *PtrOp = LI->getPointerOperand(); in CleanupConstantGlobalUsers() local 313 APInt Offset(DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in CleanupConstantGlobalUsers() 314 PtrOp = PtrOp->stripAndAccumulateConstantOffsets( in CleanupConstantGlobalUsers() 316 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(PtrOp)) { in CleanupConstantGlobalUsers() 318 PtrOp = II->getArgOperand(0); in CleanupConstantGlobalUsers() 320 if (PtrOp == GV) { in CleanupConstantGlobalUsers()
|
| H A D | AttributorAttributes.cpp | 2971 Value *PtrOp = in updateImpl() local 2973 assert(PtrOp && in updateImpl() 2979 stopOnUndefOrAssumed(A, PtrOp, &I); in updateImpl()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InstructionSimplify.h | 253 LLVM_ABI Value *simplifyLoadInst(LoadInst *LI, Value *PtrOp,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonCommonGEP.cpp | 342 Value *PtrOp = GepI->getPointerOperand(); in processGepInst() local 344 ValueToNodeMap::iterator F = NM.find(PtrOp); in processGepInst() 346 N->BaseVal = PtrOp; in processGepInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 2941 Value *PtrOp = GEP.getOperand(0); in shouldCanonicalizeGEPToPtrAdd() local 2961 auto PtrOpGep = dyn_cast<GEPOperator>(PtrOp); in shouldCanonicalizeGEPToPtrAdd() 3080 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local 3085 simplifyGEPInst(GEPEltType, PtrOp, Indices, GEP.getNoWrapFlags(), in visitGetElementPtrInst() 3152 GEP, Builder.CreatePtrAdd(PtrOp, Builder.getInt(Offset), "", in visitGetElementPtrInst() 3159 Builder.CreatePtrAdd(PtrOp, Offset, "", GEP.getNoWrapFlags()); in visitGetElementPtrInst() 3190 if (auto *PN = dyn_cast<PHINode>(PtrOp)) { in visitGetElementPtrInst() 3195 if (auto *Src = dyn_cast<GEPOperator>(PtrOp)) in visitGetElementPtrInst() 3288 DL.getIndexSizeInBits(PtrOp->getType()->getPointerAddressSpace()); in visitGetElementPtrInst() 3291 PtrOp->stripAndAccumulateInBoundsConstantOffsets(DL, BasePtrOffset); in visitGetElementPtrInst() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | NumericalStabilitySanitizer.cpp | 1834 Value *PtrOp = Store.getPointerOperand(); in propagateNonFTStore() local 1837 Value *Dst = PtrOp; in propagateNonFTStore() 1929 {PtrOp, ConstantInt::get(IntptrTy, Extents.NumElts)}); in propagateNonFTStore()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 7061 Value *llvm::simplifyLoadInst(LoadInst *LI, Value *PtrOp, in simplifyLoadInst() argument 7066 if (auto *PtrOpC = dyn_cast<Constant>(PtrOp)) in simplifyLoadInst() 7071 auto *GV = dyn_cast<GlobalVariable>(getUnderlyingObject(PtrOp)); in simplifyLoadInst() 7083 APInt Offset(Q.DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in simplifyLoadInst() 7084 PtrOp = PtrOp->stripAndAccumulateConstantOffsets( in simplifyLoadInst() 7087 if (PtrOp == GV) { in simplifyLoadInst() 7089 Offset = Offset.sextOrTrunc(Q.DL.getIndexTypeSizeInBits(PtrOp->getType())); in simplifyLoadInst()
|
| H A D | ScalarEvolution.cpp | 4627 const SCEV **PtrOp = nullptr; in removePointerBase() local 4630 assert(!PtrOp && "Cannot have multiple pointer ops"); in removePointerBase() 4631 PtrOp = &AddOp; in removePointerBase() 4634 *PtrOp = removePointerBase(*PtrOp); in removePointerBase() 4820 const SCEV *PtrOp = nullptr; in getPointerBase() local 4823 assert(!PtrOp && "Cannot have multiple pointer ops"); in getPointerBase() 4824 PtrOp = AddOp; in getPointerBase() 4827 assert(PtrOp && "Must have pointer op"); in getPointerBase() 4828 V = PtrOp; in getPointerBase()
|
| H A D | ValueTracking.cpp | 6652 const Value *PtrOp = GEP->getPointerOperand(); in getUnderlyingObject() local 6653 if (!PtrOp->getType()->isPointerTy()) // Only handle scalar pointer base. in getUnderlyingObject() 6655 V = PtrOp; in getUnderlyingObject()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 2183 Value *PtrOp = II.getOperand(1); in instCombineSVELD1() local 2187 LoadInst *Load = IC.Builder.CreateLoad(VecTy, PtrOp); in instCombineSVELD1() 2193 IC.Builder.CreateMaskedLoad(VecTy, PtrOp, PtrOp->getPointerAlignment(DL), in instCombineSVELD1() 2203 Value *PtrOp = II.getOperand(2); in instCombineSVEST1() local 2206 StoreInst *Store = IC.Builder.CreateStore(VecOp, PtrOp); in instCombineSVEST1() 2212 VecOp, PtrOp, PtrOp->getPointerAlignment(DL), Pred); in instCombineSVEST1()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 1768 auto *PtrOp = I.getPointerOperand(); in visitStoreInst() local 1770 Intrinsic::spv_store, {I.getValueOperand()->getType(), PtrOp->getType()}, in visitStoreInst() 1771 {I.getValueOperand(), PtrOp, B.getInt16(Flags), in visitStoreInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 1741 auto SetRVVLoadStoreInfo = [&](unsigned PtrOp, bool IsStore, in getTgtMemIntrinsic() 1747 Info.ptrVal = I.getArgOperand(PtrOp); in getTgtMemIntrinsic() 1750 I.getArgOperand(PtrOp)->getType()->getPointerAddressSpace(); in getTgtMemIntrinsic()
|