Home
last modified time | relevance | path

Searched full:allocated (Results 1 – 25 of 1686) sorted by relevance

12345678910>>...68

/llvm-project/flang/test/Semantics/
H A Dallocated.f902 ! Tests for the ALLOCATED() intrinsic
38 print *, allocated(x_alloc)
39 print *, allocated(char_alloc)
40 print *, allocated(dt_alloc)
41 print *, allocated(dt_not_alloc(3)%alloc)
42 print *, allocated(dt_alloc(3)%alloc)
43 print *, allocated(coarray_alloc)
44 print *, allocated(coarray_alloc[2,3])
45 print *, allocated(t2_not_alloc%coarray_alloc)
46 print *, allocated(t2_not_alloc%coarray_alloc[2])
[all …]
H A Dresolve89.f904 ! the intrinsic functions ALLOCATED, ASSOCIATED, EXTENDS_TYPE_OF, PRESENT,
10 ! functions or the intrinsic functions ALLOCATED, ASSOCIATED, EXTENDS_TYPE_OF,
43 real, dimension(merge(1, 2, allocated(allocArg))) :: realVar1
55 real, dimension(merge(1, 2, allocated(mVar))) :: rVar
77 …!ERROR: Invalid specification expression: reference to intrinsic 'allocated' not allowed for deriv…
78 real, dimension(merge(1, 2, allocated(allocArg))) :: realField1
133 …!ERROR: Invalid specification expression: reference to intrinsic 'allocated' not allowed for deriv…
134 character(merge(1, 2, allocated(allocArg))) :: allocField
146 …!ERROR: Invalid specification expression: reference to intrinsic 'allocated' not allowed for deriv…
147 type(paramType(merge(1, 2, allocated(allocArg)))) :: allocField
/llvm-project/clang/test/SemaCXX/
H A Ddelete.cpp14 int *a = new int[5]; // expected-note4 {{allocated with 'new[]' here}}
21 delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?}} in ~S()
22 delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?}} in ~S()
23 delete[] c; // expected-warning {{'delete[]' applied to a pointer that was allocated with 'new'; did you mean 'delete'?}} in ~S()
30 delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?}} in f()
31 delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?}} in f()
35 : b(new int[1]), c(new int) {} // expected-note3 {{allocated with 'new[]' here}} in S()
36 // expected-note@-1 {{allocated with 'new' here}}
39 : b(new int[i]), c(new int) {} // expected-note3 {{allocated with 'new[]' here}} in S()
40 // expected-note@-1 {{allocated wit in S()
[all...]
/llvm-project/compiler-rt/lib/gwp_asan/tests/
H A Diterate.cpp17 std::vector<std::pair<void *, size_t>> Allocated; in TEST_F() local
19 Allocated.push_back({GPA.allocate(size), size}); in TEST_F()
28 std::sort(Allocated.begin(), Allocated.end()); in TEST_F()
31 void *Base = Allocated[0].first; in TEST_F()
32 size_t Size = reinterpret_cast<size_t>(Allocated.back().first) - in TEST_F()
45 EXPECT_EQ(Allocated, Found); in TEST_F()
49 Size = reinterpret_cast<size_t>(Allocated.back().first) - in TEST_F()
50 reinterpret_cast<size_t>(Base); // Allocated.back() is out of range. in TEST_F()
64 GPA.deallocate(Allocated.back().first); in TEST_F()
65 Allocated.pop_back(); in TEST_F()
[all …]
/llvm-project/llvm/test/tools/llvm-pdbutil/
H A Dexplain-dbi-stream.test30 CHECK-NEXT: Address is in block 15 (allocated).
38 CHECK-NEXT: Address is in block 15 (allocated).
46 CHECK-NEXT: Address is in block 15 (allocated).
54 CHECK-NEXT: Address is in block 15 (allocated).
62 CHECK-NEXT: Address is in block 15 (allocated).
70 CHECK-NEXT: Address is in block 15 (allocated).
78 CHECK-NEXT: Address is in block 15 (allocated).
86 CHECK-NEXT: Address is in block 15 (allocated).
94 CHECK-NEXT: Address is in block 15 (allocated).
102 CHECK-NEXT: Address is in block 15 (allocated).
[all …]
H A Dexplain.test37 ZERO-NEXT: Address is in block 0 (allocated).
42 FORTY-NEXT: Address is in block 0 (allocated).
48 SIXTY-NEXT: Address is in block 0 (allocated).
53 FPM1-NEXT: Address is in block 1 (allocated).
56 FPM1-NEXT: Status = 00000011 (Note: 0 = allocated, 1 = free)
59 EXTRANEOUSFPM-NEXT: Address is in block 1 (allocated).
64 FPM2-NEXT: Address is in block 2 (allocated).
67 FPM2-NEXT: Status = 00011100 (Note: 0 = allocated, 1 = free)
73 STREAM-NEXT: Address is in block 7 (allocated).
77 STREAMDIR-NEXT: Address is in block 26 (allocated).
[all …]
/llvm-project/clang/test/Analysis/
H A Dfree.cpp20 // expected-warning@-1{{Argument to 'free()' is the address of the local variable 'a', which is not memory allocated by 'malloc()'}} in t1a()
27 // expected-warning@-1{{Argument to 'free()' is the address of the local variable 'a', which is not memory allocated by 'malloc()'}} in t1b()
34 // expected-warning@-1{{Argument to 'free()' is the address of the local variable 'a', which is not memory allocated by 'malloc()'}} in t2a()
41 // expected-warning@-1{{Argument to 'free()' is the address of the local variable 'a', which is not memory allocated by 'malloc()'}} in t2b()
48 // expected-warning@-1{{Argument to 'free()' is the address of the static variable 'a', which is not memory allocated by 'malloc()'}} in t3a()
55 // expected-warning@-1{{Argument to 'free()' is the address of the static variable 'a', which is not memory allocated by 'malloc()'}} in t3b()
79 // expected-warning@-1{{Argument to 'free()' is a constant address (1000), which is not memory allocated by 'malloc()'}} in t6a()
85 // expected-warning@-1{{Argument to 'free()' is a constant address (1000), which is not memory allocated by 'malloc()'}} in t6b()
110 // expected-warning@-1{{Argument to 'free()' is the address of the label 'label', which is not memory allocated by 'malloc()'}} in t9a()
117 // expected-warning@-1{{Argument to 'free()' is the address of the label 'label', which is not memory allocated b in t9b()
[all...]
H A DMismatchedDeallocator-checker-test.mm37 delete p; // expected-warning{{Memory allocated by 'malloc()' should be deallocated by 'free()', not 'delete'}}
43 delete q; // expected-warning{{Memory allocated by 'realloc()' should be deallocated by 'free()', not 'delete'}}
48 delete p; // expected-warning{{Memory allocated by 'calloc()' should be deallocated by 'free()', not 'delete'}}
53 delete p; // expected-warning{{Memory allocated by 'strdup()' should be deallocated by 'free()', not 'delete'}}
58 delete p; // expected-warning{{Memory allocated by 'my_malloc()' should be deallocated by 'free()', not 'delete'}}
63 operator delete(p); // expected-warning{{Memory allocated by 'malloc()' should be deallocated by 'free()', not 'operator delete'}}
68 delete[] p; // expected-warning{{Memory allocated by 'malloc()' should be deallocated by 'free()', not 'delete[]'}}
73 operator delete[](p); // expected-warning{{Memory allocated by 'malloc()' should be deallocated by 'free()', not 'operator delete[]'}}
88 my_free(p); // expected-warning{{Memory allocated by 'my_malloc1()' should be deallocated by function that takes ownership of 'malloc1', not 'my_free()', which takes ownership of 'malloc'}}
93 my_free1(p); // expected-warning{{Memory allocated b
[all...]
H A Dplacement-new.cpp12 …warning{{Storage provided to placement new is only 2 bytes, whereas the allocated type requires 8 … in f()
19 …warning{{Storage provided to placement new is only 2 bytes, whereas the allocated type requires 8 … in f()
26 …warning{{Storage provided to placement new is only 2 bytes, whereas the allocated type requires 8 … in f()
37 …warning{{Storage provided to placement new is only 2 bytes, whereas the allocated type requires 8 … in f()
54 …warning{{Storage provided to placement new is only 2 bytes, whereas the allocated type requires 8 … in g()
65 …warning{{Storage provided to placement new is only 2 bytes, whereas the allocated type requires 8 … in g()
83 …warning{{Storage provided to placement new is only 3 bytes, whereas the allocated type requires 8 … in f()
91 …warning{{Storage provided to placement new is only 4 bytes, whereas the allocated type requires 8 … in f()
99 …warning{{Storage provided to placement new is only 0 bytes, whereas the allocated type requires 8 … in f()
107 …arning{{Storage provided to placement new is only -4 bytes, whereas the allocated type requires 8 … in f()
[all …]
H A Dfree.c16 // expected-warning@-1{{Argument to 'free()' is the address of the local variable 'a', which is not memory allocated by 'malloc()'}} in t1()
23 // expected-warning@-1{{Argument to 'free()' is the address of the local variable 'a', which is not memory allocated by 'malloc()'}} in t2()
30 // expected-warning@-1{{Argument to 'free()' is the address of the static variable 'a', which is not memory allocated by 'malloc()'}} in t3()
45 // expected-warning@-1{{Argument to 'free()' is a constant address (1000), which is not memory allocated by 'malloc()'}} in t6()
61 // expected-warning@-1{{Argument to 'free()' is the address of the label 'label', which is not memory allocated by 'malloc()'}} in t9()
67 // expected-warning@-1{{Argument to 'free()' is the address of the function 't10', which is not memory allocated by 'malloc()'}} in t10()
73 free(p); // expected-warning {{Memory allocated by 'alloca()' should not be deallocated}} in t11()
78 free(p); // expected-warning {{Memory allocated by 'alloca()' should not be deallocated}} in t12()
83 // expected-warning@-1{{Argument to 'free()' is a block, which is not memory allocated by 'malloc()'}} in t13()
89 // expected-warning@-1{{Argument to 'free()' is the address of the parameter 'a', which is not memory allocated b in t14()
[all...]
H A DNewDeleteLeaks.cpp24 // allocated memory, but in this instance, its also the only function with
32 sink(new int(5)); // expected-note {{Memory is allocated}} in foo()
49 int *ptr = new int(5); // expected-note {{Memory is allocated}} in foo()
66 int *ptr = (int *)malloc(sizeof(int)); // expected-note {{Memory is allocated}} in foo()
84 int *ptr = (int *)malloc(sizeof(int)); // expected-note {{Memory is allocated}} in foo()
102 int *ptr = new int(5); // expected-note {{Memory is allocated}} in foo()
123 int *ptr = new int(5); // expected-note {{Memory is allocated}} in foo()
141 int *ptr = new int(5); // expected-note {{Memory is allocated}} in foo()
155 int *ptr = new int(5); // expected-note {{Memory is allocated}} in foo()
173 int *ptr = new int(5); // expected-note {{Memory is allocated}} in foo()
[all …]
/llvm-project/compiler-rt/lib/sanitizer_common/tests/
H A Dstandalone_malloc_test.cpp21 vector<pair<char *, size_t> > allocated; in MallocThread() local
22 allocated.reserve(kNumIters); in MallocThread()
36 allocated.push_back(make_pair(x, size)); in MallocThread()
39 if (allocated.empty()) continue; in MallocThread()
40 size_t slot = i % allocated.size(); in MallocThread()
41 char *p = allocated[slot].first; in MallocThread()
43 size_t size = allocated[slot].second; in MallocThread()
45 swap(allocated[slot], allocated.back()); in MallocThread()
46 allocated.pop_back(); in MallocThread()
54 for (size_t i = 0; i < allocated.size(); i++) in MallocThread()
[all …]
H A Dsanitizer_allocator_test.cpp57 // space that is always available. Thus, a dynamically allocated address space
233 std::vector<void *> allocated; in TestSizeClassAllocator()
250 allocated.push_back(x); in TestSizeClassAllocator()
265 for (uptr i = 0; i < allocated.size(); i++) { in TestSizeClassAllocator()
266 void *x = allocated[i]; in TestSizeClassAllocator()
272 allocated.clear(); in TestSizeClassAllocator()
378 void *allocated[kNumAllocs]; in SizeClassAllocatorMetadataStress()
382 allocated[i] = x; in SizeClassAllocatorMetadataStress()
388 void *m = a->GetMetaData(allocated[idx]); in SizeClassAllocatorMetadataStress()
392 cache.Deallocate(a, 1 + i % (Allocator::kNumClasses - 1), allocated[ in SizeClassAllocatorMetadataStress()
232 std::vector<void *> allocated; TestSizeClassAllocator() local
377 void *allocated[kNumAllocs]; SizeClassAllocatorMetadataStress() local
619 char *allocated[kNumAllocs]; TEST() local
711 std::vector<void*> allocated; TestCombinedAllocator() local
803 void *allocated[kNumAllocs]; TestSizeClassAllocatorLocalCache() local
981 std::vector<void *> allocated; TestSizeClassAllocatorIteration() local
1042 char *allocated[kNumAllocs]; TEST() local
1070 char *allocated[kNumAllocs]; TEST() local
[all...]
/llvm-project/clang/test/SemaObjC/
H A Dinvalid-objc-decls-1.m4 Super s1; // expected-error{{interface type cannot be statically allocated}}
6 extern Super e1; // expected-error{{interface type cannot be statically allocated}}
9 Super s1; // expected-error{{interface type cannot be statically allocated}}
16 Super ivar1; // expected-error{{interface type cannot be statically allocated}}
21 Super objField; // expected-error{{interface type cannot be statically allocated}}
26 Super<P1> ivar1; // expected-error{{interface type cannot be statically allocated}}
32 Super p1; // expected-error{{interface type cannot be statically allocated}}
39 …donly) NSMutableSet annotations; // expected-error{{interface type cannot be statically allocated}}
/llvm-project/compiler-rt/test/asan/TestCases/Posix/
H A Dnew_array_cookie_with_new_from_class.cpp18 static void *allocated; member
20 assert(!allocated); in Allocate()
21 return allocated = ::new char[s]; in Allocate()
26 void *Foo::allocated; member in Foo
35 fprintf(stderr, "alloc: %p\n", Foo::allocated); in main()
37 reinterpret_cast<uintptr_t>(Foo::allocated) + sizeof(void*)); in main()
38 *reinterpret_cast<uintptr_t*>(Foo::allocated) = 42; in main()
/llvm-project/llvm/test/ObjectYAML/DXContainer/
H A DSigElements.yaml40 Allocated: true
52 Allocated: true
64 Allocated: true
75 Allocated: true
109 # CHECK-NEXT: Allocated: true
121 # CHECK-NEXT: Allocated: true
133 # CHECK-NEXT: Allocated: true
144 # CHECK-NEXT: Allocated: true
/llvm-project/llvm/test/Bitcode/
H A Dallocated.ll6 …+}}, size: 32, align: 32, elements: !{{[0-9]+}}, dataLocation: !{{[0-9]+}}, allocated: !{{[0-9]+}})
7 …}, dataLocation: !DIExpression(DW_OP_push_object_address, DW_OP_deref), allocated: !DIExpression(D…
9 ; ModuleID = 'allocated.f90'
10 source_filename = "/dir/allocated.ll"
18 !3 = !DIFile(filename: "allocated.f90", directory: "/dir")
21 …TAG_array_type, baseType: !7, size: 32, align: 32, elements: !8, dataLocation: !10, allocated: !15)
32 …8, dataLocation: !DIExpression(DW_OP_push_object_address, DW_OP_deref), allocated: !DIExpression(D…
/llvm-project/flang/docs/
H A Dfstack-arrays.md4 unknown size, to be allocated from stack memory. Gfortran enables this flag by
18 Another approach would be to modify each place in which arrays are allocated on
21 with their associated `fir.freemem`. In general, the lifetimes of heap allocated
49 where temporary arrays are allocated on the heap:
61 Memory is allocated for a temporary array in `allocateArrayTemp()`. This
90 FIR code passes the allocated memory through `fir.result`, resulting in a
91 different SSA value to be allocated and freed, causing the analysis not to
92 realise that the allocated memory is freed. The most convenient solution here
97 Code generated for array constructors uses `realloc()` to grow the allocated
143 Arrays allocated by an `allocate` statement in source code should not be moved
[all …]
/llvm-project/compiler-rt/test/asan/TestCases/Linux/
H A Daligned_delete_test.cpp64 // CHECK: alignment of the allocated type: 128 bytes; in main()
71 // CHECK: alignment of the allocated type: 128 bytes; in main()
78 // CHECK: alignment of the allocated type: 128 bytes; in main()
85 // CHECK: alignment of the allocated type: 128 bytes; in main()
94 // CHECK: alignment of the allocated type: 256 bytes; in main()
101 // CHECK: alignment of the allocated type: default-aligned; in main()
108 // CHECK: alignment of the allocated type: 256 bytes; in main()
115 // CHECK: alignment of the allocated type: 256 bytes; in main()
122 // CHECK: alignment of the allocated type: default-aligned; in main()
129 // CHECK: alignment of the allocated typ in main()
[all...]
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dmultiple-new-in-one-expression.rst7 allocated memory by the first ``new`` may leak if the second allocation fails
36 allocated objects can be self-destructing objects.
64 // Allocation of 'B'/'A' may fail after memory for 'A'/'B' was allocated.
70 …// Allocation of 'B'/'A' may fail after memory for 'A'/'B' was allocated but not yet passed to fun…
73 // Allocation of 'B' may fail after memory for 'A' was allocated.
74 … // From C++17 on memory for 'B' is allocated first but still may leak if allocation of 'A' fails.
78 …// 'new B'/'new A' may fail after memory for 'A'/'B' was allocated but not assigned to 'PtrA'/'Ptr…
82 …// If 'new B' fails the allocated memory for 'A' is supposedly handled correctly because function …
/llvm-project/mlir/tools/mlir-vulkan-runner/
H A Dvulkan-runtime-wrappers.cpp
/llvm-project/clang/test/CodeGenCXX/
H A Dmicrosoft-abi-array-cookies.cpp27 // CHECK: [[ALLOCATED:%.*]] = call noalias noundef nonnull ptr @"??_U@YAPAXI@Z"(i32 noundef 46) in check_array_cookies_simple()
29 // CHECK: store i32 42, ptr [[ALLOCATED]] in check_array_cookies_simple()
30 // CHECK: [[ARRAY:%.*]] = getelementptr inbounds i8, ptr [[ALLOCATED]], i32 4 in check_array_cookies_simple()
46 // CHECK: [[ALLOCATED:%.*]] = call noalias noundef nonnull ptr @"??_U@YAPAXI@Z"(i32 noundef 344) in check_array_cookies_aligned()
48 // CHECK: store i32 42, ptr [[ALLOCATED]] in check_array_cookies_aligned()
49 // CHECK: [[ARRAY:%.*]] = getelementptr inbounds i8, ptr [[ALLOCATED]], i32 8 in check_array_cookies_aligned()
/llvm-project/llvm/include/llvm/CodeGen/
H A DCallingConvLower.h179 // True if arguments should be allocated at negative offsets.
218 // First register allocated for current parameter.
221 // First after last register allocated for current parameter.
244 /// Returns the size of the currently allocated portion of the stack.
255 /// allocated.
304 /// A shadow allocated register is a register that was allocated
306 /// \returns true if the register was allocated as shadow or false otherwise.
314 /// in the set, or Regs.size() if they are all allocated.
329 /// as allocated
[all...]
/llvm-project/libcxxabi/test/
H A Dtest_fallback_malloc.pass.cpp99 std::printf("Allocated %zu 32 byte chunks\n", ptrs.size()); in exhaustion_test1()
108 std::printf("Allocated %zu 32 byte chunks\n", ptrs.size()); in exhaustion_test1()
116 std::printf("Allocated %zu 32 byte chunks\n", ptrs.size()); in exhaustion_test1()
131 std::printf("Allocated %zu { 32, 48, 72, 108, 162 ... } byte chunks\n", in exhaustion_test2()
142 std::printf("Allocated %zu { 32, 48, 72, 108, 162 ... } byte chunks\n", in exhaustion_test2()
151 std::printf("Allocated %zu { 32, 48, 72, 108, 162 ... } byte chunks\n", in exhaustion_test2()
168 std::printf("Allocated %zu chunks\n", ptrs.size()); in exhaustion_test3()
178 std::printf("Allocated %zu chunks\n", ptrs.size()); in exhaustion_test3()
186 std::printf("Allocated %zu chunks\n", ptrs.size()); in exhaustion_test3()
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_libbacktrace.cpp44 uptr size, allocated; member
51 if (needed > data->allocated) { in CplusV3DemangleCallback()
52 data->allocated *= 2; in CplusV3DemangleCallback()
53 if (needed > data->allocated) in CplusV3DemangleCallback()
54 data->allocated = needed; in CplusV3DemangleCallback()
55 char *buf = (char *)InternalAlloc(data->allocated); in CplusV3DemangleCallback()
72 data.allocated = 0; in CplusV3Demangle()
75 if (data.size + 64 > data.allocated) in CplusV3Demangle()

12345678910>>...68