Home
last modified time | relevance | path

Searched refs:my_malloc (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/clang/test/Analysis/
H A Dmalloc-annotations.cpp27 void *p = Alloc.my_malloc(12); in af1()
32 void *p = Alloc.my_malloc(12); in af1_b()
36 myglobalpointer = Alloc.my_malloc(12); // no-warning in af1_c()
41 *pp = Alloc.my_malloc(42); // no-warning in af1_e()
55 void *p = Alloc.my_malloc(12); in af2()
61 void *p = Alloc.my_malloc(12); in af2b()
67 void *p = Alloc.my_malloc(12); in af2c()
74 void *p = Alloc.my_malloc(12); in af2e()
82 void *p = Alloc.my_malloc(12); in af3()
88 void *p = Alloc.my_malloc(12); in af4()
[all …]
H A Dmalloc-annotations.c67 int *p = my_malloc(12); in af1()
72 int *p = my_malloc(12); in af1_b()
81 mystuff.somefield = my_malloc(12); in af1_d()
100 int *p = my_malloc(12); in af2()
106 int *p = my_malloc(12); in af2b()
112 int *p = my_malloc(12); in af2c()
118 int *p = my_malloc(12); in af2d()
125 int *p = my_malloc(12); in af2e()
133 int *p = my_malloc(12); in af3()
139 int *p = my_malloc(12); in af4()
[all …]
H A Dmalloc-plist.c191 int *my_malloc(void) { in my_malloc() function
196 my_malloc(); in testOnlyRefferToVisibleVariables()
H A DMismatchedDeallocator-checker-test.mm12 void __attribute((ownership_returns(malloc))) *my_malloc(size_t); function
44 int *p = (int *)my_malloc(sizeof(int));
45 …delete p; // expected-warning{{Memory allocated by my_malloc() should be deallocated by free(), no…
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dalloc-size.cpp4 void *my_malloc(int N) __attribute__((alloc_size(1)));
27 return __builtin_object_size(my_malloc(sizeof(T)), 0); in callMalloc()
35 return __builtin_object_size(my_malloc(sizeof(T) * N), 0); in callCalloc()
46 T *my_malloc(size_t N = sizeof(T)) __attribute__((alloc_size(1)));
66 return __builtin_object_size(my_malloc<int>(), 0) + in testIt()
80 void *my_malloc(const Foo &, int N) __attribute__((alloc_size(2)));
84 int *const p = (int *)my_malloc(Foo{}, 3); in testIt()
92 void *my_malloc(int N) __attribute__((alloc_size(2)));
99 return __builtin_object_size(C().my_malloc(16), 0); in callMemberMalloc()
/llvm-project-15.0.7/llvm/test/Transforms/GlobalOpt/
H A D2009-06-01-RecursivePHI.ll12 br i1 %c1, label %bb.i, label %my_malloc.exit
17 my_malloc.exit: ; preds = %entry
18 br i1 %c2, label %bb.i81, label %my_malloc.exit83
20 bb.i81: ; preds = %my_malloc.exit
23 my_malloc.exit83: ; preds = %my_malloc.exit
26 bb.i.i57: ; preds = %my_malloc.exit83
29 my_calloc.exit.i: ; preds = %my_malloc.exit83
60 my_malloc.exit.i70: ; preds = %bb8.i67
108 my_malloc.exit2.i: ; preds = %bb1.i38
112 bb.i7.i40: ; preds = %my_malloc.exit2.i
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dalloc-size.c28 void *const vp = my_malloc(100); in test1()
49 gi = OBJECT_SIZE_BUILTIN(my_malloc(100), 0); in test1()
51 gi = OBJECT_SIZE_BUILTIN(my_malloc(100), 1); in test1()
53 gi = OBJECT_SIZE_BUILTIN(my_malloc(100), 2); in test1()
55 gi = OBJECT_SIZE_BUILTIN(my_malloc(100), 3); in test1()
66 void *const zeroPtr = my_malloc(0); in test1()
70 gi = OBJECT_SIZE_BUILTIN(my_malloc(0), 0); in test1()
86 void *const vp = my_malloc(gi); in test2()
254 short *const buf0 = (my_malloc(100)); in test9()
255 short *const buf1 = (short*)(my_malloc(100)); in test9()
[all …]
H A Dalloc-size-fnptr.c11 extern void *my_malloc(int) __attribute__((alloc_size(1)));
16 my_malloc(50); in call_direct()
/llvm-project-15.0.7/llvm/test/Transforms/MemCpyOpt/
H A Daggregate-type-crash.ll10 declare noalias i8* @my_malloc(%my_struct*) #0
16 ; CHECK-NEXT: [[TMP2:%.*]] = call i8* @my_malloc(%my_struct* [[TMP0]])
23 %2 = call i8* @my_malloc(%my_struct* %0)
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dallocsize-32.ll9 declare i8* @my_malloc(i8*, i64) allocsize(1)
12 %1 = call i8* @my_malloc(i8* null, i64 100)
20 %3 = call i8* @my_malloc(i8* null, i64 5000000000)
H A Dallocsize.ll8 declare i8* @my_malloc(i8*, i32) allocsize(1)
13 %1 = call i8* @my_malloc(i8* null, i32 100)
36 %1 = call i8* @my_malloc(i8* null, i32 %n)
141 %1 = call i8* @my_malloc(i8* null, i32 100) nobuiltin
H A Dderef-alloc-fns.ll16 declare i8* @my_malloc(i64) allocsize(0)
361 ; CHECK-NEXT: [[CALL:%.*]] = call dereferenceable_or_null(32) i8* @my_malloc(i64 32)
364 %call = call i8* @my_malloc(i64 32)
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/infrastructure/
H A Dstatic-analyzer-config.cpp6 void __attribute((ownership_returns(malloc))) *my_malloc(size_t);
16 void *p = my_malloc(12); in af2()
/llvm-project-15.0.7/clang/test/Analysis/Inputs/expected-plists/
H A Dmalloc-plist.c.plist4751 <string>Calling &apos;my_malloc&apos;</string>
4753 <string>Calling &apos;my_malloc&apos;</string>
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttrDocs.td661 void *my_malloc(int a) __attribute__((alloc_size(1)));
665 void *const p = my_malloc(100);