Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1338 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 …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp185 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-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp178 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize()
200 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize()
346 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst()
349 AI.setAlignment(DL.getPrefTypeAlignment(AI.getAllocatedType())); in visitAllocaInst()
354 if (DL.getTypeAllocSize(AI.getAllocatedType()) == 0) { in visitAllocaInst()
371 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst()
372 DL.getTypeAllocSize(EntryAI->getAllocatedType()) != 0) { in visitAllocaInst()
381 DL.getPrefTypeAlignment(EntryAI->getAllocatedType())); in visitAllocaInst()
833 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq()
840 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp42 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/
DAMDGPUPromoteAlloca.cpp393 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/
DSafeStack.cpp214 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()
DGCRootLowering.cpp173 ConstantPointerNull::get(cast<PointerType>((*I)->getAllocatedType())), in InsertRootInitializers()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp352 ArrayType *AllocaTy = dyn_cast<ArrayType>(Alloca->getAllocatedType()); in tryPromoteAllocaToVector()
705 Type *AllocaTy = I.getAllocatedType(); in handleAlloca()
740 Align = DL.getABITypeAlignment(I.getAllocatedType()); in handleAlloca()
771 Type *GVTy = ArrayType::get(I.getAllocatedType(), WorkGroupSize); in handleAlloca()
DAMDGPUInline.cpp137 AllocaSize += DL.getTypeAllocSize(AI->getAllocatedType()); in getInlineThreshold()
/external/clang/lib/CodeGen/
DCGCXXABI.cpp196 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize()
230 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp452 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DSafeStack.cpp221 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
499 Type *Ty = StackGuardSlot->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
519 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack()
656 Type *Ty = AI->getAllocatedType(); in moveDynamicAllocasToUnsafeStack()
DGCRootLowering.cpp172 ConstantPointerNull::get(cast<PointerType>((*I)->getAllocatedType())), in InsertRootInitializers()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DMemoryBuiltins.cpp553 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
556 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
831 if (!I.getAllocatedType()->isSized()) in visitAllocaInst()
838 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
/external/llvm/lib/IR/
DValue.cpp576 if (AI->getAllocatedType()->isSized()) { in getPointerDereferenceableBytes()
577 DerefBytes = DL.getTypeStoreSize(AI->getAllocatedType()); in getPointerDereferenceableBytes()
623 Type *AllocatedType = AI->getAllocatedType(); in getPointerAlignment()
DInstruction.cpp347 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in haveSameSpecialState()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp625 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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSROA.cpp673 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder()
2290 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2294 DL.getTypeSizeInBits(NewAI.getAllocatedType())) in AllocaSliceRewriter()
2398 NewAIAlign = DL.getABITypeAlignment(NewAI.getAllocatedType()); in getSliceAlign()
2733 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
2869 SliceSize != DL.getTypeStoreSize(NewAI.getAllocatedType()) || in visitMemTransferInst()
2870 !NewAI.getAllocatedType()->isSingleValueType()); in visitMemTransferInst()
4028 if (Type *TypePartitionTy = getTypePartition(DL, AI.getAllocatedType(), in rewritePartition()
4053 if (SliceTy == AI.getAllocatedType() && P.beginOffset() == 0) { in rewritePartition()
4064 Alignment = DL.getABITypeAlignment(AI.getAllocatedType()); in rewritePartition()
[all …]
/external/llvm/lib/Transforms/IPO/
DInliner.cpp146 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible()
192 unsigned TypeAlign = DL.getABITypeAlignment(AI->getAllocatedType()); in InlineCallIfPossible()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLoads.cpp97 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DStackProtector.cpp126 if (ArrayType *AT = dyn_cast<ArrayType>(AI->getAllocatedType())) { in RequiresStackProtector()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DHWAddressSanitizer.cpp511 Type *Ty = AI.getAllocatedType(); in getAllocaSizeInBytes()
675 return (AI.getAllocatedType()->isSized() && in isInterestingAlloca()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstruction.cpp380 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in haveSameSpecialState()
DValue.cpp641 DerefBytes = DL.getTypeStoreSize(AI->getAllocatedType()); in getPointerDereferenceableBytes()
691 Type *AllocatedType = AI->getAllocatedType(); in getPointerAlignment()
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp638 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType()); in run()
861 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB), in QueuePhiNode()

1234