| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Windows/ |
| H A D | heapalloc_rtl_transfer.cpp | 37 assert(alloc); in main() 39 assert(((char *)alloc)[i] == 0); in main() 40 ((char *)alloc)[i] = '\xcc'; in main() 46 assert(alloc && !__sanitizer_get_ownership(alloc) && HeapValidate(GetProcessHeap(), 0, alloc)); in main() 48 assert(((char *)alloc)[i] == '\xcc'); in main() 51 assert(((char *)alloc)[i] == 0); in main() 52 ((char *)alloc)[i] = '\xcc'; in main() 58 alloc = nullptr; in main() 82 assert(alloc && !__sanitizer_get_ownership(alloc) && HeapValidate(GetProcessHeap(), 0, alloc)); in main() 85 ((char *)alloc)[i] = 0; in main() [all …]
|
| H A D | heapalloc_transfer.cpp | 11 void *alloc = HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, 100); in main() local 12 assert(alloc); in main() 14 alloc = HeapReAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, alloc, 100); in main() 15 assert(alloc && !__sanitizer_get_ownership(alloc) && HeapValidate(GetProcessHeap(), 0, alloc)); in main() 17 void *realloc = HeapReAlloc(GetProcessHeap(), 0, alloc, 500); in main() 18 alloc = nullptr; in main() 21 alloc = HeapReAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, realloc, 100); in main() 22 assert(alloc && !__sanitizer_get_ownership(alloc) && HeapValidate(GetProcessHeap(), 0, alloc)); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
| H A D | alloc_function.pass.cpp | 31 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() argument 55 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() argument 77 void test_MemFunClass(AllocType& alloc) in test_MemFunClass() argument 99 void test_for_alloc(Alloc& alloc) in test_for_alloc() argument 102 test_FunctionObject<int()>(alloc); in test_for_alloc() 103 test_FunctionObject<int(int)>(alloc); in test_for_alloc() 107 test_FreeFunction<int()>(alloc); in test_for_alloc() 108 test_FreeFunction<int(int)>(alloc); in test_for_alloc() 121 bare_allocator<DummyClass> alloc; in main() local 122 test_for_alloc(alloc); in main() [all …]
|
| H A D | alloc_F.pass.cpp | 44 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() argument 64 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() argument 83 void test_MemFunClass(AllocType& alloc) in test_MemFunClass() argument 99 void test_for_alloc(Alloc& alloc) { in test_for_alloc() argument 100 test_FunctionObject<int()>(alloc); in test_for_alloc() 101 test_FunctionObject<int(int)>(alloc); in test_for_alloc() 102 test_FunctionObject<int(int, int)>(alloc); in test_for_alloc() 105 test_FreeFunction<int()>(alloc); in test_for_alloc() 106 test_FreeFunction<int(int)>(alloc); in test_for_alloc() 107 test_FreeFunction<int(int, int)>(alloc); in test_for_alloc() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.destroy/ |
| H A D | ranges_destroy_at.pass.cpp | 65 std::allocator<Counted> alloc; in test() local 70 Traits::construct(alloc, buffer, counter); in test() 79 Traits::deallocate(alloc, buffer, 2); in test() 89 Traits::construct(alloc, buffer, counter); in test() 98 Traits::deallocate(alloc, buffer, 2); in test() 108 std::allocator<Array> alloc; in test_arrays() local 112 Array* array = Traits::allocate(alloc, 1); in test_arrays() 122 Traits::deallocate(alloc, array, 1); in test_arrays() 128 std::allocator<Array> alloc; in test_arrays() local 132 Array* array = Traits::allocate(alloc, 1); in test_arrays() [all …]
|
| H A D | ranges_destroy.pass.cpp | 57 std::allocator<Counted> alloc; in test() local 70 Traits::deallocate(alloc, out, N); in test() 76 std::allocator<Counted> alloc; in test() local 90 Traits::deallocate(alloc, out, N); in test() 108 std::allocator<Array> alloc; in test_arrays() local 124 Traits::deallocate(alloc, buffer, N); in test_arrays() 133 std::allocator<Array> alloc; in test_arrays() local 150 Traits::deallocate(alloc, buffer, N); in test_arrays() 160 std::allocator<Array> alloc; in test_arrays() local 178 Traits::deallocate(alloc, buffer, N); in test_arrays() [all …]
|
| H A D | destroy_at.pass.cpp | 46 Alloc alloc; in test_arrays() local 47 Array* ptr = std::allocator_traits<Alloc>::allocate(alloc, 1); in test_arrays() 59 std::allocator_traits<Alloc>::deallocate(alloc, ptr, 1); in test_arrays() 64 Alloc alloc; in test_arrays() local 78 std::allocator_traits<Alloc>::deallocate(alloc, ptr, 1); in test_arrays() 87 Alloc alloc; in test() local 103 std::allocator_traits<Alloc>::deallocate(alloc, ptr1, 1); in test() 104 std::allocator_traits<Alloc>::deallocate(alloc, ptr2, 1); in test() 108 Alloc alloc; in test() local 124 std::allocator_traits<Alloc>::deallocate(alloc, ptr1, 1); in test() [all …]
|
| H A D | ranges_destroy_n.pass.cpp | 53 std::allocator<Counted> alloc; in test() local 54 using Traits = std::allocator_traits<decltype(alloc)>; in test() 57 Counted* out = Traits::allocate(alloc, N); in test() 59 Traits::construct(alloc, out + i, counter); in test() 66 Traits::deallocate(alloc, out, N); in test() 84 std::allocator<Array> alloc; in test_arrays() local 88 Array* buffer = Traits::allocate(alloc, N); in test_arrays() 100 Traits::deallocate(alloc, buffer, N); in test_arrays() 110 std::allocator<Array> alloc; in test_arrays() local 114 Array* buffer = Traits::allocate(alloc, N); in test_arrays() [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/Bufferization/Transforms/ |
| H A D | one-shot-module-bufferize-out-params.mlir | 17 // CHECK: %[[alloc:.*]] = memref.alloc() {{.*}} : memref<5xf32> 29 // CHECK-NO-LAYOUT: %[[alloc:.*]] = memref.alloc() {{.*}} : memref<5xf32> 38 // CHECK-BASELINE: %[[alloc:.*]] = memref.alloc() {{.*}} : memref<5xf32> 53 // CHECK: %[[alloc:.*]] = memref.alloc() : memref<5xf32> 58 // CHECK: memref.dealloc %[[alloc]] 63 // CHECK-NO-LAYOUT: %[[alloc:.*]] = memref.alloc() : memref<5xf32> 81 // CHECK: %[[alloc:.*]] = memref.alloc() {{.*}} : memref<10x20xf32> 90 // CHECK-NO-LAYOUT: %[[alloc:.*]] = memref.alloc() {{.*}} : memref<10x20xf32> 104 // CHECK-BASELINE: %[[alloc:.*]] = memref.alloc() {{.*}} : memref<10x20xf32> 114 // CHECK: %[[alloc:.*]] = memref.alloc() : memref<2x5xf32> [all …]
|
| H A D | one-shot-bufferize.mlir | 31 // CHECK: %[[alloc:.*]] = memref.alloc(%[[dim]]) 37 // CHECK: memref.dealloc %[[alloc]] 46 // CHECK: %[[alloc:.*]] = memref.alloc() 76 // CHECK-DAG: %[[alloc:.*]] = memref.alloc 90 // CHECK: memref.dealloc %[[alloc]] 99 // CHECK: %[[alloc:.*]] = memref.alloc() 102 // CHECK: memref.dealloc %[[alloc]] 113 // CHECK-DAG: %[[alloc:.*]] = memref.alloc(%{{.*}}) {{.*}} : memref<?xf32> 132 // CHECK: %[[alloc:.*]] = memref.alloc() {{.*}} : memref<5xf32> 136 // CHECK: memref.dealloc %[[alloc]] [all …]
|
| H A D | buffer-loop-hoisting.mlir | 20 %0 = memref.alloc() : memref<2xf32> 53 %1 = memref.alloc(%0) : memref<?xf32> 84 %0 = memref.alloc() : memref<2xf32> 87 %1 = memref.alloc() : memref<2xf32> 141 %0 = memref.alloc() : memref<2xf32> 168 %0 = memref.alloc() : memref<2xf32> 201 %0 = memref.alloc() : memref<2xf32> 290 %0 = memref.alloc() : memref<2xf32> 334 %0 = memref.alloc() : memref<2xf32> 389 %0 = memref.alloc() : memref<2xf32> [all …]
|
| H A D | buffer-hoisting.mlir | 21 %0 = memref.alloc() : memref<2xf32> 54 %1 = memref.alloc(%0) : memref<?xf32> 96 %1 = memref.alloc(%0) : memref<?xf32> 133 %0 = memref.alloc() : memref<2xf32> 156 %0 = memref.alloc() : memref<2xf32> 166 %7 = memref.alloc() : memref<2xf32> 194 %0 = memref.alloc() : memref<2xf32> 226 %0 = memref.alloc() : memref<2xf32> 240 %9 = memref.alloc() : memref<2xf32> 262 %0 = memref.alloc() : memref<2xf32> [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/Affine/ |
| H A D | memref-stride-calculation.mlir | 5 %1 = memref.alloc() : memref<3x4x5xf32> 7 %2 = memref.alloc(%0) : memref<3x4x?xf32> 9 %3 = memref.alloc(%0) : memref<3x?x5xf32> 11 %4 = memref.alloc(%0) : memref<?x4x5xf32> 13 %5 = memref.alloc(%0, %0) : memref<?x4x?xf32> 15 %6 = memref.alloc(%0, %0, %0) : memref<?x?x?xf32> 51 %26 = memref.alloc(%0)[] : memref<?xf32, affine_map<(i)[M]->(i)>> 53 %27 = memref.alloc()[%0] : memref<5xf32, affine_map<(i)[M]->(M)>> 55 %28 = memref.alloc()[%0] : memref<5xf32, affine_map<(i)[M]->(123)>> 57 %29 = memref.alloc()[%0] : memref<f32, affine_map<()[M]->(M)>> [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/Linalg/ |
| H A D | forward-vector-transfers.mlir | 7 // CHECK: %[[ALLOC:.*]] = memref.alloc 13 %alloc = memref.alloc() : memref<32 x f32> 17 memref.dealloc %alloc : memref<32 x f32> 31 %alloc = memref.alloc() : memref<32 x f32> 36 memref.dealloc %alloc : memref<32 x f32> 50 %alloc = memref.alloc() : memref<128 x i8> 69 %alloc = memref.alloc() : memref<128 x i8> 89 %alloc = memref.alloc() : memref<32 x f32> 107 %alloc = memref.alloc() : memref<128 x i8> 131 %alloc = memref.alloc() : memref<32 x f32> [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.members/ |
| H A D | construct.pass.cpp | 86 std::allocator<A0> alloc; in test() local 91 alloc.deallocate(a0, 1); in test() 96 std::allocator<A1> alloc; in test() local 101 alloc.deallocate(a1, 1); in test() 106 std::allocator<A2> alloc; in test() local 111 alloc.deallocate(a2, 1); in test() 117 std::allocator<VT> alloc; in test() local 120 alloc.deallocate(vt, 1); in test() 135 alloc.deallocate(a0, 1); in test() 148 alloc.deallocate(a1, 1); in test() [all …]
|
| H A D | destroy.pass.cpp | 87 Alloc alloc; in test() local 93 std::allocator_traits<Alloc>::destroy(alloc, pool); in test() 96 std::allocator_traits<Alloc>::deallocate(alloc, pool, 1); in test() 101 Alloc alloc; in test() local 102 T* pool = std::allocator_traits<Alloc>::allocate(alloc, 1); in test() 103 std::allocator_traits<Alloc>::construct(alloc, pool, nullptr); in test() 104 std::allocator_traits<Alloc>::destroy(alloc, pool); in test() 105 std::allocator_traits<Alloc>::deallocate(alloc, pool, 1); in test() 111 Alloc alloc(&destroys_called); in test() local 118 std::allocator_traits<Alloc>::destroy(alloc, pool); in test() [all …]
|
| /llvm-project-15.0.7/openmp/libomptarget/test/unified_shared_memory/ |
| H A D | close_modifier.c | 21 int *alloc = (int *)malloc(N * sizeof(int)); in main() local 25 alloc[i] = 10; in main() 30 host_alloc = &alloc[0]; in main() 42 device_alloc = &alloc[0]; in main() 45 alloc[i] += 1; in main() 62 if (alloc[i] != 10) in main() 83 alloc[i] += 1; in main() 92 if (alloc[i] != 11) in main() 108 alloc[i] += 1; in main() 116 if (alloc[i] != 12) in main() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/ |
| H A D | hwasan-print-shadow.cpp | 11 char *alloc = (char *)malloc(4096); in main() local 14 alloc[15] = 0x00; in main() 15 alloc[31] = 0xbb; in main() 16 alloc[47] = 0xcc; in main() 17 alloc[63] = 0xdd; in main() 18 alloc[79] = 0xee; in main() 19 alloc[95] = 0xff; in main() 22 char *p = (char *)__hwasan_tag_pointer(alloc, 0); in main() 41 free(alloc); in main()
|
| /llvm-project-15.0.7/openmp/libomptarget/test/mapping/ompx_hold/ |
| H A D | target.c | 25 #pragma omp target map(tofrom: m) map(alloc: r, d) in main() 32 #pragma omp target data map(tofrom: m) map(alloc: r, d) in main() 36 #pragma omp target map(tofrom: m) map(alloc: r, d) in main() 79 #pragma omp target map(tofrom: m) map(alloc: r, d) in main() 94 map(ompx_hold, alloc: r, d) in main() 98 #pragma omp target data map(tofrom: m) map(alloc: r, d) in main() 102 #pragma omp target map(tofrom: m) map(alloc: r, d) in main() 122 #pragma omp target data map(tofrom: m) map(alloc: r, d) in main() 136 #pragma omp target data map(tofrom: m) map(alloc: r, d) in main() 140 #pragma omp target data map(tofrom: m) map(alloc: r, d) in main() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector.bool/ |
| H A D | construct_iter_iter_alloc.pass.cpp | 38 std::allocator<bool> alloc; in tests() local 39 …vector<bool> >(cpp17_input_iterator<const bool*>(a), cpp17_input_iterator<const bool*>(an), alloc); in tests() 40 …st<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in tests() 41 …or<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in tests() 42 …or<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); in tests() 43 test<std::vector<bool> >(a, an, alloc); in tests() 47 min_allocator<bool> alloc; in tests() local 48 …cator<bool>> >(cpp17_input_iterator<const bool*>(a), cpp17_input_iterator<const bool*>(an), alloc); in tests() 49 …min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in tests() 50 …r<bool>> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in tests() [all …]
|
| /llvm-project-15.0.7/mlir/test/IR/ |
| H A D | memory-ops.mlir | 5 // CHECK-LABEL: func @alloc() { 6 func.func @alloc() { 8 // Test simple alloc. 9 // CHECK: %0 = memref.alloc() : memref<1024x64xf32, 1> 15 // Test alloc with dynamic dimensions. 23 // Test alloc with dynamic dimensions and one symbol. 29 // CHECK: %4 = memref.alloc() : memref<2xi32> 30 %4 = memref.alloc() : memref<2 x i32> 39 // Test simple alloc. 68 // CHECK: %0 = memref.alloc() : memref<1024x64xf32> [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/Coroutines/ |
| H A D | no-suspend.ll | 16 %need.dyn.alloc = call i1 @llvm.coro.alloc(token %id) 17 br i1 %need.dyn.alloc, label %dyn.alloc, label %coro.begin 18 dyn.alloc: 23 %phi = phi i8* [ null, %entry ], [ %alloc, %dyn.alloc ] 56 %need.dyn.alloc = call i1 @llvm.coro.alloc(token %id) 58 dyn.alloc: 109 dyn.alloc: 167 dyn.alloc: 223 dyn.alloc: 276 dyn.alloc: [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | infinite-loop.mm | 7 +(instancetype)alloc; class 16 +(instancetype)alloc; class 50 NSArray *arr = [[NSArray alloc] init]; 54 [arr addObject: [[I alloc] init]]; 59 NSArray *arr = [[NSArray alloc] init]; 62 [arr addObject: [[I alloc] init]]; 71 [arr addObject: [[I alloc] init]]; 79 [arr addObject: [[I alloc] init]]; 86 +(instancetype)alloc; class 115 [arr addObject: [[I alloc] init]]; [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/ |
| H A D | frame-27.mir | 20 # CHECK: alloc FI(1) at SP[-4255] 21 # CHECK-NEXT: alloc FI(0) at SP[-4271] 22 # CHECK-NEXT: alloc FI(2) at SP[-4280] 23 # CHECK-NEXT: alloc FI(3) at SP[-4288] 43 # CHECK: alloc FI(0) at SP[-176] 44 # CHECK-NEXT: alloc FI(1) at SP[-4271] 45 # CHECK-NEXT: alloc FI(2) at SP[-4280] 46 # CHECK-NEXT: alloc FI(3) at SP[-4288] 66 # CHECK: alloc FI(1) at SP[-8350] 67 # CHECK-NEXT: alloc FI(0) at SP[-12445] [all …]
|
| /llvm-project-15.0.7/clang/test/OpenMP/ |
| H A D | target_data_ast_print.cpp | 48 #pragma omp target data map(always,alloc: e) in tmain() 51 #pragma omp target data map(close,alloc: e) in tmain() 55 #pragma omp target data map(present,alloc: e) in tmain() 67 #pragma omp target map(always, alloc: e) in tmain() 69 #pragma omp target map(close, alloc: e) in tmain() 72 #pragma omp target map(present, alloc: e) in tmain() 76 #pragma omp target map(ompx_hold, alloc: e) in tmain() 233 #pragma omp target data map(close,alloc: e) in main() 257 #pragma omp target map(always, alloc: e) in main() 261 #pragma omp target map(close, alloc: e) in main() [all …]
|