Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp857 uint64_t DerefBytes = 0; in getPointerDereferenceableBytes() local
861 DerefBytes = A->getDereferenceableBytes(); in getPointerDereferenceableBytes()
862 if (DerefBytes == 0) { in getPointerDereferenceableBytes()
867 DerefBytes = DL.getTypeStoreSize(ArgMemTy).getKnownMinValue(); in getPointerDereferenceableBytes()
872 if (DerefBytes == 0) { in getPointerDereferenceableBytes()
873 DerefBytes = A->getDereferenceableOrNullBytes(); in getPointerDereferenceableBytes()
877 DerefBytes = Call->getRetDereferenceableBytes(); in getPointerDereferenceableBytes()
878 if (DerefBytes == 0) { in getPointerDereferenceableBytes()
879 DerefBytes = Call->getRetDereferenceableOrNullBytes(); in getPointerDereferenceableBytes()
885 DerefBytes = CI->getLimitedValue(); in getPointerDereferenceableBytes()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp234 uint64_t DerefBytes = Arg.getDereferenceableBytes(); in lowerKernelArguments() local
235 if (DerefBytes != 0) { in lowerKernelArguments()
240 ConstantInt::get(Builder.getInt64Ty(), DerefBytes)))); in lowerKernelArguments()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp306 auto DerefBytes = static_cast<unsigned>(Arg.getDereferenceableBytes()); in lowerFormalArguments() local
307 if (DerefBytes != 0) in lowerFormalArguments()
309 SPIRV::Decoration::MaxByteOffset, {DerefBytes}); in lowerFormalArguments()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp174 uint64_t DerefBytes = in getMinimalExtentFrom() local
176 DerefBytes = (CanBeNull && NullIsValidLoc) ? 0 : DerefBytes; in getMinimalExtentFrom()
180 DerefBytes = std::max(DerefBytes, LocSize.getValue().getKnownMinValue()); in getMinimalExtentFrom()
181 return TypeSize::getFixed(DerefBytes); in getMinimalExtentFrom()
H A DConstantFolding.cpp957 uint64_t DerefBytes = in SymbolicallyEvaluateGEP() local
959 if (DerefBytes != 0 && !CanBeNull && Offset.sle(DerefBytes)) in SymbolicallyEvaluateGEP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp2534 int64_t DerefBytes = Loc->Size.getValue() + Offset; in getKnownNonNullAndDerefBytesForUse() local
2536 return std::max(int64_t(0), DerefBytes); in getKnownNonNullAndDerefBytesForUse()
2543 int64_t DerefBytes = Loc->Size.getValue(); in getKnownNonNullAndDerefBytesForUse() local
2545 return std::max(int64_t(0), DerefBytes); in getKnownNonNullAndDerefBytesForUse()
4957 int64_t DerefBytes = getKnownNonNullAndDerefBytesForUse( in followUseInMBEC() local
4959 LLVM_DEBUG(dbgs() << "[AADereferenceable] Deref bytes: " << DerefBytes in followUseInMBEC()
4963 State.takeKnownDerefBytesMaximum(DerefBytes); in followUseInMBEC()
5045 int64_t DerefBytes = 0; in updateImpl() local
5050 DerefBytes = in updateImpl()
5055 DerefBytes = DS.DerefBytesState.getAssumed(); in updateImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp272 uint64_t DerefBytes = DereferenceableBytes; in annotateDereferenceableBytes() local
276 DerefBytes = std::max(CI->getParamDereferenceableOrNullBytes(ArgNo), in annotateDereferenceableBytes()
279 if (CI->getParamDereferenceableBytes(ArgNo) < DerefBytes) { in annotateDereferenceableBytes()
285 CI->getContext(), DerefBytes)); in annotateDereferenceableBytes()
H A DInlineFunction.cpp1440 if (auto DerefBytes = CB.getRetDereferenceableBytes()) in IdentifyValidUBGeneratingAttributes() local
1441 Valid.addDereferenceableAttr(DerefBytes); in IdentifyValidUBGeneratingAttributes()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp3060 uint64_t DerefBytes = UnderlyingPtrOp->getPointerDereferenceableBytes( in visitGetElementPtrInst() local
3062 if (!CanBeNull && !CanBeFreed && DerefBytes != 0) { in visitGetElementPtrInst()
3065 APInt AllocSize(IdxWidth, DerefBytes); in visitGetElementPtrInst()