Home
last modified time | relevance | path

Searched refs:posix_memalign (Results 1 – 25 of 48) sorted by relevance

12

/llvm-project-15.0.7/llvm/test/Transforms/LowerConstantIntrinsics/
H A Dbuiltin-object-size-posix-memalign.ll7 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 Dquarantine.c33 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 Dmemalign.c32 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 Dmm_malloc.h21 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 Dmm_malloc.h19 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 Dposix-return.cpp26 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 Dasan_malloc_linux.cpp144 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 Dassign_large_valloc_to_global.cpp6 int main() { posix_memalign((void **)&p, 4096, 1 << 20); } in main()
H A Dlarge_allocator_unpoisons_on_free.cpp21 posix_memalign(&p, boundary, size); in my_memalign()
/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/Posix/
H A Dposix_memalign-alignment.cpp12 int res = posix_memalign(&p, 17, 100); in main()
/llvm-project-15.0.7/openmp/runtime/src/
H A Dkmp_stub.cpp167 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 Dkmp_barrier.h29 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 Dposix_memalign-alignment.cpp35 int res = posix_memalign(&p, alignment, 100); in main()
/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/
H A Dmalloc-align.c27 int res = posix_memalign(&ptrs[k], alignment, size); in main()
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cpp85 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 Dscudo_malloc.cpp44 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 Dwrappers_c_test.cpp126 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 Dtsan_malloc_mac.cpp49 SCOPED_INTERCEPTOR_RAW(posix_memalign, memptr, alignment, size); \
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_malloc_mac.cpp49 SCOPED_INTERCEPTOR_RAW(posix_memalign, memptr, alignment, size); \
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/
H A Dno-malloc.rst10 that are used for memory management (e.g. ``posix_memalign()``).
/llvm-project-15.0.7/compiler-rt/lib/memprof/
H A Dmemprof_malloc_linux.cpp130 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR() argument
/llvm-project-15.0.7/mlir/lib/ExecutionEngine/
H A DCRunnerUtils.cpp132 (void)::posix_memalign(&result, alignment, size); in _mlir_aligned_alloc()
/llvm-project-15.0.7/compiler-rt/lib/lsan/
H A Dlsan_interceptors.cpp108 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 Dinterceptors.c122 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 Dsanitizer_allocator_testlib.cpp149 int posix_memalign(void **memptr, size_t alignment, size_t size) { in posix_memalign() function

12