Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 268) sorted by relevance

1234567891011

/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dloop-micro-op-buffer-size-t99.ll49 store i32 %counter, i32* %ptr
50 %val = add i32 %counter, 5
53 %val1 = add i32 %counter, 6
56 %val2 = add i32 %counter, 7
59 %val3 = add i32 %counter, 8
62 %val4 = add i32 %counter, 9
65 %val5 = add i32 %counter, 10
71 %inc = add i32 %counter, 2
89 %val.2 = add i32 %counter.2, 5
92 %val1.2 = add i32 %counter.2, 6
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.destroy/
H A Ddestroy_at.pass.cpp24 TEST_CONSTEXPR Counted(int* counter) : counter_(counter) { ++*counter_; } in Counted()
31 TEST_CONSTEXPR VirtualCounted(int* counter) : counter_(counter) { ++*counter_; } in VirtualCounted()
37 TEST_CONSTEXPR DerivedCounted(int* counter) : VirtualCounted(counter) { } in DerivedCounted()
50 int counter = 0; in test_arrays() local
53 assert(counter == 3); in test_arrays()
57 assert(counter == 0); in test_arrays()
68 int counter = 0; in test_arrays() local
76 assert(counter == 0); in test_arrays()
91 int counter = 0; in test() local
94 assert(counter == 2); in test()
[all …]
H A Dranges_destroy_at.pass.cpp67 int counter = 0; in test() local
72 assert(counter == 2); in test()
75 assert(counter == 1); in test()
77 assert(counter == 0); in test()
86 int counter = 0; in test() local
91 assert(counter == 2); in test()
94 assert(counter == 1); in test()
96 assert(counter == 0); in test()
110 int counter = 0; in test_arrays() local
117 assert(counter == 3); in test_arrays()
[all …]
H A Dranges_destroy.pass.cpp59 int counter = 0; in test() local
65 assert(counter == N); in test()
68 assert(counter == 0); in test()
78 int counter = 0; in test() local
84 assert(counter == N); in test()
88 assert(counter == 0); in test()
110 int counter = 0; in test_arrays() local
122 assert(counter == 0); in test_arrays()
135 int counter = 0; in test_arrays() local
162 int counter = 0; in test_arrays() local
[all …]
H A Ddestroy.pass.cpp25 TEST_CONSTEXPR Counted(int* counter) : counter_(counter) { ++*counter_; } in Counted()
36 int counter = 0; in test_arrays() local
46 assert(counter == 5 * 3); in test_arrays()
50 assert(counter == 0); in test_arrays()
57 int counter = 0; in test_arrays() local
69 assert(counter == 5 * 3 * 2); in test_arrays()
73 assert(counter == 0); in test_arrays()
85 int counter = 0; in test() local
90 std::allocator_traits<Alloc>::construct(alloc, p, &counter); in test()
91 assert(counter == 5); in test()
[all …]
H A Ddestroy_n.pass.cpp25 TEST_CONSTEXPR Counted(int* counter) : counter_(counter) { ++*counter_; } in Counted()
36 int counter = 0; in test_arrays() local
46 assert(counter == 5 * 3); in test_arrays()
51 assert(counter == 0); in test_arrays()
58 int counter = 0; in test_arrays() local
70 assert(counter == 5 * 3 * 2); in test_arrays()
75 assert(counter == 0); in test_arrays()
87 int counter = 0; in test() local
92 std::allocator_traits<Alloc>::construct(alloc, p, &counter); in test()
93 assert(counter == 5); in test()
[all …]
H A Dranges_destroy_n.pass.cpp55 int counter = 0; in test() local
59 Traits::construct(alloc, out + i, counter); in test()
61 assert(counter == N); in test()
64 assert(counter == 0); in test()
86 int counter = 0; in test_arrays() local
92 Traits::construct(alloc, std::addressof(array_ref[j]), counter); in test_arrays()
95 assert(counter == N * M); in test_arrays()
98 assert(counter == 0); in test_arrays()
112 int counter = 0; in test_arrays() local
123 assert(counter == N * A * B); in test_arrays()
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/PlaceSafepoints/
H A Dfinite-loops.ll20 %counter = phi i32 [ 0 , %entry ], [ %counter.inc , %loop ]
21 %counter.inc = add i32 %counter, 1
22 %counter.cmp = icmp slt i32 %counter.inc, 16
43 %counter.inc = add i32 %counter, 1
44 %counter.cmp = icmp slt i32 %counter.inc, 16
68 %counter.inc = add nsw i8 %counter, 1
69 %counter.cmp = icmp slt i8 %counter.inc, %upper
97 %counter.inc = add i64 %counter, 1
98 %counter.cmp = icmp slt i64 %counter.inc, %upper
127 %counter.inc = add i64 %counter, 1
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/LoopUnroll/X86/
H A Dstore_cost.ll31 store i32 %counter, i32* %ptr
32 %val = add i32 %counter, 5
35 %val1 = add i32 %counter, 6
38 %val2 = add i32 %counter, 7
41 %val3 = add i32 %counter, 8
44 %val4 = add i32 %counter, 9
47 %val5 = add i32 %counter, 10
53 %inc = add i32 %counter, 2
71 %val.2 = add i32 %counter.2, 5
74 %val1.2 = add i32 %counter.2, 6
[all …]
/llvm-project-15.0.7/libcxxabi/test/
H A Dunwind_06.pass.cpp27 volatile int counter; variable
32 for (counter = 100; counter; counter = counter - 1) in try1()
42 for (counter = 100; counter; counter = counter - 1) in try2()
53 for (counter = 100; counter; counter = counter - 1) in try3()
65 for (counter = 100; counter; counter = counter - 1) in try4()
78 for (counter = 100; counter; counter = counter - 1) in try5()
92 for (counter = 100; counter; counter = counter - 1) in try6()
107 for (counter = 100; counter; counter = counter - 1) in try7()
123 for (counter = 100; counter; counter = counter - 1) in try8()
/llvm-project-15.0.7/llvm/test/Analysis/LegacyDivergenceAnalysis/AMDGPU/
H A Dphi-undef.ll5 ; CHECK: {{^ *}}%counter =
6 ; CHECK-NEXT: DIVERGENT: %break = icmp sge i32 %counter, %bound
8 ; CHECK: {{^ *}}%counter.next =
9 ; CHECK: {{^ *}}%counter.footer =
11 ; Note: %counter is not divergent!
17 %counter = phi i32 [ 0, %entry ], [ %counter.footer, %footer ]
18 %break = icmp sge i32 %counter, %bound
22 %counter.next = add i32 %counter, 1
26 %counter.footer = phi i32 [ %counter.next, %body ], [ undef, %header ]
/llvm-project-15.0.7/llvm/test/Analysis/DivergenceAnalysis/AMDGPU/
H A Dphi-undef.ll5 ; CHECK: {{^ *}}%counter =
6 ; CHECK-NEXT: DIVERGENT: %break = icmp sge i32 %counter, %bound
8 ; CHECK: {{^ *}}%counter.next =
9 ; CHECK: {{^ *}}%counter.footer =
11 ; Note: %counter is not divergent!
17 %counter = phi i32 [ 0, %entry ], [ %counter.footer, %footer ]
18 %break = icmp sge i32 %counter, %bound
22 %counter.next = add i32 %counter, 1
26 %counter.footer = phi i32 [ %counter.next, %body ], [ undef, %header ]
/llvm-project-15.0.7/flang/runtime/
H A Dragged.cpp26 for (std::int64_t counter{0}; counter < rank; ++counter) { in RaggedArrayAllocate() local
27 size *= extentVector[counter]; in RaggedArrayAllocate()
52 for (std::size_t counter{0u}; counter < end && linearExtent > 0; in RaggedArrayDeallocate() local
53 ++counter) { in RaggedArrayDeallocate()
54 linearExtent *= raggedArrayHeader->extentPointer[counter]; in RaggedArrayDeallocate()
56 for (std::size_t counter{0u}; counter < linearExtent; ++counter) { in RaggedArrayDeallocate() local
58 raggedArrayHeader->bufferPointer)[counter]); in RaggedArrayDeallocate()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/
H A Dranges.reverse.pass.cpp79 int* counter; member
80 constexpr SwapCounter(int* counter_) : counter(counter_) {} in SwapCounter()
81 friend constexpr void swap(SwapCounter& lhs, SwapCounter&) { ++*lhs.counter; } in swap()
104 int counter = 0; in test() local
105 SwapCounter a[] = {&counter, &counter, &counter, &counter}; in test()
107 assert(counter == 2); in test()
110 int counter = 0; in test() local
111 SwapCounter a[] = {&counter, &counter, &counter, &counter}; in test()
113 assert(counter == 2); in test()
/llvm-project-15.0.7/llvm/lib/Support/BLAKE3/
H A Dblake3_dispatch.c139 uint8_t block_len, uint64_t counter, in blake3_compress_in_place() argument
152 blake3_compress_in_place_sse41(cv, block, block_len, counter, flags); in blake3_compress_in_place()
158 blake3_compress_in_place_sse2(cv, block, block_len, counter, flags); in blake3_compress_in_place()
181 blake3_compress_xof_sse41(cv, block, block_len, counter, flags, out); in blake3_compress_xof()
187 blake3_compress_xof_sse2(cv, block, block_len, counter, flags, out); in blake3_compress_xof()
204 blake3_hash_many_avx512(inputs, num_inputs, blocks, key, counter, in blake3_hash_many()
212 blake3_hash_many_avx2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many()
220 blake3_hash_many_sse41(inputs, num_inputs, blocks, key, counter, in blake3_hash_many()
228 blake3_hash_many_sse2(inputs, num_inputs, blocks, key, counter, in blake3_hash_many()
237 blake3_hash_many_neon(inputs, num_inputs, blocks, key, counter, in blake3_hash_many()
[all …]
H A Dblake3_impl.h150 INLINE uint32_t counter_low(uint64_t counter) { return (uint32_t)counter; } in counter_low() argument
152 INLINE uint32_t counter_high(uint64_t counter) { in counter_high() argument
153 return (uint32_t)(counter >> 32); in counter_high()
196 uint8_t block_len, uint64_t counter,
245 uint8_t block_len, uint64_t counter,
250 uint64_t counter, bool increment_counter,
263 uint8_t block_len, uint64_t counter,
268 uint64_t counter, bool increment_counter,
276 uint64_t counter, bool increment_counter,
290 uint8_t block_len, uint64_t counter,
[all …]
/llvm-project-15.0.7/lldb/test/API/functionalities/data-formatter/data-formatter-python-synth/
H A Dftsp.py3 counter = 0 variable
32 global counter
33 self.count = counter
34 counter = counter + 1
39 global counter
40 counter = 0
/llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/allow-retries/
H A Dsucceeds-within-limit.py12 with open(counter_file, 'w') as counter:
13 counter.write("1")
16 with open(counter_file, 'r') as counter:
17 num = int(counter.read())
22 with open(counter_file, 'w') as counter:
23 counter.write(str(num + 1))
/llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/test_retry_attempts/
H A Dtest.py10 with open(counter_file, 'w') as counter:
11 counter.write("1")
14 with open(counter_file, 'r') as counter:
15 num = int(counter.read())
20 with open(counter_file, 'w') as counter:
21 counter.write(str(num + 1))
/llvm-project-15.0.7/compiler-rt/test/BlocksRuntime/
H A Ddispatch_async.c19 __block CFIndex counter; in EnqueueStuff() local
24 counter = 0; in EnqueueStuff()
30 counter++; in EnqueueStuff()
33 counter--; in EnqueueStuff()
34 if(counter == 0) { in EnqueueStuff()
39 if(counter == 0) { in EnqueueStuff()
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dunroll.ll19 %counter = phi i32 [0, %entry], [%inc, %loop.inc]
24 store i32 %counter, i32 addrspace(5)* %ptr
28 %inc = add i32 %counter, 1
29 %1 = icmp sge i32 %counter, 32
50 %counter = phi i32 [0, %entry], [%inc, %loop.inc]
54 %ptr_lds = getelementptr i32, i32 addrspace(3)* %lds, i32 %counter
61 %inc = add i32 %counter, 1
62 %cond = icmp sge i32 %counter, 128
117 %counter = phi i32 [0, %entry], [%inc, %loop.inc]
128 %inc = add i32 %counter, 1
[all …]
/llvm-project-15.0.7/libc/test/integration/src/threads/
H A Dthrd_test.cpp17 static int counter = 0; variable
19 ++counter; in thread_func()
24 for (counter = 0; counter <= thread_count;) { in create_and_join()
26 int old_counter_val = counter; in create_and_join()
32 ASSERT_EQ(counter, old_counter_val + 1); in create_and_join()
/llvm-project-15.0.7/libc/test/integration/src/pthread/
H A Dpthread_test.cpp16 static int counter = 0; variable
18 ++counter; in thread_func()
23 for (counter = 0; counter <= thread_count;) { in create_and_join()
25 int old_counter_val = counter; in create_and_join()
33 ASSERT_EQ(counter, old_counter_val + 1); in create_and_join()
/llvm-project-15.0.7/compiler-rt/test/tsan/Linux/
H A Dcheck_preinit.cpp20 volatile int counter = 0; variable
26 lib_constructor_call = ++counter; in LibConstructor()
31 extern int counter;
39 bin_constructor_call = ++counter; in BinConstructor()
45 tsan_init_call = ++counter; in OnInitialize()
/llvm-project-15.0.7/openmp/runtime/test/parallel/
H A Domp_nested.c19 int counter = 0; in test_omp_nested() local
25 #pragma omp parallel shared(counter) in test_omp_nested()
28 counter++; in test_omp_nested()
32 counter--; in test_omp_nested()
35 return (counter != 0); in test_omp_nested()

1234567891011