/external/gwp_asan/gwp_asan/tests/ |
D | basic.cpp | 30 for (unsigned AllocSize = 1; AllocSize <= MaxAllocSize; AllocSize <<= 1) { in TEST_F() local 31 void *Ptr = GPA.allocate(AllocSize); in TEST_F() 34 EXPECT_EQ(AllocSize, GPA.getSize(Ptr)); in TEST_F()
|
/external/skqp/src/core/ |
D | SkAutoPixmapStorage.cpp | 27 size_t SkAutoPixmapStorage::AllocSize(const SkImageInfo& info, size_t* rowBytes) { in AllocSize() function in SkAutoPixmapStorage 39 size_t size = AllocSize(info, &rb); in tryAlloc()
|
D | SkAutoPixmapStorage.h | 46 static size_t AllocSize(const SkImageInfo& info, size_t* rowBytes);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Demangle/ |
D | Utility.h | 75 static OutputStream create(char *StartBuf, size_t *Size, size_t AllocSize) { in create() argument 79 StartBuf = static_cast<char *>(std::malloc(AllocSize)); in create() 82 Size = &AllocSize; in create()
|
/external/skia/src/core/ |
D | SkAutoPixmapStorage.cpp | 31 size_t SkAutoPixmapStorage::AllocSize(const SkImageInfo& info, size_t* rowBytes) { in AllocSize() function in SkAutoPixmapStorage 43 size_t size = AllocSize(info, &rb); in tryAlloc()
|
D | SkAutoPixmapStorage.h | 48 static size_t AllocSize(const SkImageInfo& info, size_t* rowBytes);
|
/external/gwp_asan/gwp_asan/ |
D | common.cpp | 38 size_t AllocSize) { in RecordAllocation() argument 40 Size = AllocSize; in RecordAllocation()
|
/external/libcxxabi/src/ |
D | cxa_demangle.cpp | 255 static constexpr size_t AllocSize = 4096; member in __anon068f9f010211::BumpPointerAllocator 256 static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta); 258 alignas(long double) char InitialBuffer[AllocSize]; 262 char* NewMeta = static_cast<char *>(std::malloc(AllocSize)); in grow()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUCallLowering.cpp | 160 unsigned AllocSize = DL.getTypeAllocSize(ArgTy); in lowerFormalArguments() local 161 if (AllocSize == 0) in lowerFormalArguments() 167 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABIAlign) + AllocSize; in lowerFormalArguments()
|
D | AMDGPULowerKernelArguments.cpp | 101 unsigned AllocSize = DL.getTypeAllocSize(ArgTy); in runOnFunction() local 104 ExplicitArgOffset = alignTo(ExplicitArgOffset, Align) + AllocSize; in runOnFunction()
|
D | AMDGPUPromoteAlloca.cpp | 647 uint64_t AllocSize = DL.getTypeAllocSize(GV.getValueType()); in hasSufficientLocalMem() local 649 CurrentLocalMemUsage += AllocSize; in hasSufficientLocalMem() 749 uint32_t AllocSize = WorkGroupSize * DL.getTypeAllocSize(AllocaTy); in handleAlloca() local 750 NewSize += AllocSize; in handleAlloca() 753 LLVM_DEBUG(dbgs() << " " << AllocSize in handleAlloca()
|
/external/llvm/lib/IR/ |
D | Attributes.cpp | 138 return get(Context, AllocSize, packAllocSizeArgs(ElemSizeArg, NumElemsArg)); in getWithAllocSizeArgs() 221 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs() 360 if (hasAttribute(Attribute::AllocSize)) { in getAsString() 532 case Attribute::AllocSize: in getAttrMask() 629 if (I.hasAttribute(Attribute::AllocSize)) in getAllocSizeArgs() 669 else if (Kind == Attribute::AllocSize) in Raw() 786 case Attribute::AllocSize: { in get() 1264 Val != Attribute::Dereferenceable && Val != Attribute::AllocSize && in addAttribute() 1287 else if (Kind == Attribute::AllocSize) in addAttribute() 1309 else if (Val == Attribute::AllocSize) in removeAttribute() [all …]
|
D | Instructions.cpp | 443 Type *AllocTy, Value *AllocSize, in createMalloc() argument 466 if (IsConstantOne(AllocSize)) { in createMalloc() 467 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc() 472 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc() 476 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc() 479 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc() 484 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc() 497 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall", in createMalloc() 504 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall"); in createMalloc() 530 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument [all …]
|
/external/llvm/include/llvm/ADT/ |
D | StringMap.h | 158 unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+ in Create() local 163 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create() 199 unsigned AllocSize = in Destroy() local 202 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | StringMap.h | 164 unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+ in Create() local 169 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create() 205 unsigned AllocSize = in Destroy() local 208 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | StringMap.h | 162 size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1; in Create() local 166 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create() 203 size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1; in Destroy() local 205 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | MemoryBuiltinsTest.cpp | 24 TEST(AllocSize, AllocationBuiltinsTest) { in TEST() argument
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 172 uint64_t AllocSize = DL.getTypeAllocSize(GV.getValueType()); in runOnFunction() local 174 CurrentLocalMemUsage += AllocSize; in runOnFunction() 669 uint32_t AllocSize = WorkGroupSize * DL.getTypeAllocSize(AllocaTy); in handleAlloca() local 670 NewSize += AllocSize; in handleAlloca() 673 DEBUG(dbgs() << " " << AllocSize in handleAlloca()
|
/external/clang/lib/CodeGen/ |
D | CGExprCXX.cpp | 1169 llvm::Value *AllocSize; member in __anonc96606670211::CallDeleteDuringNew 1181 llvm::Value *AllocSize) in CallDeleteDuringNew() argument 1183 Ptr(Ptr), AllocSize(AllocSize) {} in CallDeleteDuringNew() 1204 DeleteArgs.add(RValue::get(AllocSize), *AI++); in Emit() 1222 DominatingValue<RValue>::saved_type AllocSize; member in __anonc96606670211::CallDeleteDuringConditionalNew 1236 DominatingValue<RValue>::saved_type AllocSize) in CallDeleteDuringConditionalNew() argument 1238 Ptr(Ptr), AllocSize(AllocSize) {} in CallDeleteDuringConditionalNew() 1259 RValue RV = AllocSize.restore(CGF); in Emit() 1280 llvm::Value *AllocSize, in EnterNewDeleteCleanup() argument 1290 AllocSize); in EnterNewDeleteCleanup() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Attributes.cpp | 155 return get(Context, AllocSize, packAllocSizeArgs(ElemSizeArg, NumElemsArg)); in getWithAllocSizeArgs() 238 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs() 389 if (hasAttribute(Attribute::AllocSize)) { in getAsString() 705 case Attribute::AllocSize: { in get() 777 if (I.hasAttribute(Attribute::AllocSize)) in getAllocSizeArgs() 1341 Val != Attribute::Dereferenceable && Val != Attribute::AllocSize && in addAttribute() 1364 else if (Kind == Attribute::AllocSize) in addAttribute() 1386 else if (Val == Attribute::AllocSize) in removeAttribute() 1457 Attrs[Attribute::AllocSize] = true; in addAllocSizeAttrFromRawRepr()
|
D | Instructions.cpp | 405 Type *AllocTy, Value *AllocSize, in createMalloc() argument 428 if (IsConstantOne(AllocSize)) { in createMalloc() 429 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc() 434 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc() 438 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc() 441 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc() 446 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc() 459 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall", in createMalloc() 466 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall"); in createMalloc() 493 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 613 const uint64_t AllocSize; member in AllocaSlices::SliceBuilder 625 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder() 637 if (Size == 0 || Offset.uge(AllocSize)) { in insertUse() 640 << AllocSize << " byte alloca:\n" in insertUse() 655 assert(AllocSize >= BeginOffset); // Established above. in insertUse() 656 if (Size > AllocSize - BeginOffset) { in insertUse() 658 << " to remain within the " << AllocSize << " byte alloca:\n" in insertUse() 661 EndOffset = AllocSize; in insertUse() 712 if (GEPOffset.ugt(AllocSize)) in visitGetElementPtrInst() 759 if (Size > AllocSize || Offset.ugt(AllocSize - Size)) { in visitStoreInst() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 661 const uint64_t AllocSize; member in AllocaSlices::SliceBuilder 673 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder() 685 if (Size == 0 || Offset.uge(AllocSize)) { in insertUse() 689 << AllocSize << " byte alloca:\n" in insertUse() 704 assert(AllocSize >= BeginOffset); // Established above. in insertUse() 705 if (Size > AllocSize - BeginOffset) { in insertUse() 707 << Offset << " to remain within the " << AllocSize in insertUse() 711 EndOffset = AllocSize; in insertUse() 762 if (GEPOffset.ugt(AllocSize)) in visitGetElementPtrInst() 809 if (Size > AllocSize || Offset.ugt(AllocSize - Size)) { in visitStoreInst() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Attributes.inc | 4 AllocSize, 61 .Case("allocsize", Attribute::AllocSize) 154 return llvm::Attribute::AllocSize;
|
/external/swiftshader/third_party/llvm-subzero/build/Fuchsia/include/llvm/IR/ |
D | Attributes.gen | 4 AllocSize, 61 .Case("allocsize", Attribute::AllocSize) 154 return llvm::Attribute::AllocSize;
|