Home
last modified time | relevance | path

Searched refs:allocsize (Results 1 – 25 of 31) sorted by relevance

12

/external/llvm/test/Verifier/
Dallocsize.ll3 ; CHECK: 'allocsize' element size argument is out of bounds
4 declare i8* @a(i32) allocsize(1)
6 ; CHECK: 'allocsize' element size argument must refer to an integer parameter
7 declare i8* @b(i32*) allocsize(0)
9 ; CHECK: 'allocsize' number of elements argument is out of bounds
10 declare i8* @c(i32) allocsize(0, 1)
12 ; CHECK: 'allocsize' number of elements argument must refer to an integer parameter
13 declare i8* @d(i32, i32*) allocsize(0, 1)
15 ; CHECK: 'allocsize' number of elements argument is out of bounds
16 declare i8* @e(i32, i32) allocsize(1, 2)
Dalloc-size-failedparse.ll3 ; We handle allocsize with identical args in the parser, rather than the
6 ; CHECK: 'allocsize' indices can't refer to the same parameter
7 declare i8* @a(i32, i32) allocsize(0, 0)
/external/llvm/test/Transforms/InstCombine/
Dallocsize.ll3 ; Test that instcombine folds allocsize function calls properly.
4 ; Dummy arguments are inserted to verify that allocsize is picking the right
6 ; allocsize if they're not used by allocsize.
8 declare i8* @my_malloc(i8*, i32) allocsize(1)
9 declare i8* @my_calloc(i8*, i8*, i32, i32) allocsize(2, 3)
67 ; Verifying that out of line allocsize is parsed correctly
137 attributes #0 = { allocsize(1) }
138 attributes #1 = { allocsize(2, 3) }
Dallocsize-32.ll4 ; when given an allocsize function that takes a 64-bit argument in the face of
9 declare i8* @my_malloc(i8*, i64) allocsize(1)
/external/OpenCL-CTS/test_common/harness/
DtypeWrappers.h293 size_t allocsize; variable
298 : ptr(p), map(0), mapsize(0), allocsize(0), aligned(false) in ptr()
301 : ptr(p), map(m), mapsize(s), allocsize(0), aligned(false) in BufferOwningPtr()
364 allocsize = (ptr != NULL) ? allocsize_ : 0;
377 size_t getSize() const { return allocsize; }; in getSize()
/external/llvm/examples/BrainF/
DBrainF.cpp97 Constant* allocsize = ConstantExpr::getSizeOf(Int8Ty); in header() local
98 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); in header()
99 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem, in header()
/external/llvm/test/Bitcode/
Dattributes.ll322 define i8* @f54(i32) allocsize(0) {
327 define i8* @f55(i32, i32) allocsize(0, 1) {
367 ; CHECK: attributes #30 = { allocsize(0) }
368 ; CHECK: attributes #31 = { allocsize(0,1) }
/external/nanopb-c/
Dpb_encode.c855 size_t allocsize; in pb_enc_bytes() local
865 allocsize = PB_BYTES_ARRAY_T_ALLOCSIZE(bytes->size); in pb_enc_bytes()
866 if (allocsize < bytes->size || in pb_enc_bytes()
867 (PB_ATYPE(field->type) == PB_ATYPE_STATIC && allocsize > field->data_size)) in pb_enc_bytes()
/external/libaom/av1/encoder/
Dcnn.c39 int allocsize; member
48 if (tensor->allocsize) { in free_tensor()
51 tensor->allocsize = 0; in free_tensor()
58 if (tensor->allocsize < newallocsize) { in realloc_tensor()
63 tensor->allocsize = newallocsize; in realloc_tensor()
97 tensor->allocsize = 0; in assign_tensor()
124 if (dst->allocsize < newallocsize) { in concat_tensor()
/external/zopfli/src/zopflipng/lodepng/
Dlodepng.cpp221 size_t allocsize; /*allocated size in bytes*/ member
225 ((uivector*)p)->size = ((uivector*)p)->allocsize = 0; in uivector_cleanup()
232 size_t allocsize = size * sizeof(unsigned); in uivector_resize() local
233 if(allocsize > p->allocsize) { in uivector_resize()
234 size_t newsize = allocsize + (p->allocsize >> 1u); in uivector_resize()
237 p->allocsize = newsize; in uivector_resize()
248 p->size = p->allocsize = 0; in uivector_init()
266 size_t allocsize; /*allocated size*/ member
271 if(size > p->allocsize) { in ucvector_resize()
272 size_t newsize = size + (p->allocsize >> 1u); in ucvector_resize()
[all …]
/external/mdnsresponder/mDNSShared/
Ddnsextd.c421 int allocsize; in RecvPacket() local
449 allocsize = sizeof(PktMsg) - sizeof(DNSMessage) + msglen; in RecvPacket()
453 allocsize = sizeof(PktMsg); in RecvPacket()
456 pkt = malloc(allocsize); in RecvPacket()
1377 int i, allocsize, bucket; in UpdateLeaseTable() local
1450 allocsize = sizeof(RRTableElem); in UpdateLeaseTable()
1451 if (rr->rdlength > InlineCacheRDSize) allocsize += (rr->rdlength - InlineCacheRDSize); in UpdateLeaseTable()
1452 tmp = malloc(allocsize); in UpdateLeaseTable()
/external/swiftshader/third_party/llvm-16.0/configs/common/include/llvm/IR/
DAttributes.inc87 ATTRIBUTE_ENUM(AllocSize,allocsize)
/external/llvm/include/llvm/IR/
DAttributes.td21 def AllocSize : EnumAttr<"allocsize">;
/external/libpng/contrib/libtests/
Dpngstest.c586 size_t allocsize; member
617 image->allocsize = 0; in freebuffer()
688 image->allocsize = size; in allocbuffer()
715 if (check16(image->buffer+16+image->allocsize, 95)) in checkbuffer()
3323 copy.allocsize = 0; in testimage()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DAttributes.td21 def AllocSize : EnumAttr<"allocsize">;
/external/swiftshader/third_party/llvm-subzero/build/Fuchsia/include/llvm/IR/
DAttributes.gen61 .Case("allocsize", Attribute::AllocSize)
/external/swiftshader/third_party/llvm-subzero/build/MacOS/include/llvm/IR/
DAttributes.gen61 .Case("allocsize", Attribute::AllocSize)
/external/swiftshader/third_party/llvm-subzero/build/Windows/include/llvm/IR/
DAttributes.gen61 .Case("allocsize", Attribute::AllocSize)
/external/swiftshader/third_party/llvm-subzero/build/Android/include/llvm/IR/
DAttributes.gen61 .Case("allocsize", Attribute::AllocSize)
/external/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/IR/
DAttributes.gen61 .Case("allocsize", Attribute::AllocSize)
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.inc61 .Case("allocsize", Attribute::AllocSize)
/external/swiftshader/third_party/llvm-10.0/configs/common/lib/IR/
DAttributesCompatFunc.inc73 .Case("allocsize", Attribute::AllocSize)
/external/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/
DAttributes.inc73 .Case("allocsize", Attribute::AllocSize)
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/IR/
DAttributes.td62 def AllocSize : IntAttr<"allocsize", [FnAttr]>;
/external/llvm/lib/AsmParser/
DLLLexer.cpp616 KEYWORD(allocsize); in LexIdentifier()

12