Searched refs:AllocaSize (Results 1 – 8 of 8) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStack.cpp | 180 bool IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize); 183 const Value *AllocaPtr, uint64_t AllocaSize); 185 uint64_t AllocaSize); 217 const Value *AllocaPtr, uint64_t AllocaSize) { in IsAccessSafe() argument 236 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AllocaSize)); in IsAccessSafe() 256 uint64_t AllocaSize) { in IsMemIntrinsicSafe() argument 268 return IsAccessSafe(U, Len->getZExtValue(), AllocaPtr, AllocaSize); in IsMemIntrinsicSafe() 274 bool SafeStack::IsSafeStackAlloca(const Value *AllocaPtr, uint64_t AllocaSize) { in IsSafeStackAlloca() argument 292 AllocaSize)) in IsSafeStackAlloca() 309 AllocaPtr, AllocaSize)) in IsSafeStackAlloca() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.cpp | 209 unsigned AllocaSize = Ty->isSized() ? DL.getTypeAllocSize(Ty) : 0; in getUnrollingPreferences() local 210 if (AllocaSize > MaxAlloca) in getUnrollingPreferences() 1365 unsigned AllocaSize = 0; in getCallArgsTotalAllocaSize() local 1381 AllocaSize += DL.getTypeAllocSize(AI->getAllocatedType()); in getCallArgsTotalAllocaSize() 1383 return AllocaSize; in getCallArgsTotalAllocaSize() 1396 unsigned AllocaSize = getCallArgsTotalAllocaSize(CB, DL); in adjustInliningThreshold() local 1397 if (AllocaSize > 0) in adjustInliningThreshold() 1407 auto AllocaSize = getCallArgsTotalAllocaSize(CB, DL); in getCallerAllocaCost() local 1408 if (AllocaSize <= ArgAllocaCutoff) in getCallerAllocaCost() 1438 unsigned AllocaThresholdBonus = (Threshold * ArgAllocaSize) / AllocaSize; in getCallerAllocaCost()
|
| H A D | AMDGPUPromoteAlloca.cpp | 818 unsigned AllocaSize = DL->getTypeStoreSize(AllocaTy); in tryPromoteAllocaToVector() local 823 if (NumElems * ElementSize != AllocaSize) in tryPromoteAllocaToVector() 824 NumElems = AllocaSize / ElementSize; in tryPromoteAllocaToVector() 825 if (NumElems > 0 && (AllocaSize % ElementSize) == 0) in tryPromoteAllocaToVector()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | StackLifetime.cpp | 70 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 D | MemCpyOptimizer.cpp | 1412 if (std::optional<TypeSize> AllocaSize = in hasUndefContents() local 1414 if (*AllocaSize == LTSize->getValue()) in hasUndefContents() 2070 std::optional<TypeSize> AllocaSize = AI->getAllocationSize(DL); in processImmutArgument() local 2073 if (!AllocaSize || AllocaSize->isScalable()) in processImmutArgument() 2075 MemoryLocation Loc(ImmutArg, LocationSize::precise(*AllocaSize)); in processImmutArgument() 2097 if (!MDepLen || AllocaSize != MDepLen->getValue()) in processImmutArgument()
|
| H A D | SROA.cpp | 5369 uint64_t AllocaSize = in splitAlloca() local 5372 if (AllocaSize <= MaxBitVectorSize) { in splitAlloca() 5375 SmallBitVector SplittableOffset(AllocaSize + 1, true); in splitAlloca() 5378 O < S.endOffset() && O < AllocaSize; O++) in splitAlloca() 5385 if ((S.beginOffset() > AllocaSize || SplittableOffset[S.beginOffset()]) && in splitAlloca() 5386 (S.endOffset() > AllocaSize || SplittableOffset[S.endOffset()])) in splitAlloca() 5402 if (S.beginOffset() == 0 && S.endOffset() >= AllocaSize) in splitAlloca() 5433 uint64_t AllocaSize = in splitAlloca() local 5436 uint64_t Size = std::min(AllocaSize, P.size() * SizeOfByte); in splitAlloca()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 178 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize() local 179 if (!AllocaSize) in isDereferenceableForAllocaSize() 182 APInt(64, AllocaSize), DL); in isDereferenceableForAllocaSize()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 2984 ConstantInt *AllocaSize = nullptr; in InlineFunction() local 3002 AllocaSize = ConstantInt::get(Type::getInt64Ty(AI->getContext()), in InlineFunction() 3007 builder.CreateLifetimeStart(AI, AllocaSize); in InlineFunction() 3017 IRBuilder<>(RI).CreateLifetimeEnd(AI, AllocaSize); in InlineFunction()
|