Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1463 Type *T = AI->getAllocatedType(); in ShouldAttemptScalarRepl()
1502 if (AI->isArrayAllocation() || !AI->getAllocatedType()->isSized()) in performScalarRepl()
1509 uint64_t AllocaSize = DL.getTypeAllocSize(AI->getAllocatedType()); in performScalarRepl()
1554 if (StructType *ST = dyn_cast<StructType>(AI->getAllocatedType())) { in DoScalarReplacement()
1564 ArrayType *AT = cast<ArrayType>(AI->getAllocatedType()); in DoScalarReplacement()
1753 if (!TypeHasComponent(Info.AI->getAllocatedType(), Offset, NonConstantIdxSize, in isSafeGEP()
1812 MemSize == DL.getTypeAllocSize(Info.AI->getAllocatedType())) { in isSafeMemAccess()
1828 if (isCompatibleAggregate(MemOpType, Info.AI->getAllocatedType())) { in isSafeMemAccess()
1834 Type *T = Info.AI->getAllocatedType(); in isSafeMemAccess()
1902 if (Offset == 0 && MemSize == DL.getTypeAllocSize(AI->getAllocatedType())) in RewriteForScalarRepl()
[all …]
DSROA.cpp638 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder()
2225 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2229 DL.getTypeSizeInBits(NewAI.getAllocatedType())) in AllocaSliceRewriter()
2333 NewAIAlign = DL.getABITypeAlignment(NewAI.getAllocatedType()); in getSliceAlign()
2631 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
2764 SliceSize != DL.getTypeStoreSize(NewAI.getAllocatedType()) || in visitMemTransferInst()
2765 !NewAI.getAllocatedType()->isSingleValueType()); in visitMemTransferInst()
3826 if (Type *TypePartitionTy = getTypePartition(DL, AI.getAllocatedType(), in rewritePartition()
3849 if (SliceTy == AI.getAllocatedType()) { in rewritePartition()
3862 Alignment = DL.getABITypeAlignment(AI.getAllocatedType()); in rewritePartition()
[all …]
DMemCpyOptimizer.cpp613 uint64_t srcSize = DL.getTypeAllocSize(srcAlloca->getAllocatedType()) * in performCallSlotOptzn()
628 uint64_t destSize = DL.getTypeAllocSize(A->getAllocatedType()) * in performCallSlotOptzn()
659 srcAlign = DL.getABITypeAlignment(srcAlloca->getAllocatedType()); in performCallSlotOptzn()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp183 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
228 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst()
231 AI.setAlignment(DL.getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst()
236 if (DL.getTypeAllocSize(AI.getAllocatedType()) == 0) { in visitAllocaInst()
253 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
254 DL.getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst()
263 DL.getPrefTypeAlignment(EntryAI->getAllocatedType())); in visitAllocaInst()
619 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq()
626 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
DInstCombineCasts.cpp89 Type *AllocElTy = AI.getAllocatedType(); in PromoteCastOfAllocation()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp154 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector()
285 Type *AllocaTy = I.getAllocatedType(); in visitAlloca()
316 Type *GVTy = ArrayType::get(I.getAllocatedType(), 256); in visitAlloca()
/external/llvm/lib/Transforms/Instrumentation/
DSafeStack.cpp200 uint64_t Size = DL->getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
503 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
556 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
610 Type *Ty = AI->getAllocatedType(); in moveDynamicAllocasToUnsafeStack()
DAddressSanitizer.cpp420 Type *Ty = AI->getAllocatedType(); in getAllocaSizeInBytes()
859 (AI.getAllocatedType()->isSized() && in isInterestingAlloca()
2101 F.getParent()->getDataLayout().getTypeAllocSize(AI->getAllocatedType()); in handleDynamicAllocaCall()
/external/clang/lib/CodeGen/
DCGCXXABI.cpp196 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
230 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
DCGExprCXX.cpp547 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize()
855 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer()
1099 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr); in EmitNewInitializer()
1310 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp444 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
447 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
674 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
681 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
DLoads.cpp85 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
DInlineCost.cpp298 Type *Ty = I.getAllocatedType(); in visitAlloca()
307 Type *Ty = I.getAllocatedType(); in visitAlloca()
DLint.cpp428 Type *ATy = AI->getAllocatedType(); in visitMemoryReference()
/external/llvm/lib/Transforms/IPO/
DInliner.cpp198 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible()
244 unsigned TypeAlign = DL.getABITypeAlignment(AI->getAllocatedType()); in InlineCallIfPossible()
DMergeFunctions.cpp918 if (int Res = cmpTypes(AI->getAllocatedType(), in cmpOperations()
919 cast<AllocaInst>(R)->getAllocatedType())) in cmpOperations()
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp638 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
860 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
DValueMapper.cpp476 AI->setAllocatedType(TypeMapper->remapType(AI->getAllocatedType())); in RemapInstruction()
DInlineFunction.cpp1366 Type *AllocaType = AI->getAllocatedType(); in InlineFunction()
/external/llvm/lib/CodeGen/
DStackProtector.cpp240 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector()
DShadowStackGCLowering.cpp254 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
/external/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp107 Type *Ty = AI->getAllocatedType(); in set()
/external/clang/lib/AST/
DStmtProfile.cpp1247 VisitType(S->getAllocatedType()); in VisitCXXNewExpr()
DStmtPrinter.cpp2038 E->getAllocatedType().print(OS, Policy, TypeS); in VisitCXXNewExpr()
/external/llvm/lib/IR/
DVerifier.cpp2806 Assert(AI.getAllocatedType()->isSized(&Visited), in visitAllocaInst()
3545 if (!AI->getAllocatedType()->isPointerTy()) { in visitIntrinsicCallSite()

12