Home
last modified time | relevance | path

Searched refs:AllocaSize (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp181 bool IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize);
184 const Value *AllocaPtr, uint64_t AllocaSize);
186 uint64_t AllocaSize);
218 const Value *AllocaPtr, uint64_t AllocaSize) { in IsAccessSafe() argument
237 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AllocaSize)); in IsAccessSafe()
257 uint64_t AllocaSize) { in IsMemIntrinsicSafe() argument
269 return IsAccessSafe(U, Len->getZExtValue(), AllocaPtr, AllocaSize); in IsMemIntrinsicSafe()
275 bool SafeStack::IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize) { in IsSafeStackAlloca() argument
293 AllocaSize)) in IsSafeStackAlloca()
310 AllocaPtr, AllocaSize)) in IsSafeStackAlloca()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp202 unsigned AllocaSize = Ty->isSized() ? DL.getTypeAllocSize(Ty) : 0; in getUnrollingPreferences() local
203 if (AllocaSize > MaxAlloca) in getUnrollingPreferences()
1256 unsigned AllocaSize = 0; in getCallArgsTotalAllocaSize() local
1272 AllocaSize += DL.getTypeAllocSize(AI->getAllocatedType()); in getCallArgsTotalAllocaSize()
1274 return AllocaSize; in getCallArgsTotalAllocaSize()
1282 unsigned AllocaSize = getCallArgsTotalAllocaSize(CB, DL); in adjustInliningThreshold() local
1283 if (AllocaSize > 0) in adjustInliningThreshold()
1293 auto AllocaSize = getCallArgsTotalAllocaSize(CB, DL); in getCallerAllocaCost() local
1294 if (AllocaSize <= ArgAllocaCutoff) in getCallerAllocaCost()
1324 unsigned AllocaThresholdBonus = (Threshold * ArgAllocaSize) / AllocaSize; in getCallerAllocaCost()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DStackLifetime.cpp70 auto AllocaSize = AI->getAllocationSize(DL); in findMatchingAlloca() local
71 if (!AllocaSize) in findMatchingAlloca()
79 if (LifetimeSize != -1 && uint64_t(LifetimeSize) != *AllocaSize) in findMatchingAlloca()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp1411 if (std::optional<TypeSize> AllocaSize = in hasUndefContents() local
1413 if (*AllocaSize == LTSize->getValue()) in hasUndefContents()
1979 std::optional<TypeSize> AllocaSize = AI->getAllocationSize(DL); in processImmutArgument() local
1982 if (!AllocaSize || AllocaSize->isScalable()) in processImmutArgument()
1984 MemoryLocation Loc(ImmutArg, LocationSize::precise(*AllocaSize)); in processImmutArgument()
2007 if (!MDepLen || AllocaSize != MDepLen->getValue()) in processImmutArgument()
H A DSROA.cpp5224 uint64_t AllocaSize = in splitAlloca() local
5227 if (AllocaSize <= MaxBitVectorSize) { in splitAlloca()
5230 SmallBitVector SplittableOffset(AllocaSize + 1, true); in splitAlloca()
5233 O < S.endOffset() && O < AllocaSize; O++) in splitAlloca()
5240 if ((S.beginOffset() > AllocaSize || SplittableOffset[S.beginOffset()]) && in splitAlloca()
5241 (S.endOffset() > AllocaSize || SplittableOffset[S.endOffset()])) in splitAlloca()
5257 if (S.beginOffset() == 0 && S.endOffset() >= AllocaSize) in splitAlloca()
5288 uint64_t AllocaSize = in splitAlloca() local
5291 uint64_t Size = std::min(AllocaSize, P.size() * SizeOfByte); in splitAlloca()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp190 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize() local
191 if (!AllocaSize) in isDereferenceableForAllocaSize()
194 APInt(64, AllocaSize), DL); in isDereferenceableForAllocaSize()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp2656 ConstantInt *AllocaSize = nullptr; in InlineFunction() local
2674 AllocaSize = ConstantInt::get(Type::getInt64Ty(AI->getContext()), in InlineFunction()
2679 builder.CreateLifetimeStart(AI, AllocaSize); in InlineFunction()
2689 IRBuilder<>(RI).CreateLifetimeEnd(AI, AllocaSize); in InlineFunction()