Home
last modified time | relevance | path

Searched refs:allocsize (Results 1 – 25 of 42) 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/swiftshader/third_party/llvm-7.0/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/swiftshader/third_party/llvm-7.0/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
138 ; We had a bug where `nobuiltin` would cause `allocsize` to be ignored in
150 attributes #0 = { allocsize(1) }
151 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/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/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/DeadArgElim/
Dallocsize.ll5 ; CHECK-NOT: allocsize
6 define internal i64 @MagickMallocAligned(i64 %DEADARG1, i64 %s) allocsize(1) {
16 %c = call i64 @MagickMallocAligned(i64 0, i64 %s) allocsize(1)
/external/swiftshader/third_party/llvm-7.0/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/swiftshader/third_party/LLVM/examples/BrainF/
DBrainF.cpp85 Constant* allocsize = ConstantExpr::getSizeOf(Int8Ty); in header() local
86 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); in header()
87 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem, in header()
/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/curl/src/
Dtool_urlglob.c604 size_t allocsize; in glob_match_url() local
616 allocsize = strlen(filename) + 1; /* make it at least one byte to store the in glob_match_url()
618 target = malloc(allocsize); in glob_match_url()
680 if(appendlen + stringlen >= allocsize) { in glob_match_url()
684 allocsize = (appendlen + stringlen) * 2; in glob_match_url()
685 newstr = realloc(target, allocsize + 1); in glob_match_url()
/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/swiftshader/third_party/llvm-7.0/llvm/test/Bitcode/
Dattributes.ll322 define i8* @f54(i32) allocsize(0) {
327 define i8* @f55(i32, i32) allocsize(0, 1) {
384 ; CHECK: attributes #30 = { allocsize(0) }
385 ; CHECK: attributes #31 = { allocsize(0,1) }
/external/curl/lib/
Ddoh.c453 c->allocsize = len + 1; in cnameappend()
454 c->alloc = malloc(c->allocsize); in cnameappend()
458 else if(c->allocsize < (c->allocsize + len + 1)) { in cnameappend()
460 c->allocsize += len + 1; in cnameappend()
461 ptr = realloc(c->alloc, c->allocsize); in cnameappend()
Ddoh.h73 size_t allocsize; /* allocated size */ member
/external/zopfli/src/zopflipng/lodepng/
Dlodepng.cpp132 size_t allocsize; /*allocated size in bytes*/ member
137 ((uivector*)p)->size = ((uivector*)p)->allocsize = 0; in uivector_cleanup()
145 if(size * sizeof(unsigned) > p->allocsize) in uivector_resize()
151 p->allocsize = newsize; in uivector_resize()
173 p->size = p->allocsize = 0; in uivector_init()
203 size_t allocsize; /*allocated size*/ member
209 if(size * sizeof(unsigned char) > p->allocsize) in ucvector_resize()
215 p->allocsize = newsize; in ucvector_resize()
229 ((ucvector*)p)->size = ((ucvector*)p)->allocsize = 0; in ucvector_cleanup()
237 p->size = p->allocsize = 0; in ucvector_init()
[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/llvm/include/llvm/IR/
DAttributes.td21 def AllocSize : EnumAttr<"allocsize">;
/external/libpng/contrib/libtests/
Dpngstest.c585 png_size_t allocsize; member
616 image->allocsize = 0; in freebuffer()
687 image->allocsize = size; in allocbuffer()
714 if (check16(image->buffer+16+image->allocsize, 95)) in checkbuffer()
3320 copy.allocsize = 0; in testimage()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DAttributes.td21 def AllocSize : EnumAttr<"allocsize">;
/external/python/cpython2/Modules/
D_tkinter.c1170 size_t allocsize; in AsObj() local
1179 allocsize = ((size_t)size) * sizeof(Tcl_UniChar); in AsObj()
1180 if (allocsize >= size) in AsObj()
1181 outbuf = (Tcl_UniChar*)attemptckalloc(allocsize); in AsObj()
/external/syzkaller/sys/linux/
Dfilesystem.txt184 allocsize fs_opt_dec_suffix["allocsize"]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.inc61 .Case("allocsize", Attribute::AllocSize)

12