/external/skia/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/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyld.cpp | 29 uintptr_t AllocSize = Size; in extractFunction() local 30 uint8_t *Mem = MemMgr->startFunctionBody(Name.data(), AllocSize); in extractFunction()
|
/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 …]
|
D | AttributeImpl.h | 125 Kind == Attribute::AllocSize) && in IntAttributeImpl()
|
D | Core.cpp | 2693 Constant* AllocSize = ConstantExpr::getSizeOf(unwrap(Ty)); in LLVMBuildMalloc() local 2694 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy); in LLVMBuildMalloc() 2696 ITy, unwrap(Ty), AllocSize, in LLVMBuildMalloc() 2704 Constant* AllocSize = ConstantExpr::getSizeOf(unwrap(Ty)); in LLVMBuildArrayMalloc() local 2705 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy); in LLVMBuildArrayMalloc() 2707 ITy, unwrap(Ty), AllocSize, in LLVMBuildArrayMalloc()
|
/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/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/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 __anon267511db0211::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 __anon267511db0211::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/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-subzero/build/Linux/include/llvm/IR/ |
D | Attributes.gen | 4 AllocSize, 61 .Case("allocsize", Attribute::AllocSize) 154 return llvm::Attribute::AllocSize;
|
/external/swiftshader/third_party/llvm-subzero/build/Windows/include/llvm/IR/ |
D | Attributes.gen | 4 AllocSize, 61 .Case("allocsize", Attribute::AllocSize) 154 return llvm::Attribute::AllocSize;
|
/external/swiftshader/third_party/llvm-subzero/build/Android/include/llvm/IR/ |
D | Attributes.gen | 4 AllocSize, 61 .Case("allocsize", Attribute::AllocSize) 154 return llvm::Attribute::AllocSize;
|
/external/swiftshader/third_party/llvm-subzero/build/MacOS/include/llvm/IR/ |
D | Attributes.gen | 4 AllocSize, 61 .Case("allocsize", Attribute::AllocSize) 154 return llvm::Attribute::AllocSize;
|
/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/lib/VMCore/ |
D | Instructions.cpp | 355 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 …]
|
D | Core.cpp | 1984 Constant* AllocSize = ConstantExpr::getSizeOf(unwrap(Ty)); in LLVMBuildMalloc() local 1985 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy); in LLVMBuildMalloc() 1987 ITy, unwrap(Ty), AllocSize, in LLVMBuildMalloc() 1995 Constant* AllocSize = ConstantExpr::getSizeOf(unwrap(Ty)); in LLVMBuildArrayMalloc() local 1996 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy); in LLVMBuildArrayMalloc() 1998 ITy, unwrap(Ty), AllocSize, in LLVMBuildArrayMalloc()
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | StringMap.h | 157 unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+ in Create() local 162 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create()
|
/external/clang/lib/Rewrite/ |
D | RewriteRope.cpp | 793 unsigned AllocSize = offsetof(RopeRefCountString, Data) + AllocChunkSize; in MakeRopeString() local 795 reinterpret_cast<RopeRefCountString *>(new char[AllocSize]); in MakeRopeString()
|
/external/llvm/lib/Analysis/ |
D | MemoryBuiltins.cpp | 119 Callee->hasFnAttribute(Attribute::AllocSize)) { in getAllocationData() 120 Attribute Attr = Callee->getFnAttribute(Attribute::AllocSize); in getAllocationData()
|
/external/llvm/include/llvm/IR/ |
D | Attributes.td | 21 def AllocSize : EnumAttr<"allocsize">;
|
/external/skia/src/image/ |
D | SkImage_Gpu.cpp | 708 pixelSize = SkAlign8(SkAutoPixmapStorage::AllocSize(info, nullptr)); in getDeferredTextureImageData() 755 pixelSize += SkAlign8(SkAutoPixmapStorage::AllocSize(mipInfo, nullptr)); in getDeferredTextureImageData()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 3127 SDValue AllocSize = getValue(I.getArraySize()); in visitAlloca() local 3130 if (AllocSize.getValueType() != IntPtr) in visitAlloca() 3131 AllocSize = DAG.getZExtOrTrunc(AllocSize, getCurDebugLoc(), IntPtr); in visitAlloca() 3133 AllocSize = DAG.getNode(ISD::MUL, getCurDebugLoc(), IntPtr, in visitAlloca() 3134 AllocSize, in visitAlloca() 3146 AllocSize = DAG.getNode(ISD::ADD, getCurDebugLoc(), in visitAlloca() 3147 AllocSize.getValueType(), AllocSize, in visitAlloca() 3151 AllocSize = DAG.getNode(ISD::AND, getCurDebugLoc(), in visitAlloca() 3152 AllocSize.getValueType(), AllocSize, in visitAlloca() 3155 SDValue Ops[] = { getRoot(), AllocSize, DAG.getIntPtrConstant(Align) }; in visitAlloca() [all …]
|