/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 1338 Type *T = AI->getAllocatedType(); in ShouldAttemptScalarRepl() 1378 if (AI->isArrayAllocation() || !AI->getAllocatedType()->isSized()) in performScalarRepl() 1405 uint64_t AllocaSize = TD->getTypeAllocSize(AI->getAllocatedType()); in performScalarRepl() 1449 if (StructType *ST = dyn_cast<StructType>(AI->getAllocatedType())) { in DoScalarReplacement() 1459 ArrayType *AT = cast<ArrayType>(AI->getAllocatedType()); in DoScalarReplacement() 1636 if (!TypeHasComponent(Info.AI->getAllocatedType(), Offset, 0)) in isSafeGEP() 1693 MemSize == TD->getTypeAllocSize(Info.AI->getAllocatedType())) { in isSafeMemAccess() 1709 if (isCompatibleAggregate(MemOpType, Info.AI->getAllocatedType())) { in isSafeMemAccess() 1715 Type *T = Info.AI->getAllocatedType(); in isSafeMemAccess() 1776 MemSize == TD->getTypeAllocSize(AI->getAllocatedType())) in RewriteForScalarRepl() [all …]
|
D | MemCpyOptimizer.cpp | 593 uint64_t srcSize = TD->getTypeAllocSize(srcAlloca->getAllocatedType()) * in performCallSlotOptzn() 608 uint64_t destSize = TD->getTypeAllocSize(A->getAllocatedType()) * in performCallSlotOptzn()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 185 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() 230 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst() 233 AI.setAlignment(DL.getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst() 238 if (DL.getTypeAllocSize(AI.getAllocatedType()) == 0) { in visitAllocaInst() 255 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst() 256 DL.getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst() 265 DL.getPrefTypeAlignment(EntryAI->getAllocatedType())); in visitAllocaInst() 654 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq() 661 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 42 ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in visitAllocaInst() 72 if (TD && isa<AllocaInst>(AI) && AI.getAllocatedType()->isSized()) { in visitAllocaInst() 76 if (TD->getTypeAllocSize(AI.getAllocatedType()) == 0) in visitAllocaInst() 81 AI.setAlignment(TD->getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 393 ArrayType *AllocaTy = dyn_cast<ArrayType>(Alloca->getAllocatedType()); in tryPromoteAllocaToVector() 641 Type *AllocaTy = I.getAllocatedType(); in handleAlloca() 660 Align = DL.getABITypeAlignment(I.getAllocatedType()); in handleAlloca() 691 Type *GVTy = ArrayType::get(I.getAllocatedType(), WorkGroupSize); in handleAlloca()
|
/external/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 214 uint64_t Size = DL->getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize() 529 Type *Ty = StackGuardSlot->getAllocatedType(); in moveStaticAllocasToUnsafeStack() 549 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack() 684 Type *Ty = AI->getAllocatedType(); in moveDynamicAllocasToUnsafeStack()
|
D | GCRootLowering.cpp | 173 ConstantPointerNull::get(cast<PointerType>((*I)->getAllocatedType())), in InsertRootInitializers()
|
D | StackProtector.cpp | 264 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector()
|
D | ShadowStackGCLowering.cpp | 258 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
|
/external/clang/lib/CodeGen/ |
D | CGCXXABI.cpp | 196 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize() 230 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
|
D | CGExprCXX.cpp | 552 QualType type = e->getAllocatedType(); in EmitCXXNewAllocSize() 860 QualType AllocType = E->getAllocatedType(); in EmitNewArrayInitializer() 1107 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr); in EmitNewInitializer() 1318 QualType allocType = getContext().getBaseElementType(E->getAllocatedType()); in EmitCXXNewExpr()
|
/external/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 452 if (!I.getAllocatedType()->isSized()) in visitAllocaInst() 455 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst() 726 if (!I.getAllocatedType()->isSized()) in visitAllocaInst() 733 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
|
D | Loads.cpp | 210 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
|
/external/llvm/lib/IR/ |
D | Value.cpp | 576 if (AI->getAllocatedType()->isSized()) { in getPointerDereferenceableBytes() 577 DerefBytes = DL.getTypeStoreSize(AI->getAllocatedType()); in getPointerDereferenceableBytes() 623 Type *AllocatedType = AI->getAllocatedType(); in getPointerAlignment()
|
D | Instruction.cpp | 347 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in haveSameSpecialState()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 625 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder() 2209 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter() 2213 DL.getTypeSizeInBits(NewAI.getAllocatedType())) in AllocaSliceRewriter() 2317 NewAIAlign = DL.getABITypeAlignment(NewAI.getAllocatedType()); in getSliceAlign() 2615 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst() 2748 SliceSize != DL.getTypeStoreSize(NewAI.getAllocatedType()) || in visitMemTransferInst() 2749 !NewAI.getAllocatedType()->isSingleValueType()); in visitMemTransferInst() 3819 if (Type *TypePartitionTy = getTypePartition(DL, AI.getAllocatedType(), in rewritePartition() 3842 if (SliceTy == AI.getAllocatedType()) { in rewritePartition() 3855 Alignment = DL.getABITypeAlignment(AI.getAllocatedType()); in rewritePartition() [all …]
|
D | MemCpyOptimizer.cpp | 800 uint64_t srcSize = DL.getTypeAllocSize(srcAlloca->getAllocatedType()) * in performCallSlotOptzn() 815 uint64_t destSize = DL.getTypeAllocSize(A->getAllocatedType()) * in performCallSlotOptzn() 850 srcAlign = DL.getABITypeAlignment(srcAlloca->getAllocatedType()); in performCallSlotOptzn()
|
/external/llvm/lib/Transforms/IPO/ |
D | Inliner.cpp | 146 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible() 192 unsigned TypeAlign = DL.getABITypeAlignment(AI->getAllocatedType()); in InlineCallIfPossible()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | StackProtector.cpp | 126 if (ArrayType *AT = dyn_cast<ArrayType>(AI->getAllocatedType())) { in RequiresStackProtector()
|
D | ShadowStackGC.cpp | 264 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | Loads.cpp | 97 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
|
/external/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 638 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run() 861 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | Inliner.cpp | 142 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 544 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run() 999 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | FunctionLoweringInfo.cpp | 81 Type *Ty = AI->getAllocatedType(); in set()
|