Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1462 Type *T = AI->getAllocatedType(); in ShouldAttemptScalarRepl()
1501 if (AI->isArrayAllocation() || !AI->getAllocatedType()->isSized()) in performScalarRepl()
1508 uint64_t AllocaSize = DL.getTypeAllocSize(AI->getAllocatedType()); in performScalarRepl()
1553 if (StructType *ST = dyn_cast<StructType>(AI->getAllocatedType())) { in DoScalarReplacement()
1563 ArrayType *AT = cast<ArrayType>(AI->getAllocatedType()); in DoScalarReplacement()
1752 if (!TypeHasComponent(Info.AI->getAllocatedType(), Offset, NonConstantIdxSize, in isSafeGEP()
1811 MemSize == DL.getTypeAllocSize(Info.AI->getAllocatedType())) { in isSafeMemAccess()
1827 if (isCompatibleAggregate(MemOpType, Info.AI->getAllocatedType())) { in isSafeMemAccess()
1833 Type *T = Info.AI->getAllocatedType(); in isSafeMemAccess()
1901 if (Offset == 0 && MemSize == DL.getTypeAllocSize(AI->getAllocatedType())) in RewriteForScalarRepl()
[all …]
DSROA.cpp642 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder()
2429 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2433 DL.getTypeSizeInBits(NewAI.getAllocatedType())) in AllocaSliceRewriter()
2537 NewAIAlign = DL.getABITypeAlignment(NewAI.getAllocatedType()); in getSliceAlign()
2786 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
2919 SliceSize != DL.getTypeStoreSize(NewAI.getAllocatedType()) || in visitMemTransferInst()
2920 !NewAI.getAllocatedType()->isSingleValueType()); in visitMemTransferInst()
3986 if (Type *TypePartitionTy = getTypePartition(DL, AI.getAllocatedType(), in rewritePartition()
4009 if (SliceTy == AI.getAllocatedType()) { in rewritePartition()
4022 Alignment = DL.getABITypeAlignment(AI.getAllocatedType()); in rewritePartition()
[all …]
DMemCpyOptimizer.cpp611 uint64_t srcSize = DL.getTypeAllocSize(srcAlloca->getAllocatedType()) * in performCallSlotOptzn()
626 uint64_t destSize = DL.getTypeAllocSize(A->getAllocatedType()) * in performCallSlotOptzn()
657 srcAlign = DL.getABITypeAlignment(srcAlloca->getAllocatedType()); in performCallSlotOptzn()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp182 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
227 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst()
230 AI.setAlignment(DL.getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst()
235 if (DL.getTypeAllocSize(AI.getAllocatedType()) == 0) { in visitAllocaInst()
252 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
253 DL.getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst()
262 DL.getPrefTypeAlignment(EntryAI->getAllocatedType())); in visitAllocaInst()
538 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq()
545 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
DInstCombineCasts.cpp89 Type *AllocElTy = AI.getAllocatedType(); in PromoteCastOfAllocation()
/external/llvm/lib/Target/R600/
DAMDGPUPromoteAlloca.cpp150 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector()
267 Type *AllocaTy = I.getAllocatedType(); in visitAlloca()
298 Type *GVTy = ArrayType::get(I.getAllocatedType(), 256); in visitAlloca()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp429 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
432 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
662 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
669 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
DLoads.cpp79 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
DLint.cpp442 Type *ATy = AI->getAllocatedType(); in visitMemoryReference()
/external/clang/lib/CodeGen/
DCGCXXABI.cpp182 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
216 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
DCGExprCXX.cpp506 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize()
812 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer()
1029 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr); in EmitNewInitializer()
1240 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
DCGObjC.cpp123 Builder.CreateStructGEP(Objects->getAllocatedType(), Objects, i), in EmitObjCCollectionLiteral()
135 Builder.CreateStructGEP(Keys->getAllocatedType(), Keys, i), in EmitObjCCollectionLiteral()
143 Builder.CreateStructGEP(Objects->getAllocatedType(), Objects, i), in EmitObjCCollectionLiteral()
1519 StatePtr->getAllocatedType(), StatePtr, 2, "mutationsptr.ptr"); in EmitObjCForCollectionStmt()
1600 StatePtr->getAllocatedType(), StatePtr, 1, "stateitems.ptr"); in EmitObjCForCollectionStmt()
DCGCall.cpp3066 Builder.CreateStructGEP(ArgMemory->getAllocatedType(), ArgMemory, in EmitCall()
3102 Builder.CreateStructGEP(ArgMemory->getAllocatedType(), ArgMemory, in EmitCall()
3109 Builder.CreateStructGEP(ArgMemory->getAllocatedType(), ArgMemory, in EmitCall()
/external/llvm/lib/Transforms/IPO/
DInliner.cpp182 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible()
221 unsigned TypeAlign = DL.getABITypeAlignment(AI->getAllocatedType()); in InlineCallIfPossible()
/external/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp130 Type *Ty = AI->getAllocatedType(); in set()
145 AI->getAllocatedType()), in set()
/external/llvm/lib/CodeGen/
DStackProtector.cpp240 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector()
DShadowStackGCLowering.cpp250 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp639 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
953 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
DInlineFunction.cpp1167 Type *AllocaType = AI->getAllocatedType(); in InlineFunction()
/external/llvm/lib/Analysis/IPA/
DInlineCost.cpp280 Type *Ty = I.getAllocatedType(); in visitAlloca()
289 Type *Ty = I.getAllocatedType(); in visitAlloca()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp398 Type *Ty = AI->getAllocatedType(); in getAllocaSizeInBytes()
814 bool IsInteresting = (AI.getAllocatedType()->isSized() && in isInterestingAlloca()
2033 F.getParent()->getDataLayout().getTypeAllocSize(AI->getAllocatedType()); in handleDynamicAllocaCall()
/external/lldb/source/Expression/
DIRInterpreter.cpp756 Type *T = alloca_inst->getAllocatedType(); in Interpret()
/external/clang/lib/AST/
DStmtProfile.cpp1143 VisitType(S->getAllocatedType()); in VisitCXXNewExpr()
DStmtPrinter.cpp1853 E->getAllocatedType().print(OS, Policy, TypeS); in VisitCXXNewExpr()
/external/llvm/lib/IR/
DInstructions.cpp907 Type *AllocaInst::getAllocatedType() const { in getAllocatedType() function in AllocaInst
3539 AllocaInst *Result = new AllocaInst(getAllocatedType(), in clone_impl()

12