/llvm-project/clang/test/CodeGen/ |
H A D | alloc-fns-alignment.c | 13 void *aligned_alloc(size_t, size_t); 29 return aligned_alloc(a, n); in aligned_alloc_variable_test() 37 return aligned_alloc(8, n); in aligned_alloc_constant_test() 41 return aligned_alloc(4096, n); in aligned_alloc_large_constant_test()
|
H A D | aligned_alloc-libcall.c | 5 void *aligned_alloc(size_t, size_t); 9 return aligned_alloc(alignment, size); in test()
|
H A D | allocs-fns-allocsize.c | 8 void *aligned_alloc(size_t, size_t); 24 return aligned_alloc(a, n); in aligned_alloc_test()
|
/llvm-project/llvm/test/Transforms/InstCombine/ |
H A D | deref-alloc-fns.ll | 10 declare noalias ptr @aligned_alloc(i64 allocalign, i64) allockind("alloc,uninitialized,aligned") allocsize(1) "alloc-family"="malloc" 40 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias align 32 dereferenceable_or_null(512) ptr @aligned_alloc(i64 32, i64 512) 43 %call = tail call noalias ptr @aligned_alloc(i64 32, i64 512) 50 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias align 32 ptr @aligned_alloc(i64 32, i64 [[SIZE]]) 54 %call = tail call noalias ptr @aligned_alloc(i64 32, i64 %size) 61 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias align 32 ptr @aligned_alloc(i64 32, i64 [[SIZE]]) 65 %call = tail call noalias ptr @aligned_alloc(i64 32, i64 %size) 71 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias dereferenceable_or_null(128) ptr @aligned_alloc(i64 [[ALIGN:%.*]], i64 128) 74 %call = tail call noalias ptr @aligned_alloc(i64 %align, i64 128) 82 ; CHECK-NEXT: [[CALL:%.*]] = tail call noalias dereferenceable_or_null(1024) ptr @aligned_alloc(i6 [all...] |
H A D | malloc-free.ll | 23 %aligned_allocation = tail call ptr @aligned_alloc(i32 %alignment, i32 %size) 31 ; CHECK-NEXT: [[ALIGNED_ALLOCATION:%.*]] = tail call ptr @aligned_alloc(i32 [[ALIGNMENT:%.*]], i… 35 %aligned_allocation = tail call ptr @aligned_alloc(i32 %alignment, i32 %size) 44 %aligned_allocation = tail call ptr @aligned_alloc(i32 8, i32 32) 51 …[ALIGNED_ALLOCATION:%.*]] = tail call dereferenceable_or_null(32) ptr @aligned_alloc(i32 3, i32 32) 55 %aligned_allocation = tail call ptr @aligned_alloc(i32 3, i32 32) 62 …[ALIGNED_ALLOCATION:%.*]] = tail call dereferenceable_or_null(31) ptr @aligned_alloc(i32 8, i32 31) 66 %aligned_allocation = tail call ptr @aligned_alloc(i32 8, i32 31) 71 ; This test uses a aligned allocation function different to @aligned_alloc, 72 ; and should be treated as having @aligned_alloc's constraints on alignment [all …]
|
/llvm-project/libc/src/__support/CPP/ |
H A D | new.h | 12 #include "hdr/func/aligned_alloc.h" 51 LIBC_INLINE static void *aligned_alloc(size_t s, std::align_val_t align, in aligned_alloc() 54 // std::aligned_alloc is not available on Windows because std::free on 56 // alternative for std::aligned_alloc named _aligned_malloc, but it must be 60 void *mem = ::aligned_alloc(static_cast<size_t>(align), s); in new() 76 return LIBC_NAMESPACE::AllocChecker::aligned_alloc(size, align, ac); 86 return LIBC_NAMESPACE::AllocChecker::aligned_alloc(size, align, ac); 47 LIBC_INLINE static void *aligned_alloc(size_t s, std::align_val_t align, aligned_alloc() function
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/ |
H A D | owning-memory-legacy-functions.cpp | 17 void *aligned_alloc(size_t Alignment, size_t Size); 37 using ::aligned_alloc; 132 int *HeapPointer3 = (int *)aligned_alloc(16ul, 4ul * 32ul); in test_resource_creators() 134 gsl::owner<int *> HeapPointer4 = static_cast<int *>(aligned_alloc(16ul, 4ul * 32ul)); // Ok in test_resource_creators()
|
/llvm-project/compiler-rt/test/scudo/ |
H A D | memalign.c | 21 void *aligned_alloc(size_t alignment, size_t size); 36 p = aligned_alloc(alignment, size); in main() 71 p = aligned_alloc(alignment, size >> 1); in main()
|
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | aligned_alloc.c | 3 extern void *aligned_alloc (size_t alignment, size_t size); 5 volatile void *p = aligned_alloc(128, 1024); in main()
|
H A D | aligned_alloc-alignment.cpp | 24 extern void *aligned_alloc(size_t alignment, size_t size); 30 void *p = aligned_alloc(alignment, 100); in main()
|
/llvm-project/compiler-rt/test/hwasan/TestCases/Linux/ |
H A D | aligned_alloc-alignment.cpp | 10 extern void *aligned_alloc(size_t alignment, size_t size); 13 void *p = aligned_alloc(17, 100); in main()
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cert/ |
H A D | err33-c.c | 4 void *aligned_alloc(size_t alignment, size_t size); 6 aligned_alloc(2, 10); in test_aligned_alloc()
|
H A D | mem57-cpp.cpp | 5 void *aligned_alloc(size_t, size_t); 20 return std::aligned_alloc(alignof(Vector3), nbytes); in operator new()
|
/llvm-project/llvm/test/Transforms/Coroutines/ |
H A D | coro-align8-02.ll | 9 %alloc = call ptr @aligned_alloc(i32 %align, i32 %size) 30 ; CHECK: %[[ALLOC:.+]] = call ptr @aligned_alloc(i32 8, i32 24) 45 declare noalias ptr @aligned_alloc(i32, i32)
|
H A D | coro-align64.ll | 11 %alloc = call ptr @aligned_alloc(i32 %align, i32 %size) 34 ; CHECK: %[[ALLOC:.+]] = call ptr @aligned_alloc(i32 64, i32 72) 51 declare noalias ptr @aligned_alloc(i32, i32)
|
H A D | coro-align8.ll | 11 %alloc = call ptr @aligned_alloc(i32 %align, i32 %size) 34 ; CHECK: %[[ALLOC:.+]] = call ptr @aligned_alloc(i32 8, i32 32) 51 declare noalias ptr @aligned_alloc(i32, i32)
|
H A D | coro-align16.ll | 11 %alloc = call ptr @aligned_alloc(i32 %align, i32 %size) 34 ; CHECK: %[[ALLOC:.+]] = call ptr @aligned_alloc(i32 16, i32 40) 51 declare noalias ptr @aligned_alloc(i32, i32)
|
H A D | coro-align64-02.ll | 11 %alloc = call ptr @aligned_alloc(i32 %align, i32 %size) 34 ; CHECK: %[[ALLOC:.+]] = call ptr @aligned_alloc(i32 64, i32 72) 51 declare noalias ptr @aligned_alloc(i32, i32)
|
H A D | coro-align32.ll | 13 %alloc = call ptr @aligned_alloc(i32 %align, i32 %size) 38 ; CHECK: %[[ALLOC:.+]] = call ptr @aligned_alloc(i32 32, i32 56) 55 declare noalias ptr @aligned_alloc(i32, i32)
|
/llvm-project/llvm/test/Transforms/NewGVN/ |
H A D | malloc-load-removal.ll | 66 declare ptr @aligned_alloc(i64 allocalign, i64) nounwind allockind("alloc,uninitialized,aligned") a… 72 ; CHECK-NEXT: [[CALL:%.*]] = tail call ptr @aligned_alloc(i64 256, i64 32) #[[ATTR2]] 81 %call = tail call ptr @aligned_alloc(i64 256, i64 32) nounwind
|
/llvm-project/llvm/test/Transforms/GVN/ |
H A D | malloc-load-removal.ll | 57 declare noalias ptr @aligned_alloc(i64 allocalign, i64) nounwind allockind("alloc,uninitialized,ali… 61 %call = tail call ptr @aligned_alloc(i64 256, i64 32) nounwind
|
/llvm-project/libcxx/test/std/depr/depr.c.headers/ |
H A D | stdlib_h.aligned_alloc.compile.pass.cpp | 27 static_assert(std::is_same<decltype(aligned_alloc(1, 0)), void*>::value, "");
|
/llvm-project/libcxx/test/std/language.support/support.runtime/ |
H A D | cstdlib.aligned_alloc.compile.pass.cpp | 27 static_assert(std::is_same<decltype(std::aligned_alloc(1, 0)), void*>::value, "");
|
/llvm-project/libc/src/stdlib/ |
H A D | aligned_alloc.h | 1 //===-- Implementation header for aligned_alloc -----------------*- C++ -*-===// 17 void *aligned_alloc(size_t alignment, size_t size);
|
/llvm-project/mlir/test/Integration/Dialect/Async/CPU/ |
H A D | lit.local.cfg | 3 # Windows does not have aligned_alloc
|