Home
last modified time | relevance | path

Searched refs:AllocSize (Results 1 – 25 of 52) sorted by relevance

123

/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dlayout_test.cc269 TEST(Layout, AllocSize) { in TEST() argument
272 EXPECT_EQ(0, L::Partial(0).AllocSize()); in TEST()
273 EXPECT_EQ(12, L::Partial(3).AllocSize()); in TEST()
274 EXPECT_EQ(12, L(3).AllocSize()); in TEST()
278 EXPECT_EQ(32, L::Partial(3, 5).AllocSize()); in TEST()
279 EXPECT_EQ(32, L(3, 5).AllocSize()); in TEST()
283 EXPECT_EQ(0, L::Partial(0, 0, 0).AllocSize()); in TEST()
284 EXPECT_EQ(8, L::Partial(1, 0, 0).AllocSize()); in TEST()
285 EXPECT_EQ(8, L::Partial(0, 1, 0).AllocSize()); in TEST()
286 EXPECT_EQ(16, L::Partial(0, 0, 1).AllocSize()); in TEST()
[all …]
Draw_hash_set.h643 inline size_t AllocSize(size_t capacity, size_t slot_size, size_t slot_align) {
1625 AllocSize(capacity_, sizeof(slot_type), alignof(slot_type))));
1645 AllocSize(capacity_, sizeof(slot_type), alignof(slot_type)));
1678 AllocSize(old_capacity, sizeof(slot_type), alignof(slot_type)));
1964 size_t m = AllocSize(capacity, sizeof(Slot), alignof(Slot));
1983 AllocSize(NormalizeCapacity(capacity), sizeof(Slot), alignof(Slot));
/third_party/skia/src/core/
DSkAutoPixmapStorage.cpp31 size_t SkAutoPixmapStorage::AllocSize(const SkImageInfo& info, size_t* rowBytes) { in AllocSize() function in SkAutoPixmapStorage
43 size_t size = AllocSize(info, &rb); in tryAlloc()
DSkAutoPixmapStorage.h48 static size_t AllocSize(const SkImageInfo& info, size_t* rowBytes);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
DMemory.inc134 size_t AllocSize = NumBlocks * Granularity;
136 AllocSize, AllocType, Protect);
148 Result.AllocatedSize = AllocSize;
152 Memory::InvalidateInstructionCache(Result.Address, AllocSize);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringMap.h164 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Demangle/
DItaniumDemangle.cpp254 static constexpr size_t AllocSize = 4096; member in __anona3c1c87b0211::BumpPointerAllocator
255 static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
257 alignas(long double) char InitialBuffer[AllocSize];
261 char* NewMeta = static_cast<char *>(std::malloc(AllocSize)); in grow()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringMap.h184 size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1; in Create() local
188 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create()
225 size_t AllocSize = sizeof(StringMapEntry) + this->getKeyLength() + 1; in Destroy() local
227 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelArguments.cpp99 unsigned AllocSize = DL.getTypeAllocSize(ArgTy); in runOnFunction() local
102 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABITypeAlign) + AllocSize; in runOnFunction()
DAMDGPUPromoteAlloca.cpp670 uint64_t AllocSize = DL.getTypeAllocSize(GV.getValueType()); in hasSufficientLocalMem() local
672 CurrentLocalMemUsage += AllocSize; in hasSufficientLocalMem()
775 uint32_t AllocSize = WorkGroupSize * DL.getTypeAllocSize(AllocaTy); in handleAlloca() local
776 NewSize += AllocSize; in handleAlloca()
779 LLVM_DEBUG(dbgs() << " " << AllocSize in handleAlloca()
DAMDGPUCallLowering.cpp461 unsigned AllocSize = DL.getTypeAllocSize(ArgTy); in lowerFormalArgumentsKernel() local
462 if (AllocSize == 0) in lowerFormalArgumentsKernel()
468 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABIAlign) + AllocSize; in lowerFormalArgumentsKernel()
DAMDGPUSubtarget.cpp506 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in getExplicitKernArgSize() local
507 ExplicitArgBytes = alignTo(ExplicitArgBytes, Alignment) + AllocSize; in getExplicitKernArgSize()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAttributes.cpp176 return get(Context, AllocSize, packAllocSizeArgs(ElemSizeArg, NumElemsArg)); in getWithAllocSizeArgs()
271 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
445 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
797 case Attribute::AllocSize: { in get()
876 if (I.hasAttribute(Attribute::AllocSize)) in getAllocSizeArgs()
1449 Val != Attribute::Dereferenceable && Val != Attribute::AllocSize && in addAttribute()
1474 else if (Kind == Attribute::AllocSize) in addAttribute()
1498 else if (Val == Attribute::AllocSize) in removeAttribute()
1569 Attrs[Attribute::AllocSize] = true; in addAllocSizeAttrFromRawRepr()
DInstructions.cpp524 Type *AllocTy, Value *AllocSize, in createMalloc() argument
547 if (IsConstantOne(AllocSize)) { in createMalloc()
548 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
553 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc()
557 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
560 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
565 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
578 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall", in createMalloc()
585 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall"); in createMalloc()
612 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
[all …]
DAttributeImpl.h140 Kind == Attribute::AllocSize) && in IntAttributeImpl()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcord_rep_ring.h108 static constexpr size_t AllocSize(size_t capacity);
488 constexpr size_t CordRepRing::AllocSize(size_t capacity) { in AllocSize() function
490 Layout(capacity, capacity, capacity).AllocSize(); in AllocSize()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSROA.cpp654 const uint64_t AllocSize; member in AllocaSlices::SliceBuilder
666 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), AS(AS) {} in SliceBuilder()
678 if (Size == 0 || Offset.uge(AllocSize)) { in insertUse()
682 << AllocSize << " byte alloca:\n" in insertUse()
697 assert(AllocSize >= BeginOffset); // Established above. in insertUse()
698 if (Size > AllocSize - BeginOffset) { in insertUse()
700 << Offset << " to remain within the " << AllocSize in insertUse()
704 EndOffset = AllocSize; in insertUse()
762 if (GEPOffset.ugt(AllocSize)) in visitGetElementPtrInst()
815 if (Size > AllocSize || Offset.ugt(AllocSize - Size)) { in visitStoreInst()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/build/Windows/include/llvm/IR/
DAttributes.gen4 AllocSize,
61 .Case("allocsize", Attribute::AllocSize)
154 return llvm::Attribute::AllocSize;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/IR/
DAttributes.gen4 AllocSize,
61 .Case("allocsize", Attribute::AllocSize)
154 return llvm::Attribute::AllocSize;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/build/MacOS/include/llvm/IR/
DAttributes.gen4 AllocSize,
61 .Case("allocsize", Attribute::AllocSize)
154 return llvm::Attribute::AllocSize;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/build/Android/include/llvm/IR/
DAttributes.gen4 AllocSize,
61 .Case("allocsize", Attribute::AllocSize)
154 return llvm::Attribute::AllocSize;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.inc4 AllocSize,
61 .Case("allocsize", Attribute::AllocSize)
154 return llvm::Attribute::AllocSize;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/build/Fuchsia/include/llvm/IR/
DAttributes.gen4 AllocSize,
61 .Case("allocsize", Attribute::AllocSize)
154 return llvm::Attribute::AllocSize;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/IR/
DAttributesCompatFunc.inc4 AllocSize,
73 .Case("allocsize", Attribute::AllocSize)
178 return llvm::Attribute::AllocSize;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/
DAttributes.inc4 AllocSize,
73 .Case("allocsize", Attribute::AllocSize)
178 return llvm::Attribute::AllocSize;

123