Home
last modified time | relevance | path

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

/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/curl/src/
Dtool_urlglob.c605 size_t allocsize; in glob_match_url() local
617 allocsize = strlen(filename) + 1; /* make it at least one byte to store the in glob_match_url()
619 target = malloc(allocsize); in glob_match_url()
681 if(appendlen + stringlen >= allocsize) { in glob_match_url()
685 allocsize = (appendlen + stringlen) * 2; in glob_match_url()
686 newstr = realloc(target, allocsize + 1); in glob_match_url()
/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/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/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/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/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/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/swiftshader/third_party/llvm-subzero/build/Linux/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/include/llvm/IR/
DAttributes.inc61 .Case("allocsize", Attribute::AllocSize)
/external/python/cpython3/Modules/
D_tkinter.c1110 size_t allocsize; in AsObj() local
1126 allocsize = ((size_t)size) * sizeof(Tcl_UniChar); in AsObj()
1127 outbuf = (Tcl_UniChar*)PyMem_Malloc(allocsize); in AsObj()
/external/llvm/lib/AsmParser/
DLLLexer.cpp616 KEYWORD(allocsize); in LexIdentifier()
/external/curl/tests/python_dependencies/impacket/
Dsmb.py553 def __init__(self, ctime, atime, mtime, filesize, allocsize, attribs, shortname, longname): argument
558 self.__allocsize = allocsize
/external/python/cpython3/Modules/expat/
Dxmlparse.c6384 int allocsize = (dtd->scaffCount * sizeof(XML_Content) in build_model() local
6387 ret = (XML_Content *)MALLOC(allocsize); in build_model()
/external/python/cpython2/Modules/expat/
Dxmlparse.c6384 int allocsize = (dtd->scaffCount * sizeof(XML_Content) in build_model() local
6387 ret = (XML_Content *)MALLOC(allocsize); in build_model()
/external/expat/lib/
Dxmlparse.c7135 int allocsize = (dtd->scaffCount * sizeof(XML_Content) in build_model() local
7138 ret = (XML_Content *)MALLOC(parser, allocsize); in build_model()
/external/llvm/docs/
DLangRef.rst1290 ``allocsize(<EltSizeParam>[, <NumEltsParam>])``