| /llvm-project-15.0.7/llvm/test/Verifier/ |
| H A D | allocsize.ll | 3 ; 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)
|
| H A D | alloc-size-failedparse.ll | 3 ; 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)
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | allocsize.ll | 3 ; 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) }
|
| H A D | malloc-free-mismatched.ll | 23 ; Function Attrs: nobuiltin allocsize(0) 29 attributes #0 = { builtin allocsize(0) } 30 attributes #1 = { nobuiltin allocsize(0) allockind("alloc,uninitialized") "alloc-family"="_Znam" }
|
| H A D | out-of-tree-allocator-optimizes-away.ll | 18 declare noalias ptr @__rust_alloc(i64, i64 allocalign) nounwind allocsize(0) allockind("alloc,unini… 20 declare noalias ptr @__rust_realloc(ptr allocptr, i64, i64 allocalign, i64) nounwind allocsize(3) a…
|
| H A D | allocsize-32.ll | 4 ; when given an allocsize function that takes a 64-bit argument in the face of 9 declare i8* @my_malloc(i8*, i64) allocsize(1)
|
| H A D | deref-alloc-fns.ll | 6 declare noalias i8* @malloc(i64) allockind("alloc,uninitialized") allocsize(0) "alloc-family"="mall… 7 declare noalias i8* @calloc(i64, i64) allockind("alloc,zeroed") allocsize(0,1) "alloc-family"="mall… 8 declare noalias i8* @realloc(i8* nocapture, i64) allockind("realloc") allocsize(1) "alloc-family"="… 12 …ned_alloc(i64 allocalign, i64) allockind("alloc,uninitialized,aligned") allocsize(1) "alloc-family… 16 declare i8* @my_malloc(i64) allocsize(0) 17 declare i8* @my_calloc(i64, i64) allocsize(0, 1)
|
| H A D | realloc.ll | 4 declare i8* @realloc(i8* allocptr, i64) allockind("realloc") allocsize(1)
|
| H A D | malloc_free_delete_nvptx.ll | 7 declare i8* @malloc(i64) allockind("alloc,uninitialized") "alloc-family"="malloc" allocsize(0)
|
| /llvm-project-15.0.7/llvm/test/Transforms/DeadArgElim/ |
| H A D | allocsize.ll | 5 ; 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)
|
| /llvm-project-15.0.7/llvm/test/Transforms/Attributor/ |
| H A D | lowerheap.ll | 9 declare noalias i8* @malloc(i64) allockind("alloc,uninitialized") allocsize(0) "alloc-family"="mall… 10 declare noalias i8* @calloc(i64, i64) allockind("alloc,zeroed") allocsize(0,1) "alloc-family"="mall… 65 ; IS________OPM: attributes #[[ATTR1:[0-9]+]] = { allockind("alloc,uninitialized") allocsize(0) "al… 66 ; IS________OPM: attributes #[[ATTR2:[0-9]+]] = { allockind("alloc,zeroed") allocsize(0,1) "alloc-f… 71 ; IS________NPM: attributes #[[ATTR1:[0-9]+]] = { allockind("alloc,uninitialized") allocsize(0) "al… 72 ; IS________NPM: attributes #[[ATTR2:[0-9]+]] = { allockind("alloc,zeroed") allocsize(0,1) "alloc-f…
|
| /llvm-project-15.0.7/llvm/test/Transforms/InferFunctionAttrs/ |
| H A D | nobuiltin.ll | 3 ; CHECK: Function Attrs: nobuiltin allocsize(0){{$}} 5 declare i8* @_Znwm(i32) nobuiltin allocsize(0)
|
| /llvm-project-15.0.7/llvm/test/Transforms/Util/ |
| H A D | strip-nonlinetable-debuginfo-heapallocsite.ll | 19 ; Function Attrs: nobuiltin allocsize(0) 23 attributes #1 = { nobuiltin allocsize(0) "frame-pointer"="all" } 24 attributes #2 = { builtin allocsize(0) }
|
| /llvm-project-15.0.7/llvm/examples/BrainF/ |
| H A D | BrainF.cpp | 95 Constant* allocsize = ConstantExpr::getSizeOf(Int8Ty); in header() local 96 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); in header() 97 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem, in header()
|
| /llvm-project-15.0.7/llvm/test/Transforms/GVN/ |
| H A D | nonescaping.ll | 7 declare noalias i8* @malloc(i64) nounwind allockind("alloc,uninitialized") allocsize(0) inaccessibl… 8 declare noalias i8* @calloc(i64, i64) allockind("alloc,zeroed") allocsize(0,1) inaccessiblememonly
|
| H A D | malloc-load-removal.ll | 7 declare noalias i8* @malloc(i64) nounwind allockind("alloc,uninitialized") allocsize(0) 57 … @aligned_alloc(i64 allocalign, i64) nounwind allockind("alloc,uninitialized,aligned") allocsize(1)
|
| H A D | calloc-load-removal.ll | 48 declare noalias i8* @calloc(i64, i64) allockind("alloc,zeroed") allocsize(0,1)
|
| /llvm-project-15.0.7/llvm/test/Transforms/NewGVN/ |
| H A D | malloc-load-removal.ll | 7 declare i8* @malloc(i64) nounwind allockind("alloc,uninitialized") allocsize(0) "alloc-family"="mal… 49 …(i64 allocalign, i64) nounwind allockind("alloc,uninitialized,aligned") allocsize(1) "alloc-family…
|
| H A D | calloc-load-removal.ll | 19 … i64) mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) "alloc-fami…
|
| /llvm-project-15.0.7/llvm/test/Instrumentation/BoundsChecking/ |
| H A D | simple.ll | 9 declare noalias i8* @malloc(i64) nounwind allocsize(0) 10 declare noalias i8* @calloc(i64, i64) nounwind allocsize(0,1) 11 declare noalias i8* @realloc(i8* nocapture allocptr, i64) nounwind allocsize(1)
|
| /llvm-project-15.0.7/llvm/test/Transforms/Coroutines/ |
| H A D | coro-byval-param.ll | 71 ; Function Attrs: nobuiltin nofree allocsize(0) 119 attributes #3 = { nobuiltin nofree allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "st… 125 attributes #9 = { allocsize(0) }
|
| /llvm-project-15.0.7/llvm/test/Analysis/GlobalsModRef/ |
| H A D | indirect-global.ll | 12 declare noalias i8* @malloc(i32) allockind("alloc,uninitialized") allocsize(0) inaccessiblememonly 41 declare noalias i8* @calloc(i32, i32) allockind("alloc,zeroed") allocsize(0,1) inaccessiblememonly
|
| /llvm-project-15.0.7/llvm/test/Transforms/GlobalOpt/ |
| H A D | malloc-promote-2.ll | 20 declare noalias i8* @malloc(i64) allockind("alloc,uninitialized") allocsize(0)
|
| H A D | malloc-promote-1.ll | 19 declare noalias i8* @malloc(i64) allockind("alloc,uninitialized") allocsize(0)
|
| /llvm-project-15.0.7/llvm/test/Bitcode/ |
| H A D | attributes.ll | 339 define i8* @f54(i32 %0) allocsize(0) { 345 define i8* @f55(i32 %0, i32 %1) allocsize(0, 1) { 568 ; CHECK: attributes #30 = { allocsize(0) } 569 ; CHECK: attributes #31 = { allocsize(0,1) }
|