Lines Matching refs:noalias
4 declare noalias i8* @malloc(i64)
5 declare noalias i8* @calloc(i64, i64)
6 declare noalias i8* @realloc(i8* nocapture, i64)
7 declare noalias nonnull i8* @_Znam(i64) ; throwing version of 'new'
8 declare noalias nonnull i8* @_Znwm(i64) ; throwing version of 'new'
9 declare noalias i8* @strdup(i8*)
10 declare noalias i8* @aligned_alloc(i64, i64)
14 define noalias i8* @malloc_nonconstant_size(i64 %n) {
16 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @malloc(i64 [[N:%.*]])
19 %call = tail call noalias i8* @malloc(i64 %n)
23 define noalias i8* @malloc_constant_size() {
25 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias dereferenceable_or_null(40) i8* @malloc(i64 40)
28 %call = tail call noalias i8* @malloc(i64 40)
32 define noalias i8* @aligned_alloc_constant_size() {
34 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias align 32 dereferenceable_or_null(512) i8* @aligne…
37 %call = tail call noalias i8* @aligned_alloc(i64 32, i64 512)
41 declare noalias i8* @foo(i8*, i8*, i8*)
43 define noalias i8* @aligned_alloc_dynamic_args(i64 %align, i64 %size) {
45 ; CHECK-NEXT: tail call noalias dereferenceable_or_null(1024) i8* @aligned_alloc(i64 %{{.*}}, i6…
46 ; CHECK-NEXT: tail call noalias i8* @aligned_alloc(i64 0, i64 1024)
47 ; CHECK-NEXT: tail call noalias i8* @aligned_alloc(i64 32, i64 %{{.*}})
49 %call = tail call noalias i8* @aligned_alloc(i64 %align, i64 1024)
50 %call_1 = tail call noalias i8* @aligned_alloc(i64 0, i64 1024)
51 %call_2 = tail call noalias i8* @aligned_alloc(i64 32, i64 %size)
57 define noalias i8* @malloc_constant_size2() {
59 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias dereferenceable_or_null(80) i8* @malloc(i64 40)
62 %call = tail call noalias dereferenceable_or_null(80) i8* @malloc(i64 40)
66 define noalias i8* @malloc_constant_size3() {
68 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias dereferenceable(80) dereferenceable_or_null(40) i…
71 %call = tail call noalias dereferenceable(80) i8* @malloc(i64 40)
75 define noalias i8* @malloc_constant_zero_size() {
77 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @malloc(i64 0)
80 %call = tail call noalias i8* @malloc(i64 0)
84 define noalias i8* @realloc_nonconstant_size(i8* %p, i64 %n) {
86 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @realloc(i8* [[P:%.*]], i64 [[N:%.*]])
89 %call = tail call noalias i8* @realloc(i8* %p, i64 %n)
93 define noalias i8* @realloc_constant_zero_size(i8* %p) {
95 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @realloc(i8* [[P:%.*]], i64 0)
98 %call = tail call noalias i8* @realloc(i8* %p, i64 0)
102 define noalias i8* @realloc_constant_size(i8* %p) {
104 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias dereferenceable_or_null(40) i8* @realloc(i8* [[P:…
107 %call = tail call noalias i8* @realloc(i8* %p, i64 40)
111 define noalias i8* @calloc_nonconstant_size(i64 %n) {
113 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @calloc(i64 1, i64 [[N:%.*]])
116 %call = tail call noalias i8* @calloc(i64 1, i64 %n)
120 define noalias i8* @calloc_nonconstant_size2(i64 %n) {
122 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @calloc(i64 [[N:%.*]], i64 0)
125 %call = tail call noalias i8* @calloc(i64 %n, i64 0)
129 define noalias i8* @calloc_nonconstant_size3(i64 %n) {
131 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @calloc(i64 [[N:%.*]], i64 [[N]])
134 %call = tail call noalias i8* @calloc(i64 %n, i64 %n)
138 define noalias i8* @calloc_constant_zero_size() {
140 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @calloc(i64 0, i64 0)
143 %call = tail call noalias i8* @calloc(i64 0, i64 0)
147 define noalias i8* @calloc_constant_zero_size2(i64 %n) {
149 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @calloc(i64 [[N:%.*]], i64 0)
152 %call = tail call noalias i8* @calloc(i64 %n, i64 0)
157 define noalias i8* @calloc_constant_zero_size3(i64 %n) {
159 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @calloc(i64 0, i64 [[N:%.*]])
162 %call = tail call noalias i8* @calloc(i64 0, i64 %n)
166 define noalias i8* @calloc_constant_zero_size4(i64 %n) {
168 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @calloc(i64 0, i64 1)
171 %call = tail call noalias i8* @calloc(i64 0, i64 1)
175 define noalias i8* @calloc_constant_zero_size5(i64 %n) {
177 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @calloc(i64 1, i64 0)
180 %call = tail call noalias i8* @calloc(i64 1, i64 0)
184 define noalias i8* @calloc_constant_size() {
186 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias dereferenceable_or_null(128) i8* @calloc(i64 16, …
189 %call = tail call noalias i8* @calloc(i64 16, i64 8)
193 define noalias i8* @calloc_constant_size_overflow() {
195 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @calloc(i64 2000000000000, i64 80000000000)
198 %call = tail call noalias i8* @calloc(i64 2000000000000, i64 80000000000)
202 define noalias i8* @op_new_nonconstant_size(i64 %n) {
211 define noalias i8* @op_new_constant_size() {
220 define noalias i8* @op_new_constant_size2() {
229 define noalias i8* @op_new_constant_zero_size() {
238 define noalias i8* @strdup_constant_str() {
240 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias dereferenceable_or_null(6) i8* @strdup(i8* getele…
243 …%call = tail call noalias i8* @strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0…
247 define noalias i8* @strdup_notconstant_str(i8 * %str) {
249 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias i8* @strdup(i8* [[STR:%.*]])
252 %call = tail call noalias i8* @strdup(i8* %str)
258 define noalias i8* @ossfuzz_23214() {
261 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias dereferenceable_or_null(512) i8* @aligned_alloc(i…
266 %call = tail call noalias i8* @aligned_alloc(i64 %and, i64 512)