/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 1463 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 …]
|
D | SROA.cpp | 638 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 …]
|
D | MemCpyOptimizer.cpp | 613 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/ |
D | InstCombineLoadStoreAlloca.cpp | 183 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()
|
D | InstCombineCasts.cpp | 89 Type *AllocElTy = AI.getAllocatedType(); in PromoteCastOfAllocation()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 154 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/ |
D | SafeStack.cpp | 200 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()
|
D | AddressSanitizer.cpp | 420 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/ |
D | CGCXXABI.cpp | 196 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize() 230 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
|
D | CGExprCXX.cpp | 547 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/ |
D | MemoryBuiltins.cpp | 444 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()
|
D | Loads.cpp | 85 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
|
D | InlineCost.cpp | 298 Type *Ty = I.getAllocatedType(); in visitAlloca() 307 Type *Ty = I.getAllocatedType(); in visitAlloca()
|
D | Lint.cpp | 428 Type *ATy = AI->getAllocatedType(); in visitMemoryReference()
|
/external/llvm/lib/Transforms/IPO/ |
D | Inliner.cpp | 198 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible() 244 unsigned TypeAlign = DL.getABITypeAlignment(AI->getAllocatedType()); in InlineCallIfPossible()
|
D | MergeFunctions.cpp | 918 if (int Res = cmpTypes(AI->getAllocatedType(), in cmpOperations() 919 cast<AllocaInst>(R)->getAllocatedType())) in cmpOperations()
|
/external/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 638 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run() 860 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
|
D | ValueMapper.cpp | 476 AI->setAllocatedType(TypeMapper->remapType(AI->getAllocatedType())); in RemapInstruction()
|
D | InlineFunction.cpp | 1366 Type *AllocaType = AI->getAllocatedType(); in InlineFunction()
|
/external/llvm/lib/CodeGen/ |
D | StackProtector.cpp | 240 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector()
|
D | ShadowStackGCLowering.cpp | 254 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FunctionLoweringInfo.cpp | 107 Type *Ty = AI->getAllocatedType(); in set()
|
/external/clang/lib/AST/ |
D | StmtProfile.cpp | 1247 VisitType(S->getAllocatedType()); in VisitCXXNewExpr()
|
D | StmtPrinter.cpp | 2038 E->getAllocatedType().print(OS, Policy, TypeS); in VisitCXXNewExpr()
|
/external/llvm/lib/IR/ |
D | Verifier.cpp | 2806 Assert(AI.getAllocatedType()->isSized(&Visited), in visitAllocaInst() 3545 if (!AI->getAllocatedType()->isPointerTy()) { in visitIntrinsicCallSite()
|