Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1454 Type *T = AI->getAllocatedType(); in ShouldAttemptScalarRepl()
1492 if (AI->isArrayAllocation() || !AI->getAllocatedType()->isSized()) in performScalarRepl()
1499 uint64_t AllocaSize = TD->getTypeAllocSize(AI->getAllocatedType()); in performScalarRepl()
1543 if (StructType *ST = dyn_cast<StructType>(AI->getAllocatedType())) { in DoScalarReplacement()
1553 ArrayType *AT = cast<ArrayType>(AI->getAllocatedType()); in DoScalarReplacement()
1740 if (!TypeHasComponent(Info.AI->getAllocatedType(), Offset, in isSafeGEP()
1798 MemSize == TD->getTypeAllocSize(Info.AI->getAllocatedType())) { in isSafeMemAccess()
1814 if (isCompatibleAggregate(MemOpType, Info.AI->getAllocatedType())) { in isSafeMemAccess()
1820 Type *T = Info.AI->getAllocatedType(); in isSafeMemAccess()
1887 MemSize == TD->getTypeAllocSize(AI->getAllocatedType())) in RewriteForScalarRepl()
[all …]
DSROA.cpp330 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), S(S) {} in SliceBuilder()
1891 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
1898 DL.getTypeSizeInBits(NewAI.getAllocatedType())) in AllocaSliceRewriter()
1970 NewAIAlign = DL.getABITypeAlignment(NewAI.getAllocatedType()); in getOffsetAlign()
2257 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
2410 !NewAI.getAllocatedType()->isSingleValueType()); in visitMemTransferInst()
3000 if (Type *TypePartitionTy = getTypePartition(*DL, AI.getAllocatedType(), in rewritePartition()
3023 if (SliceTy == AI.getAllocatedType()) { in rewritePartition()
3035 Alignment = DL->getABITypeAlignment(AI.getAllocatedType()); in rewritePartition()
3279 if (AI.isArrayAllocation() || !AI.getAllocatedType()->isSized() || in runOnAlloca()
[all …]
DMemCpyOptimizer.cpp602 uint64_t srcSize = TD->getTypeAllocSize(srcAlloca->getAllocatedType()) * in performCallSlotOptzn()
617 uint64_t destSize = TD->getTypeAllocSize(A->getAllocatedType()) * in performCallSlotOptzn()
646 srcAlign = TD->getABITypeAlignment(srcAlloca->getAllocatedType()); in performCallSlotOptzn()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp170 ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in visitAllocaInst()
199 if (TD && AI.getAllocatedType()->isSized()) { in visitAllocaInst()
202 AI.setAlignment(TD->getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst()
207 if (TD->getTypeAllocSize(AI.getAllocatedType()) == 0) { in visitAllocaInst()
224 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
225 TD->getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst()
234 TD->getPrefTypeAlignment(EntryAI->getAllocatedType())); in visitAllocaInst()
DInstCombineCasts.cpp90 Type *AllocElTy = AI.getAllocatedType(); in PromoteCastOfAllocation()
/external/clang/lib/CodeGen/
DCGCXXABI.cpp148 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
182 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
DCGExprCXX.cpp557 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize()
933 StoreAnyExprIntoOneUnit(*this, Init, E->getAllocatedType(), curPtr); in EmitNewArrayInitializer()
1002 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr); in EmitNewInitializer()
1195 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
DMicrosoftCXXABI.cpp576 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp434 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
437 APInt Size(IntTyBits, TD->getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
661 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
668 TD->getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
DLoads.cpp69 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
DLint.cpp426 Type *ATy = AI->getAllocatedType(); in visitMemoryReference()
/external/llvm/lib/Transforms/IPO/
DInliner.cpp178 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible()
222 unsigned TypeAlign = TD->getABITypeAlignment(AI->getAllocatedType()); in InlineCallIfPossible()
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp97 AllocaTy = AI.getAllocatedType(); in analyzeAlloca()
701 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
1022 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
DInlineFunction.cpp686 Type *AllocaType = AI->getAllocatedType(); in InlineFunction()
/external/llvm/lib/CodeGen/
DStackProtector.cpp254 if (ContainsProtectableArray(AI->getAllocatedType(), Strong)) in RequiresStackProtector()
DShadowStackGC.cpp263 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
/external/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp79 Type *Ty = AI->getAllocatedType(); in set()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp495 AI.getAllocatedType()->isSized()); in isInterestingAlloca()
502 Type *Ty = AI->getAllocatedType(); in getAllocaSizeInBytes()
DMemorySanitizer.cpp1713 uint64_t Size = MS.TD->getTypeAllocSize(I.getAllocatedType()); in visitAllocaInst()
/external/llvm/lib/Analysis/IPA/
DInlineCost.cpp286 Type *Ty = I.getAllocatedType(); in visitAlloca()
/external/clang/lib/AST/
DStmtProfile.cpp898 VisitType(S->getAllocatedType()); in VisitCXXNewExpr()
DStmtPrinter.cpp1541 E->getAllocatedType().print(OS, Policy, TypeS); in VisitCXXNewExpr()
/external/llvm/lib/IR/
DInstructions.cpp906 Type *AllocaInst::getAllocatedType() const { in getAllocatedType() function in AllocaInst
3496 return new AllocaInst(getAllocatedType(), in clone_impl()
DAsmWriter.cpp1965 TypePrinter.print(AI->getAllocatedType(), Out); in printInstruction()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp1292 << getCppName(allocaI->getAllocatedType()) << ", "; in printInstruction()

12