Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Demangle/
DUtility.h75 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/
DSkAutoPixmapStorage.cpp27 size_t SkAutoPixmapStorage::AllocSize(const SkImageInfo& info, size_t* rowBytes) { in AllocSize() function in SkAutoPixmapStorage
39 size_t size = AllocSize(info, &rb); in tryAlloc()
DSkAutoPixmapStorage.h46 static size_t AllocSize(const SkImageInfo& info, size_t* rowBytes);
/external/skqp/src/core/
DSkAutoPixmapStorage.cpp27 size_t SkAutoPixmapStorage::AllocSize(const SkImageInfo& info, size_t* rowBytes) { in AllocSize() function in SkAutoPixmapStorage
39 size_t size = AllocSize(info, &rb); in tryAlloc()
DSkAutoPixmapStorage.h46 static size_t AllocSize(const SkImageInfo& info, size_t* rowBytes);
/external/libcxxabi/src/
Dcxa_demangle.cpp255 static constexpr size_t AllocSize = 4096; member in __anonf03dc3ff0211::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/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyld.cpp29 uintptr_t AllocSize = Size; in extractFunction() local
30 uint8_t *Mem = MemMgr->startFunctionBody(Name.data(), AllocSize); in extractFunction()
/external/llvm/lib/IR/
DAttributes.cpp138 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 …]
DInstructions.cpp443 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCallLowering.cpp160 unsigned AllocSize = DL.getTypeAllocSize(ArgTy); in lowerFormalArguments() local
161 if (AllocSize == 0) in lowerFormalArguments()
167 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABIAlign) + AllocSize; in lowerFormalArguments()
DAMDGPULowerKernelArguments.cpp101 unsigned AllocSize = DL.getTypeAllocSize(ArgTy); in runOnFunction() local
104 ExplicitArgOffset = alignTo(ExplicitArgOffset, Align) + AllocSize; in runOnFunction()
DAMDGPUPromoteAlloca.cpp647 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/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()
/external/llvm/include/llvm/ADT/
DStringMap.h158 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-7.0/llvm/include/llvm/ADT/
DStringMap.h162 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/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp172 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/
DCGExprCXX.cpp1169 llvm::Value *AllocSize; member in __anone8d8cb250211::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 __anone8d8cb250211::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/
DAttributes.cpp155 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()
DInstructions.cpp405 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/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DMemoryBuiltinsTest.cpp24 TEST(AllocSize, AllocationBuiltinsTest) { in TEST() argument
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp613 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/
DSROA.cpp661 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/lib/VMCore/
DInstructions.cpp355 Type *AllocTy, Value *AllocSize, in createMalloc() argument
377 if (IsConstantOne(AllocSize)) { in createMalloc()
378 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
383 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc()
387 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
390 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
395 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
408 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall", InsertBefore); in createMalloc()
414 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall"); in createMalloc()
440 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.inc4 AllocSize,
61 .Case("allocsize", Attribute::AllocSize)
154 return llvm::Attribute::AllocSize;
/external/swiftshader/third_party/llvm-subzero/build/Windows/include/llvm/IR/
DAttributes.gen4 AllocSize,
61 .Case("allocsize", Attribute::AllocSize)
154 return llvm::Attribute::AllocSize;

123