Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/test/Verifier/
H A 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)
H A 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)
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A 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) }
H A Dmalloc-free-mismatched.ll23 ; 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 Dout-of-tree-allocator-optimizes-away.ll18 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 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)
H A Dderef-alloc-fns.ll6 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 Drealloc.ll4 declare i8* @realloc(i8* allocptr, i64) allockind("realloc") allocsize(1)
H A Dmalloc_free_delete_nvptx.ll7 declare i8* @malloc(i64) allockind("alloc,uninitialized") "alloc-family"="malloc" allocsize(0)
/llvm-project-15.0.7/llvm/test/Transforms/DeadArgElim/
H A 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)
/llvm-project-15.0.7/llvm/test/Transforms/Attributor/
H A Dlowerheap.ll9 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 Dnobuiltin.ll3 ; 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 Dstrip-nonlinetable-debuginfo-heapallocsite.ll19 ; 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 DBrainF.cpp95 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 Dnonescaping.ll7 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 Dmalloc-load-removal.ll7 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 Dcalloc-load-removal.ll48 declare noalias i8* @calloc(i64, i64) allockind("alloc,zeroed") allocsize(0,1)
/llvm-project-15.0.7/llvm/test/Transforms/NewGVN/
H A Dmalloc-load-removal.ll7 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 Dcalloc-load-removal.ll19 … i64) mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) "alloc-fami…
/llvm-project-15.0.7/llvm/test/Instrumentation/BoundsChecking/
H A Dsimple.ll9 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 Dcoro-byval-param.ll71 ; 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 Dindirect-global.ll12 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 Dmalloc-promote-2.ll20 declare noalias i8* @malloc(i64) allockind("alloc,uninitialized") allocsize(0)
H A Dmalloc-promote-1.ll19 declare noalias i8* @malloc(i64) allockind("alloc,uninitialized") allocsize(0)
/llvm-project-15.0.7/llvm/test/Bitcode/
H A Dattributes.ll339 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) }

123