Home
last modified time | relevance | path

Searched refs:loop (Results 1 – 25 of 5078) sorted by relevance

12345678910>>...204

/external/llvm-project/clang/test/Parser/
Dpragma-loop.cpp8 #pragma clang loop vectorize_width(V) interleave_count(I) in test_nontype_template_param()
13 #pragma clang loop vectorize_width(V + 4) interleave_count(I + 4) in test_nontype_template_param()
21 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_vectorize()
26 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop vectorize_width(V … in test_nontype_template_vectorize()
34 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop interleave_count(… in test_nontype_template_interleave()
39 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop interleave_count(2… in test_nontype_template_interleave()
47 …nvalid argument of type 'char'; expected an integer type}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_char()
55 …nvalid argument of type 'bool'; expected an integer type}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_bool()
63 …/* expected-error {{use of undeclared identifier 'Vec'}} */ #pragma clang loop vectorize_width(Vec… in test_nontype_template_badarg()
64 …/* expected-error {{use of undeclared identifier 'Int'}} */ #pragma clang loop vectorize_width(V) … in test_nontype_template_badarg()
[all …]
/external/clang/test/Parser/
Dpragma-loop.cpp8 #pragma clang loop vectorize_width(V) interleave_count(I) in test_nontype_template_param()
13 #pragma clang loop vectorize_width(V + 4) interleave_count(I + 4) in test_nontype_template_param()
21 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_vectorize()
26 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop vectorize_width(V … in test_nontype_template_vectorize()
34 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop interleave_count(… in test_nontype_template_interleave()
39 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop interleave_count(2… in test_nontype_template_interleave()
47 …nvalid argument of type 'char'; expected an integer type}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_char()
55 …nvalid argument of type 'bool'; expected an integer type}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_bool()
63 …/* expected-error {{use of undeclared identifier 'Vec'}} */ #pragma clang loop vectorize_width(Vec… in test_nontype_template_badarg()
64 …/* expected-error {{use of undeclared identifier 'Int'}} */ #pragma clang loop vectorize_width(V) … in test_nontype_template_badarg()
[all …]
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_queues.py18 self.loop = self.new_test_loop()
36 loop = self.new_test_loop(gen)
39 q = asyncio.Queue(loop=loop)
45 q = asyncio.Queue(loop=loop)
47 loop.create_task(q.get())
55 loop.run_until_complete(add_getter())
58 q = asyncio.Queue(maxsize=1, loop=loop)
61 loop.create_task(q.put(2))
69 loop.run_until_complete(add_putter())
70 q = asyncio.Queue(loop=loop)
[all …]
Dtest_base_events.py154 self.loop = base_events.BaseEventLoop()
155 self.loop._selector = mock.Mock()
156 self.loop._selector.select.return_value = ()
157 self.set_event_loop(self.loop)
163 self.loop._make_socket_transport, m, m)
166 self.loop._make_ssl_transport, m, m, m, m)
169 self.loop._make_datagram_transport, m, m)
171 NotImplementedError, self.loop._process_events, [])
173 NotImplementedError, self.loop._write_to_self)
176 self.loop._make_read_pipe_transport, m, m)
[all …]
Dtest_streams.py32 self.loop = asyncio.new_event_loop()
33 self.set_event_loop(self.loop)
37 test_utils.run_briefly(self.loop)
39 self.loop.close()
50 self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))
52 reader, writer = self.loop.run_until_complete(open_connection_fut)
55 data = self.loop.run_until_complete(f)
58 data = self.loop.run_until_complete(f)
66 loop=self.loop)
73 loop=self.loop)
[all …]
Dtest_locks.py27 self.loop = self.new_test_loop()
30 loop = mock.Mock()
32 lock = asyncio.Lock(loop=loop)
33 self.assertIs(lock._loop, loop)
36 lock = asyncio.Lock(loop=self.loop)
37 self.assertIs(lock._loop, self.loop)
40 asyncio.set_event_loop(self.loop)
42 self.assertIs(lock._loop, self.loop)
46 lock = asyncio.Lock(loop=self.loop)
50 self.loop.run_until_complete(lock.acquire())
[all …]
Dtest_tasks.py111 def new_task(self, loop, coro, name='TestTask'): argument
112 return self.__class__.Task(coro, loop=loop, name=name)
114 def new_future(self, loop): argument
115 return self.__class__.Future(loop=loop)
119 self.loop = self.new_test_loop()
120 self.loop.set_task_factory(self.new_task)
121 self.loop.create_future = lambda: self.new_future(self.loop)
126 t = self.new_task(self.loop, coro())
134 self.loop.run_until_complete(t)
139 t = self.new_task(self.loop, coro())
[all …]
Dtest_events.py58 loop = asyncio.new_event_loop()
59 asyncio.set_event_loop(loop)
60 return loop.run_until_complete(doit())
81 def __init__(self, loop=None): argument
85 if loop is not None:
86 self.connected = loop.create_future()
87 self.done = loop.create_future()
120 def __init__(self, loop=None): argument
123 if loop is not None:
124 self.done = loop.create_future()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/opt/loop_optimizations/
Dnested_loops.cpp196 static void CheckLoopBlocks(Loop* loop, in CheckLoopBlocks() argument
198 SCOPED_TRACE("Check loop " + std::to_string(loop->GetHeaderBlock()->id())); in CheckLoopBlocks()
199 for (uint32_t bb_id : loop->GetBlocks()) { in CheckLoopBlocks()
203 EXPECT_FALSE(loop->IsInsideLoop(loop->GetMergeBlock())); in CheckLoopBlocks()
362 Loop* loop = ld[23]; in TEST_F() local
363 CheckLoopBlocks(loop, &basic_block_in_loop); in TEST_F()
365 EXPECT_TRUE(loop->HasNestedLoops()); in TEST_F()
366 EXPECT_FALSE(loop->IsNested()); in TEST_F()
367 EXPECT_EQ(loop->GetDepth(), 1u); in TEST_F()
368 EXPECT_EQ(std::distance(loop->begin(), loop->end()), 1u); in TEST_F()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/
Dnested_loops.cpp196 static void CheckLoopBlocks(Loop* loop, in CheckLoopBlocks() argument
198 SCOPED_TRACE("Check loop " + std::to_string(loop->GetHeaderBlock()->id())); in CheckLoopBlocks()
199 for (uint32_t bb_id : loop->GetBlocks()) { in CheckLoopBlocks()
203 EXPECT_FALSE(loop->IsInsideLoop(loop->GetMergeBlock())); in CheckLoopBlocks()
362 Loop* loop = ld[23]; in TEST_F() local
363 CheckLoopBlocks(loop, &basic_block_in_loop); in TEST_F()
365 EXPECT_TRUE(loop->HasNestedLoops()); in TEST_F()
366 EXPECT_FALSE(loop->IsNested()); in TEST_F()
367 EXPECT_EQ(loop->GetDepth(), 1u); in TEST_F()
368 EXPECT_EQ(std::distance(loop->begin(), loop->end()), 1u); in TEST_F()
[all …]
/external/deqp-deps/SPIRV-Tools/test/opt/loop_optimizations/
Dnested_loops.cpp196 static void CheckLoopBlocks(Loop* loop, in CheckLoopBlocks() argument
198 SCOPED_TRACE("Check loop " + std::to_string(loop->GetHeaderBlock()->id())); in CheckLoopBlocks()
199 for (uint32_t bb_id : loop->GetBlocks()) { in CheckLoopBlocks()
203 EXPECT_FALSE(loop->IsInsideLoop(loop->GetMergeBlock())); in CheckLoopBlocks()
362 Loop* loop = ld[23]; in TEST_F() local
363 CheckLoopBlocks(loop, &basic_block_in_loop); in TEST_F()
365 EXPECT_TRUE(loop->HasNestedLoops()); in TEST_F()
366 EXPECT_FALSE(loop->IsNested()); in TEST_F()
367 EXPECT_EQ(loop->GetDepth(), 1u); in TEST_F()
368 EXPECT_EQ(std::distance(loop->begin(), loop->end()), 1u); in TEST_F()
[all …]
/external/llvm/test/Other/
Dloop-pass-ordering.ll2 ; RUN: -passes='no-op-loop' %s 2>&1 \
7 ; loop.0 loop.1
9 ; loop.0.0 loop.0.1 loop.1.0
11 ; CHECK: Running pass: NoOpLoopPass on loop.1.0
12 ; CHECK: Running pass: NoOpLoopPass on loop.1
13 ; CHECK: Running pass: NoOpLoopPass on loop.0.0
14 ; CHECK: Running pass: NoOpLoopPass on loop.0.1
15 ; CHECK: Running pass: NoOpLoopPass on loop.0
18 br label %loop.0
19 loop.0:
[all …]
/external/igt-gpu-tools/tests/i915/
Dgem_gtt_speed.c48 int loop) in elapsed() argument
50 return (1e6*(end->tv_sec - start->tv_sec) + (end->tv_usec - start->tv_usec))/loop; in elapsed()
112 int loop, i, tiling; variable
159 for (loop = 0; loop < 1000; loop++) {
176 size/1024, elapsed(&start, &end, loop));
182 for (loop = 0; loop < 1000; loop++) {
196 size/1024, elapsed(&start, &end, loop));
201 for (loop = 0; loop < 1000; loop++) {
214 size/1024, elapsed(&start, &end, loop));
217 for (loop = 0; loop < 1000; loop++) {
[all …]
/external/llvm-project/llvm/test/Transforms/CodeExtractor/
DLoopExtractor.ll1 ; RUN: opt < %s -break-crit-edges -loop-simplify -loop-extract -S | FileCheck %s
9 ; CHECK-NEXT: call void @test3.loop.0()
10 ; CHECK-NEXT: br label %loop.0.loop.1_crit_edge
11 ; CHECK: loop.0.loop.1_crit_edge:
14 ; CHECK-NEXT: call void @test3.loop.1()
20 br label %loop.0
22 loop.0: ; preds = %loop.0, %entry
23 %index.0 = phi i32 [ 10, %entry ], [ %next.0, %loop.0 ]
27 br i1 %repeat.0, label %loop.0, label %loop.1
29 loop.1: ; preds = %loop.0, %loop.1
[all …]
/external/llvm-project/llvm/test/Other/
Dloop-pass-ordering.ll2 ; RUN: -passes='no-op-loop' %s 2>&1 \
7 ; loop.0 loop.1
9 ; loop.0.0 loop.0.1 loop.1.0
11 ; CHECK: Running pass: NoOpLoopPass on Loop at depth 2 containing: %loop.0.0
12 ; CHECK: Running pass: NoOpLoopPass on Loop at depth 2 containing: %loop.0.1
13 ; CHECK: Running pass: NoOpLoopPass on Loop at depth 1 containing: %loop.0
14 ; CHECK: Running pass: NoOpLoopPass on Loop at depth 2 containing: %loop.1.0
15 ; CHECK: Running pass: NoOpLoopPass on Loop at depth 1 containing: %loop.1
19 br label %loop.0
20 loop.0:
[all …]
/external/llvm-project/llvm/test/Analysis/ScalarEvolution/
Dtrip-count-andor.ll10 ; CHECK-NEXT: Determining loop execution counts for: @unsimplified_and1
11 ; CHECK-NEXT: Loop %loop: backedge-taken count is %n
12 ; CHECK-NEXT: Loop %loop: max backedge-taken count is -1
13 ; CHECK-NEXT: Loop %loop: Predicated backedge-taken count is %n
15 ; CHECK: Loop %loop: Trip multiple is 1
18 br label %loop
20 loop:
21 %iv = phi i32 [ 0, %entry ], [ %iv.inc, %loop ]
25 br i1 %and, label %loop, label %leave
33 ; CHECK-NEXT: Determining loop execution counts for: @unsimplified_and2
[all …]
Dtrip-count9.ll15 ; CHECK-NEXT: Determining loop execution counts for: @foo
16 ; CHECK-NEXT: Loop %loop: backedge-taken count is (-1 + %n)
17 ; CHECK-NEXT: Loop %loop: max backedge-taken count is 6
18 ; CHECK-NEXT: Loop %loop: Predicated backedge-taken count is (-1 + %n)
20 ; CHECK: Loop %loop: Trip multiple is 1
24 br i1 %s, label %loop, label %exit
25 loop:
26 %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
29 br i1 %t, label %loop, label %exit
36 ; CHECK-NEXT: Determining loop execution counts for: @step2
[all …]
Dincreasing-or-decreasing-iv.ll9 br label %loop
11 loop:
12 %loop.iv = phi i32 [ 0, %entry ], [ %loop.iv.inc, %loop ]
13 %iv = phi i32 [ %start, %entry ], [ %iv.next, %loop ]
14 ; CHECK: %iv = phi i32 [ %start, %entry ], [ %iv.next, %loop ]
15 ; CHECK-NEXT: --> {%start,+,%step}<%loop> U: [0,128) S: [0,128)
17 %loop.iv.inc = add i32 %loop.iv, 1
18 %be.cond = icmp ne i32 %loop.iv.inc, 128
19 br i1 %be.cond, label %loop, label %leave
30 br label %loop
[all …]
/external/llvm/test/Analysis/ScalarEvolution/
Dtrip-count9.ll11 ; CHECK: Determining loop execution counts for: @foo
12 ; CHECK: Loop %loop: backedge-taken count is (-1 + %n)
13 ; CHECK: Loop %loop: max backedge-taken count is 6
17 br i1 %s, label %loop, label %exit
18 loop:
19 %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
22 br i1 %t, label %loop, label %exit
27 ; CHECK: Determining loop execution counts for: @step2
28 ; CHECK: Loop %loop: Unpredictable backedge-taken count.
29 ; CHECK: Loop %loop: Unpredictable max backedge-taken count.
[all …]
Dincreasing-or-decreasing-iv.ll8 br label %loop
10 loop:
11 %loop.iv = phi i32 [ 0, %entry ], [ %loop.iv.inc, %loop ]
12 %iv = phi i32 [ %start, %entry ], [ %iv.next, %loop ]
13 ; CHECK: %iv = phi i32 [ %start, %entry ], [ %iv.next, %loop ]
14 ; CHECK-NEXT: --> {%start,+,%step}<%loop> U: [0,128) S: [0,128)
16 %loop.iv.inc = add i32 %loop.iv, 1
17 %be.cond = icmp ne i32 %loop.iv.inc, 128
18 br i1 %be.cond, label %loop, label %leave
29 br label %loop
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_opt_loop_unroll.c50 loop_prepare_for_unroll(nir_loop *loop) in loop_prepare_for_unroll() argument
53 nir_cf_node_get_function(&loop->cf_node)); in loop_prepare_for_unroll()
55 nir_convert_loop_to_lcssa(loop); in loop_prepare_for_unroll()
58 foreach_list_typed_safe(nir_cf_node, node, node, &loop->body) { in loop_prepare_for_unroll()
66 nir_cf_node_as_block(nir_cf_node_next(&loop->cf_node)); in loop_prepare_for_unroll()
71 nir_instr *last_instr = nir_block_last_instr(nir_loop_last_block(loop)); in loop_prepare_for_unroll()
106 simple_unroll(nir_loop *loop) in simple_unroll() argument
108 nir_loop_terminator *limiting_term = loop->info->limiting_terminator; in simple_unroll()
112 loop_prepare_for_unroll(loop); in simple_unroll()
116 &loop->info->loop_terminator_list, in simple_unroll()
[all …]
/external/llvm-project/llvm/test/Transforms/LoopPredication/
Dnested.ll2 ; RUN: opt -S -loop-predication < %s 2>&1 | FileCheck %s
3 ; RUN: opt -S -passes='require<scalar-evolution>,loop(loop-predication)' < %s 2>&1 | FileCheck %s
12 ; CHECK: outer.loop.preheader:
14 ; CHECK: outer.loop:
19 ; CHECK: inner.loop.preheader:
24 ; CHECK: inner.loop:
35 ; CHECK: outer.loop.inc.loopexit:
38 ; CHECK: outer.loop.inc:
52 br i1 %tmp5, label %exit, label %outer.loop.preheader
54 outer.loop.preheader:
[all …]
/external/llvm-project/mlir/test/Transforms/
Dloop-fusion-slice-computation.mlir1 // RUN: mlir-opt %s -test-loop-fusion -test-loop-fusion-slice-computation -split-input-file -verify…
10 …// expected-remark@-1 {{slice ( src loop: 1, dst loop: 0, depth: 1 : insert point: (1, 1) loop bou…
14 …// expected-remark@-1 {{slice ( src loop: 0, dst loop: 1, depth: 1 : insert point: (1, 0) loop bou…
22 // Loop %i0 writes to locations [2, 17] and loop %i0 reads from locations [3, 6]
23 // Slice loop bounds should be adjusted such that the load/store are for the
30 …// expected-remark@-1 {{slice ( src loop: 1, dst loop: 0, depth: 1 : insert point: (1, 2) loop bou…
35 …// expected-remark@-1 {{slice ( src loop: 0, dst loop: 1, depth: 1 : insert point: (1, 0) loop bou…
44 // Slices at loop depth 1 should only slice the loop bounds of the first scf.
45 // Slices at loop depth 2 should slice loop bounds of both loops.
51 …// expected-remark@-1 {{slice ( src loop: 1, dst loop: 0, depth: 1 : insert point: (1, 1) loop bou…
[all …]
/external/llvm-project/llvm/test/Transforms/LoopInstSimplify/
Dbasic.ll2 ; RUN: opt -S %s -passes=loop-instsimplify | FileCheck %s
3 ; RUN: opt -S %s -passes='loop-mssa(loop-instsimplify)' -verify-memoryssa | FileCheck %s
5 ; Test very basic folding and propagation occurs within a loop body. This should
6 ; collapse to the loop iteration structure and the LCSSA PHI node.
11 ; CHECK: loop:
21 br label %loop
23 loop:
24 %i = phi i32 [ 0, %entry ], [ %i.next, %loop ]
30 br i1 %i.cmp, label %loop, label %exit
33 %x.lcssa = phi i32 [ %x.and, %loop ]
[all …]
/external/libchrome/mojo/public/cpp/bindings/tests/
Dbinding_set_unittest.cc116 base::RunLoop loop; in TEST_P() local
117 ping_a->Ping(loop.QuitClosure()); in TEST_P()
118 loop.Run(); in TEST_P()
123 base::RunLoop loop; in TEST_P() local
124 ping_b->Ping(loop.QuitClosure()); in TEST_P()
125 loop.Run(); in TEST_P()
129 base::RunLoop loop; in TEST_P() local
131 Sequence(ExpectContext(&bindings, 1), loop.QuitClosure())); in TEST_P()
133 loop.Run(); in TEST_P()
137 base::RunLoop loop; in TEST_P() local
[all …]

12345678910>>...204