/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 …]
|
/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-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 178 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/ |
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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 352 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()
|
D | AMDGPUInline.cpp | 137 AllocaSize += DL.getTypeAllocSize(AI->getAllocatedType()); in getInlineThreshold()
|
/external/clang/lib/CodeGen/ |
D | CGCXXABI.cpp | 196 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize() 230 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
|
/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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 221 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()
|
D | GCRootLowering.cpp | 172 ConstantPointerNull::get(cast<PointerType>((*I)->getAllocatedType())), in InsertRootInitializers()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 553 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/ |
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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 673 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/ |
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/Analysis/ |
D | Loads.cpp | 97 BaseType = AI->getAllocatedType(); in isSafeToLoadUnconditionally()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | StackProtector.cpp | 126 if (ArrayType *AT = dyn_cast<ArrayType>(AI->getAllocatedType())) { in RequiresStackProtector()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/ |
D | HWAddressSanitizer.cpp | 511 Type *Ty = AI.getAllocatedType(); in getAllocaSizeInBytes() 675 return (AI.getAllocatedType()->isSized() && in isInterestingAlloca()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Instruction.cpp | 380 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in haveSameSpecialState()
|
D | Value.cpp | 641 DerefBytes = DL.getTypeStoreSize(AI->getAllocatedType()); in getPointerDereferenceableBytes() 691 Type *AllocatedType = AI->getAllocatedType(); in getPointerAlignment()
|
/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()
|