Home
last modified time | relevance | path

Searched refs:getAllocatedType (Results 1 – 25 of 51) sorted by relevance

123

/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp176 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize()
199 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
346 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst()
349 AI.setAlignment(DL.getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst()
354 if (DL.getTypeAllocSize(AI.getAllocatedType()) == 0) { in visitAllocaInst()
371 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
372 DL.getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst()
381 DL.getPrefTypeAlignment(EntryAI->getAllocatedType())); in visitAllocaInst()
834 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq()
841 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp362 Type *AT = Alloca->getAllocatedType(); in tryPromoteAllocaToVector()
723 Type *AllocaTy = I.getAllocatedType(); in handleAlloca()
761 Align = DL.getABITypeAlignment(I.getAllocatedType()); in handleAlloca()
792 Type *GVTy = ArrayType::get(I.getAllocatedType(), WorkGroupSize); in handleAlloca()
H A DAMDGPUInline.cpp135 AllocaSize += DL.getTypeAllocSize(AI->getAllocatedType()); in getInlineThreshold()
H A DAMDGPUTargetTransformInfo.cpp158 Type *Ty = Alloca->getAllocatedType(); in getUnrollingPreferences()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DSafeStack.cpp221 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
502 Type *Ty = StackGuardSlot->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
522 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
659 Type *Ty = AI->getAllocatedType(); in moveDynamicAllocasToUnsafeStack()
H A DGCRootLowering.cpp164 ConstantPointerNull::get(cast<PointerType>(Root->getAllocatedType())), in InsertRootInitializers()
H A DStackProtector.cpp286 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector()
H A DShadowStackGCLowering.cpp161 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGCXXABI.cpp171 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
205 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
H A DCGExprCXX.cpp685 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize()
1062 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer()
1286 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr, in EmitNewInitializer()
1550 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp553 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
556 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
831 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
838 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
H A DLoads.cpp226 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
H A DStackSafetyAnalysis.cpp133 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
H A DInlineCost.cpp428 Type *Ty = I.getAllocatedType(); in visitAlloca()
437 Type *Ty = I.getAllocatedType(); in visitAlloca()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSROA.cpp673 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder()
2287 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2395 NewAIAlign = DL.getABITypeAlignment(NewAI.getAllocatedType()); in getSliceAlign()
2732 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
2868 SliceSize != DL.getTypeStoreSize(NewAI.getAllocatedType()) || in visitMemTransferInst()
2869 !NewAI.getAllocatedType()->isSingleValueType()); in visitMemTransferInst()
4083 if (SliceTy == AI.getAllocatedType() && P.beginOffset() == 0) { in rewritePartition()
4094 Alignment = DL.getABITypeAlignment(AI.getAllocatedType()); in rewritePartition()
4209 uint64_t AllocaSize = DL.getTypeAllocSize(AI.getAllocatedType()); in splitAlloca()
4381 if (AI.isArrayAllocation() || !AI.getAllocatedType()->isSized() || in runOnAlloca()
[all …]
H A DMemCpyOptimizer.cpp839 uint64_t srcSize = DL.getTypeAllocSize(srcAlloca->getAllocatedType()) * in performCallSlotOptzn()
854 uint64_t destSize = DL.getTypeAllocSize(A->getAllocatedType()) * in performCallSlotOptzn()
889 srcAlign = DL.getABITypeAlignment(srcAlloca->getAllocatedType()); in performCallSlotOptzn()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DValue.cpp632 DerefBytes = DL.getTypeStoreSize(AI->getAllocatedType()); in getPointerDereferenceableBytes()
682 Type *AllocatedType = AI->getAllocatedType(); in getPointerAlignment()
H A DInstruction.cpp383 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in haveSameSpecialState()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DPromoteMemoryToRegister.cpp659 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
877 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
H A DFunctionComparator.cpp525 if (int Res = cmpTypes(AI->getAllocatedType(), in cmpOperations()
526 cast<AllocaInst>(R)->getAllocatedType())) in cmpOperations()
H A DEvaluator.cpp445 Type *Ty = AI->getAllocatedType(); in EvaluateBlock()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DInliner.cpp191 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in mergeInlinedArrayAllocas()
236 unsigned TypeAlign = DL.getABITypeAlignment(AI->getAllocatedType()); in mergeInlinedArrayAllocas()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp641 Type *Ty = AI.getAllocatedType(); in getAllocaSizeInBytes()
931 return (AI.getAllocatedType()->isSized() && in isInterestingAlloca()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp135 Type *Ty = AI->getAllocatedType(); in set()
/freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp252 unsigned ElementSize = DL->getTypeStoreSize(AI.getAllocatedType()); in getOrCreateFrameIndex()
261 Alignment = DL->getABITypeAlignment(AI.getAllocatedType()); in getOrCreateFrameIndex()
1321 Type *Ty = AI.getAllocatedType(); in translateAlloca()

123