| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | InferAlignment.cpp | 27 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 D | EarlyCSE.cpp | 1034 auto PtrOp = [](const IntrinsicInst *II) { in isNonTargetIntrinsicMatch() local 1054 if (PtrOp(Earlier) != PtrOp(Later)) in isNonTargetIntrinsicMatch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 839 getStrideAndModOffsetOfGEP(Value *PtrOp, const DataLayout &DL) { in getStrideAndModOffsetOfGEP() argument 840 unsigned BW = DL.getIndexTypeSizeInBits(PtrOp->getType()); in getStrideAndModOffsetOfGEP() 845 while (auto *GEP = dyn_cast<GEPOperator>(PtrOp)) { in getStrideAndModOffsetOfGEP() 861 PtrOp = GEP->getPointerOperand(); in getStrideAndModOffsetOfGEP() 866 if (!isa<GlobalVariable>(PtrOp) || !Stride) in getStrideAndModOffsetOfGEP() 887 auto *PtrOp = LI->getPointerOperand(); in foldPatternedLoads() local 888 auto *GV = dyn_cast<GlobalVariable>(getUnderlyingObject(PtrOp)); in foldPatternedLoads() 899 unsigned BW = DL.getIndexTypeSizeInBits(PtrOp->getType()); in foldPatternedLoads() 900 auto [Stride, ConstOffset] = getStrideAndModOffsetOfGEP(PtrOp, DL); in foldPatternedLoads()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 465 auto *PtrOp = I.getPointerOperand(); in visitStoreInst() local 467 Intrinsic::spv_store, {I.getValueOperand()->getType(), PtrOp->getType()}, in visitStoreInst() 468 {I.getValueOperand(), PtrOp, IRB->getInt16(Flags), in visitStoreInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InstructionSimplify.h | 236 Value *simplifyLoadInst(LoadInst *LI, Value *PtrOp, const SimplifyQuery &Q);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonCommonGEP.cpp | 349 Value *PtrOp = GepI->getPointerOperand(); in processGepInst() local 351 ValueToNodeMap::iterator F = NM.find(PtrOp); in processGepInst() 353 N->BaseVal = PtrOp; in processGepInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 303 Value *PtrOp = LI->getPointerOperand(); in CleanupConstantGlobalUsers() local 304 APInt Offset(DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in CleanupConstantGlobalUsers() 305 PtrOp = PtrOp->stripAndAccumulateConstantOffsets( in CleanupConstantGlobalUsers() 307 if (PtrOp == GV) { in CleanupConstantGlobalUsers()
|
| H A D | AttributorAttributes.cpp | 2926 Value *PtrOp = in updateImpl() local 2928 assert(PtrOp && in updateImpl() 2934 stopOnUndefOrAssumed(A, PtrOp, &I); in updateImpl()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 1336 Value *PtrOp = II.getOperand(1); in instCombineSVELD1() local 1340 LoadInst *Load = IC.Builder.CreateLoad(VecTy, PtrOp); in instCombineSVELD1() 1346 IC.Builder.CreateMaskedLoad(VecTy, PtrOp, PtrOp->getPointerAlignment(DL), in instCombineSVELD1() 1356 Value *PtrOp = II.getOperand(2); in instCombineSVEST1() local 1359 StoreInst *Store = IC.Builder.CreateStore(VecOp, PtrOp); in instCombineSVEST1() 1365 VecOp, PtrOp, PtrOp->getPointerAlignment(DL), Pred); in instCombineSVEST1()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 2383 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() local 2388 if (Value *V = simplifyGEPInst(GEPEltType, PtrOp, Indices, GEP.isInBounds(), in visitGetElementPtrInst() 2455 if (auto *PN = dyn_cast<PHINode>(PtrOp)) { in visitGetElementPtrInst() 2559 if (auto *Src = dyn_cast<GEPOperator>(PtrOp)) in visitGetElementPtrInst() 2649 DL.getIndexSizeInBits(PtrOp->getType()->getPointerAddressSpace()); in visitGetElementPtrInst() 2652 PtrOp->stripAndAccumulateInBoundsConstantOffsets(DL, in visitGetElementPtrInst() 2663 GEP.getSourceElementType(), PtrOp, Indices, GEP.getName()); in visitGetElementPtrInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 6935 Value *llvm::simplifyLoadInst(LoadInst *LI, Value *PtrOp, in simplifyLoadInst() argument 6940 if (auto *PtrOpC = dyn_cast<Constant>(PtrOp)) in simplifyLoadInst() 6945 auto *GV = dyn_cast<GlobalVariable>(getUnderlyingObject(PtrOp)); in simplifyLoadInst() 6957 APInt Offset(Q.DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in simplifyLoadInst() 6958 PtrOp = PtrOp->stripAndAccumulateConstantOffsets( in simplifyLoadInst() 6961 if (PtrOp == GV) { in simplifyLoadInst() 6963 Offset = Offset.sextOrTrunc(Q.DL.getIndexTypeSizeInBits(PtrOp->getType())); in simplifyLoadInst()
|
| H A D | ScalarEvolution.cpp | 4656 const SCEV **PtrOp = nullptr; in removePointerBase() local 4659 assert(!PtrOp && "Cannot have multiple pointer ops"); in removePointerBase() 4660 PtrOp = &AddOp; in removePointerBase() 4663 *PtrOp = removePointerBase(*PtrOp); in removePointerBase() 4849 const SCEV *PtrOp = nullptr; in getPointerBase() local 4852 assert(!PtrOp && "Cannot have multiple pointer ops"); in getPointerBase() 4853 PtrOp = AddOp; in getPointerBase() 4856 assert(PtrOp && "Must have pointer op"); in getPointerBase() 4857 V = PtrOp; in getPointerBase()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 1466 auto SetRVVLoadStoreInfo = [&](unsigned PtrOp, bool IsStore, in getTgtMemIntrinsic() 1469 Info.ptrVal = I.getArgOperand(PtrOp); in getTgtMemIntrinsic()
|