Home
last modified time | relevance | path

Searched refs:aligned_alloc (Results 1 – 25 of 93) sorted by relevance

1234

/llvm-project/clang/test/CodeGen/
H A Dalloc-fns-alignment.c13 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 Daligned_alloc-libcall.c5 void *aligned_alloc(size_t, size_t);
9 return aligned_alloc(alignment, size); in test()
H A Dallocs-fns-allocsize.c8 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 Dderef-alloc-fns.ll10 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 Dmalloc-free.ll23 %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 Dnew.h12 #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 Downing-memory-legacy-functions.cpp17 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 Dmemalign.c21 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 Daligned_alloc.c3 extern void *aligned_alloc (size_t alignment, size_t size);
5 volatile void *p = aligned_alloc(128, 1024); in main()
H A Daligned_alloc-alignment.cpp24 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 Daligned_alloc-alignment.cpp10 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 Derr33-c.c4 void *aligned_alloc(size_t alignment, size_t size);
6 aligned_alloc(2, 10); in test_aligned_alloc()
H A Dmem57-cpp.cpp5 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 Dcoro-align8-02.ll9 %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 Dcoro-align64.ll11 %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 Dcoro-align8.ll11 %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 Dcoro-align16.ll11 %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 Dcoro-align64-02.ll11 %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 Dcoro-align32.ll13 %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 Dmalloc-load-removal.ll66 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 Dmalloc-load-removal.ll57 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 Dstdlib_h.aligned_alloc.compile.pass.cpp27 static_assert(std::is_same<decltype(aligned_alloc(1, 0)), void*>::value, "");
/llvm-project/libcxx/test/std/language.support/support.runtime/
H A Dcstdlib.aligned_alloc.compile.pass.cpp27 static_assert(std::is_same<decltype(std::aligned_alloc(1, 0)), void*>::value, "");
/llvm-project/libc/src/stdlib/
H A Daligned_alloc.h1 //===-- 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 Dlit.local.cfg3 # Windows does not have aligned_alloc

1234