| /llvm-project-15.0.7/llvm/test/Transforms/LowerConstantIntrinsics/ |
| H A D | builtin-object-size-posix-memalign.ll | 7 declare dso_local i32 @posix_memalign(i8** noundef, i64 noundef, i64 noundef) 10 ; Check posix_memalign call with proper handlig of return value 26 %call = call i32 @posix_memalign(i8** noundef %obj, i64 noundef 8, i64 noundef 10) 60 %call = call i32 @posix_memalign(i8** noundef %obj, i64 noundef 8, i64 noundef 10) 88 %call = call i32 @posix_memalign(i8** noundef %obj, i64 noundef 8, i64 noundef 10) 103 ; posix_memalign can fail, in that case no object_size can be guessed. 114 %call = call i32 @posix_memalign(i8** noundef %obj, i64 noundef 8, i64 noundef 10) 120 ; Checks that bo upon posix_memalign failure behaves correctly 139 %call = call i32 @posix_memalign(i8** noundef %obj, i64 noundef 8, i64 noundef 10) 153 ; Check posix_memalign call with a runtime condition check [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/scudo/ |
| H A D | quarantine.c | 33 assert(posix_memalign(&p, alignment, size) == 0); in main() 36 assert(posix_memalign(&p, alignment, size + 1) == 0); in main() 81 assert(posix_memalign(&p, alignment, size + 1) == 0); in main() 93 assert(posix_memalign(&p, alignment, size) == 0); in main() 108 assert(posix_memalign(&p, alignment, size) == 0); in main()
|
| H A D | memalign.c | 32 posix_memalign(&p, alignment, size); in main() 76 err = posix_memalign(&p, 3, size); in main() 80 err = posix_memalign(&p, 2, size); in main() 86 posix_memalign(&p, 0x100, sizeof(int)); in main()
|
| /llvm-project-15.0.7/clang/lib/Headers/ppc_wrappers/ |
| H A D | mm_malloc.h | 21 extern int posix_memalign(void **, size_t, size_t); 23 extern "C" int posix_memalign(void **, size_t, size_t); 33 if (posix_memalign(&__ptr, __alignment, __size) == 0) in _mm_malloc()
|
| /llvm-project-15.0.7/clang/lib/Headers/ |
| H A D | mm_malloc.h | 19 extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size); 25 extern "C" int posix_memalign(void **__memptr, size_t __alignment, size_t __size); 47 if (posix_memalign(&__mallocedMemory, __align, __size)) in _mm_malloc()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | posix-return.cpp | 26 extern "C" int posix_memalign(void **memptr, size_t alignment, size_t size); 53 if (posix_memalign(NULL, 0, 0) < 0) {} in warningLessThanZero() 109 if (posix_memalign(NULL, 0, 0) == -1) {} in warningEqualsNegative()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_malloc_linux.cpp | 144 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR() argument 185 int (*posix_memalign)(void **memptr, uptr alignment, uptr size); member 198 WRAP(posix_memalign), WRAP(pvalloc), WRAP(realloc),
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/ |
| H A D | assign_large_valloc_to_global.cpp | 6 int main() { posix_memalign((void **)&p, 4096, 1 << 20); } in main()
|
| H A D | large_allocator_unpoisons_on_free.cpp | 21 posix_memalign(&p, boundary, size); in my_memalign()
|
| /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/Posix/ |
| H A D | posix_memalign-alignment.cpp | 12 int res = posix_memalign(&p, 17, 100); in main()
|
| /llvm-project-15.0.7/openmp/runtime/src/ |
| H A D | kmp_stub.cpp | 167 if ((err = posix_memalign(&res, a, sz))) { in kmp_aligned_malloc() 399 if ((err = posix_memalign(&res, a, size))) { in omp_aligned_alloc() 426 if ((err = posix_memalign(&res, a, nmemb * size))) { in omp_aligned_calloc()
|
| H A D | kmp_barrier.h | 29 int n = posix_memalign(&ptr, alignment, size); in KMP_ALIGNED_ALLOCATE()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | posix_memalign-alignment.cpp | 35 int res = posix_memalign(&p, alignment, 100); in main()
|
| /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/ |
| H A D | malloc-align.c | 27 int res = posix_memalign(&ptrs[k], alignment, size); in main()
|
| /llvm-project-15.0.7/compiler-rt/lib/dfsan/ |
| H A D | dfsan_interceptors.cpp | 85 INTERCEPTOR(int, posix_memalign, void **memptr, SIZE_T alignment, SIZE_T size) { in INTERCEPTOR() argument 210 INTERCEPT_FUNCTION(posix_memalign); in initialize_interceptors()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_malloc.cpp | 44 int posix_memalign(void **memptr, size_t alignment, size_t size) { in posix_memalign() function
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | wrappers_c_test.cpp | 126 EXPECT_EQ(posix_memalign(&P, Alignment, Size), 0); in TEST() 134 EXPECT_EQ(posix_memalign(&P, 15U, Size), EINVAL); in TEST() 135 EXPECT_EQ(posix_memalign(&P, 4096U, SIZE_MAX), ENOMEM); in TEST()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_malloc_mac.cpp | 49 SCOPED_INTERCEPTOR_RAW(posix_memalign, memptr, alignment, size); \
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_malloc_mac.cpp | 49 SCOPED_INTERCEPTOR_RAW(posix_memalign, memptr, alignment, size); \
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/ |
| H A D | no-malloc.rst | 10 that are used for memory management (e.g. ``posix_memalign()``).
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_malloc_linux.cpp | 130 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR() argument
|
| /llvm-project-15.0.7/mlir/lib/ExecutionEngine/ |
| H A D | CRunnerUtils.cpp | 132 (void)::posix_memalign(&result, alignment, size); in _mlir_aligned_alloc()
|
| /llvm-project-15.0.7/compiler-rt/lib/lsan/ |
| H A D | lsan_interceptors.cpp | 108 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR() argument 513 INTERCEPT_FUNCTION(posix_memalign); in InitializeInterceptors()
|
| /llvm-project-15.0.7/compiler-rt/test/dfsan/ |
| H A D | interceptors.c | 122 int r = posix_memalign((void **)&p, kAlignment, kSize); in test_posix_memalign()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_allocator_testlib.cpp | 149 int posix_memalign(void **memptr, size_t alignment, size_t size) { in posix_memalign() function
|