Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp189 ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in visitAllocaInst()
218 if (TD && AI.getAllocatedType()->isSized()) { in visitAllocaInst()
221 AI.setAlignment(TD->getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst()
226 if (TD->getTypeAllocSize(AI.getAllocatedType()) == 0) { in visitAllocaInst()
243 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
244 TD->getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst()
253 std::max(TD->getPrefTypeAlignment(EntryAI->getAllocatedType()), in visitAllocaInst()
254 TD->getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst()
DInstCombineCasts.cpp90 Type *AllocElTy = AI.getAllocatedType(); in PromoteCastOfAllocation()
/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()
1749 if (!TypeHasComponent(Info.AI->getAllocatedType(), Offset, in isSafeGEP()
1807 MemSize == TD->getTypeAllocSize(Info.AI->getAllocatedType())) { in isSafeMemAccess()
1823 if (isCompatibleAggregate(MemOpType, Info.AI->getAllocatedType())) { in isSafeMemAccess()
1829 Type *T = Info.AI->getAllocatedType(); in isSafeMemAccess()
1896 MemSize == TD->getTypeAllocSize(AI->getAllocatedType())) in RewriteForScalarRepl()
[all …]
DMemCpyOptimizer.cpp593 uint64_t srcSize = TD->getTypeAllocSize(srcAlloca->getAllocatedType()) * in performCallSlotOptzn()
608 uint64_t destSize = TD->getTypeAllocSize(A->getAllocatedType()) * in performCallSlotOptzn()
/external/clang/lib/CodeGen/
DCGCXXABI.cpp150 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
184 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
DMicrosoftCXXABI.cpp116 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
DCGExprCXX.cpp552 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize()
923 StoreAnyExprIntoOneUnit(*this, Init, E->getAllocatedType(), curPtr); in EmitNewArrayInitializer()
992 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr); in EmitNewInitializer()
1154 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp419 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
422 APInt Size(IntTyBits, TD->getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
640 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
647 TD->getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
DLoads.cpp98 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
/external/llvm/lib/CodeGen/
DStackProtector.cpp157 if (ContainsProtectableArray(AI->getAllocatedType())) in RequiresStackProtector()
DShadowStackGC.cpp263 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
/external/llvm/lib/Transforms/IPO/
DInliner.cpp149 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible()
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp547 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
1002 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
/external/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp82 Type *Ty = AI->getAllocatedType(); in set()
DSelectionDAGBuilder.cpp3187 Type *Ty = I.getAllocatedType(); in visitAlloca()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp188 Type *Ty = AI->getAllocatedType(); in getAllocaSizeInBytes()
1062 if (!AI->getAllocatedType()->isSized()) continue; in poisonStackInFunction()
/external/clang/lib/AST/
DStmtProfile.cpp837 VisitType(S->getAllocatedType()); in VisitCXXNewExpr()
DStmtPrinter.cpp1400 E->getAllocatedType().getAsStringInternal(TypeS, Policy); in VisitCXXNewExpr()
DItaniumMangle.cpp2504 mangleType(New->getAllocatedType()); in mangleExpression()
/external/llvm/lib/VMCore/
DInstructions.cpp884 Type *AllocaInst::getAllocatedType() const { in getAllocatedType() function in AllocaInst
3393 return new AllocaInst(getAllocatedType(), in clone_impl()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp1281 << getCppName(allocaI->getAllocatedType()) << ", "; in printInstruction()
/external/clang/include/clang/AST/
DExprCXX.h1514 QualType getAllocatedType() const { in getAllocatedType() function
/external/llvm/include/llvm/
DInstructions.h99 Type *getAllocatedType() const;
/external/clang/lib/Sema/
DTreeTransform.h7246 if (E->isArray() && !E->getAllocatedType()->isDependentType()) { in TransformCXXNewExpr()
7248 = SemaRef.Context.getBaseElementType(E->getAllocatedType()); in TransformCXXNewExpr()