/external/llvm-project/polly/lib/Transform/ |
D | RewriteByReferenceParameters.cpp | 69 new AllocaInst(Alloca->getAllocatedType(), 0, in tryRewriteInstruction() 72 auto *LoadedVal = new LoadInst(Alloca->getAllocatedType(), Alloca, in tryRewriteInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 175 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize() 198 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() 345 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst() 349 MaybeAlign(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 MaybeAlign(DL.getPrefTypeAlignment(EntryAI->getAllocatedType()))); in visitAllocaInst() 801 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq() 808 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
|
/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/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | DefaultOperatorNewAlignmentCheck.cpp | 30 QualType T = NewExpr->getAllocatedType(); in check()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 163 uint64_t AllocaSize = DL.getTypeStoreSize(AI->getAllocatedType()); in isDereferenceableForAllocaSize() 185 Type *NewTy = ArrayType::get(AI.getAllocatedType(), C->getZExtValue()); in simplifyAllocaArraySize() 362 if (AI.getAllocatedType()->isSized()) { in visitAllocaInst() 366 if (DL.getTypeAllocSize(AI.getAllocatedType()).getKnownMinSize() == 0) { in visitAllocaInst() 382 if (!EntryAI || !EntryAI->getAllocatedType()->isSized() || in visitAllocaInst() 383 DL.getTypeAllocSize(EntryAI->getAllocatedType()) in visitAllocaInst() 418 auto *DestTy = PointerType::get(AI.getAllocatedType(), SrcAddrSpace); in visitAllocaInst() 766 if (!AI->getAllocatedType()->isSized()) in isObjectSizeLessThanOrEq() 773 uint64_t TypeSize = DL.getTypeAllocSize(AI->getAllocatedType()); in isObjectSizeLessThanOrEq()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 666 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder() 2327 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter() 2331 DL.getTypeSizeInBits(NewAI.getAllocatedType())) in AllocaSliceRewriter() 2434 MaybeAlign(NewAI.getAlignment()), NewAI.getAllocatedType()); in getSliceAlign() 2462 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedLoadInst() 2470 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerLoad() 2515 LoadInst *NewLI = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitLoadInst() 2613 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedStoreInst() 2630 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerStore() 2779 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 663 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType()).getFixedSize()), in SliceBuilder() 2347 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter() 2351 DL.getTypeSizeInBits(NewAI.getAllocatedType()) in AllocaSliceRewriter() 2480 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedLoadInst() 2488 Value *V = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerLoad() 2534 LoadInst *NewLI = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitLoadInst() 2634 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteVectorizedStoreInst() 2652 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in rewriteIntegerStore() 2802 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst() 2859 Value *Old = IRB.CreateAlignedLoad(NewAI.getAllocatedType(), &NewAI, in visitMemSetInst() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | CheckPlacementNew.cpp | 75 QualType ElementType = NE->getAllocatedType(); in getExtentSizeOfNewTarget() 278 QualType AllocatedT = NE->getAllocatedType(); in checkPlaceIsAlignedProperly()
|
/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/clang/lib/CodeGen/ |
D | CGCXXABI.cpp | 196 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize() 230 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 367 Type *AT = Alloca->getAllocatedType(); in tryPromoteAllocaToVector() 728 Type *AllocaTy = I.getAllocatedType(); in handleAlloca() 766 Align = DL.getABITypeAlignment(I.getAllocatedType()); in handleAlloca() 797 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()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 654 if (!I.getAllocatedType()->isSized()) in visitAllocaInst() 657 if (isa<ScalableVectorType>(I.getAllocatedType())) in visitAllocaInst() 660 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst() 943 if (!I.getAllocatedType()->isSized()) in visitAllocaInst() 950 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGCXXABI.cpp | 167 return getArrayCookieSizeImpl(expr->getAllocatedType()); in GetArrayCookieSize() 201 return expr->getAllocatedType().isDestructedType(); in requiresArrayCookie()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 221 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize() 503 Type *Ty = StackGuardSlot->getAllocatedType(); in moveStaticAllocasToUnsafeStack() 523 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack() 652 Type *Ty = AI->getAllocatedType(); in moveDynamicAllocasToUnsafeStack()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 223 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize() 517 Type *Ty = StackGuardSlot->getAllocatedType(); in moveStaticAllocasToUnsafeStack() 537 Type *Ty = AI->getAllocatedType(); in moveStaticAllocasToUnsafeStack() 666 Type *Ty = AI->getAllocatedType(); in moveDynamicAllocasToUnsafeStack()
|
D | StackProtector.cpp | 338 if (ContainsProtectableArray(AI->getAllocatedType(), IsLarge, Strong)) { in RequiresStackProtector() 354 AI->getAllocatedType()))) { in RequiresStackProtector()
|
/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/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()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 436 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector() 876 Type *AllocaTy = I.getAllocatedType(); in handleAlloca() 911 DL.getValueOrABITypeAlignment(I.getAlign(), I.getAllocatedType()); in handleAlloca() 942 Type *GVTy = ArrayType::get(I.getAllocatedType(), WorkGroupSize); in handleAlloca()
|
/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/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-10.0/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 633 if (!I.getAllocatedType()->isSized()) in visitAllocaInst() 636 APInt Size(IntTyBits, DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst() 918 if (!I.getAllocatedType()->isSized()) in visitAllocaInst() 925 DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64StackTagging.cpp | 396 AI.getAllocatedType()->isSized() && AI.isStaticAlloca() && in isInterestingAlloca() 476 Info.AI->getAllocatedType(), in alignAndPadAlloca() 478 : Info.AI->getAllocatedType(); in alignAndPadAlloca()
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64StackTagging.cpp | 417 AI.getAllocatedType()->isSized() && AI.isStaticAlloca() && in isInterestingAlloca() 500 Info.AI->getAllocatedType(), in alignAndPadAlloca() 502 : Info.AI->getAllocatedType(); in alignAndPadAlloca()
|