Home
last modified time | relevance | path

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

12345678910>>...161

/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_base_events.py155 self.loop = base_events.BaseEventLoop()
156 self.loop._selector = mock.Mock()
157 self.loop._selector.select.return_value = ()
158 self.set_event_loop(self.loop)
164 self.loop._make_socket_transport, m, m)
167 self.loop._make_ssl_transport, m, m, m, m)
170 self.loop._make_datagram_transport, m, m)
172 NotImplementedError, self.loop._process_events, [])
174 NotImplementedError, self.loop._write_to_self)
177 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()
45 self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))
46 reader, writer = self.loop.run_until_complete(open_connection_fut)
49 data = self.loop.run_until_complete(f)
52 data = self.loop.run_until_complete(f)
70 self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))
72 reader, writer = self.loop.run_until_complete(open_connection_fut)
[all …]
Dtest_events.py59 loop = asyncio.new_event_loop()
60 asyncio.set_event_loop(loop)
61 return loop.run_until_complete(doit())
82 def __init__(self, loop=None): argument
86 if loop is not None:
87 self.connected = loop.create_future()
88 self.done = loop.create_future()
125 def __init__(self, loop=None): argument
128 if loop is not None:
129 self.done = loop.create_future()
[all …]
Dtest_tasks.py112 def new_task(self, loop, coro, name='TestTask'): argument
113 return self.__class__.Task(coro, loop=loop, name=name)
115 def new_future(self, loop): argument
116 return self.__class__.Future(loop=loop)
120 self.loop = self.new_test_loop()
121 self.loop.set_task_factory(self.new_task)
122 self.loop.create_future = lambda: self.new_future(self.loop)
133 t = self.new_task(self.loop, coro())
141 self.loop.run_until_complete(t)
146 t = self.new_task(self.loop, coro())
[all …]
Dtest_futures.py88 self.loop = self.new_test_loop()
89 self.addCleanup(self.loop.close)
109 self.loop = self.new_test_loop()
110 self.addCleanup(self.loop.close)
131 f = self._new_future(loop=self.loop)
141 f = self._new_future(loop=self.loop)
156 f = self.loop.run_until_complete(test())
157 self.assertIs(f._loop, self.loop)
158 self.assertIs(f.get_loop(), self.loop)
162 asyncio.set_event_loop(self.loop)
[all …]
Dtest_sock_lowlevel.py21 def __init__(self, loop=None): argument
25 if loop is not None:
26 self.connected = loop.create_future()
27 self.done = loop.create_future()
62 self.loop = self.create_event_loop()
63 self.set_event_loop(self.loop)
68 if not self.loop.is_closed():
69 test_utils.run_briefly(self.loop)
76 if not isinstance(self.loop, proactor_events.BaseProactorEventLoop):
79 self.loop.set_debug(True)
[all …]
Dtest_windows_events.py48 loop = asyncio.get_event_loop()
51 loop.call_soon(thread.start)
52 loop.run_forever()
57 self.close_loop(loop)
70 loop = asyncio.new_event_loop()
71 loop.run_until_complete(coro())
73 loop.close()
86 self.loop = asyncio.ProactorEventLoop()
87 self.set_event_loop(self.loop)
91 trans = self.loop._make_socket_transport(a, asyncio.Protocol())
[all …]
Dtest_queues.py17 self.loop = self.new_test_loop()
35 loop = self.new_test_loop(gen)
45 loop.create_task(q.get())
52 loop.run_until_complete(add_getter())
58 loop.create_task(q.put(2))
65 loop.run_until_complete(add_putter())
114 loop = self.new_test_loop(gen)
127 t = loop.create_task(putter())
143 loop.run_until_complete(test())
144 self.assertAlmostEqual(0.02, loop.time())
[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/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/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/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/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/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 …]
Dshift-op.ll5 ; CHECK: Loop %loop: max backedge-taken count is 32
7 br label %loop
9 loop:
10 %iv = phi i32 [ %init, %entry ], [ %iv.shift, %loop ]
13 br i1 %exit.cond, label %leave, label %loop
21 ; CHECK: Loop %loop: max backedge-taken count is 32
23 br label %loop
25 loop:
26 %iv = phi i32 [ %init, %entry ], [ %iv.shift, %loop ]
29 br i1 %exit.cond, label %leave, 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/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 …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_emulate_loops.c60 struct loop_info * loop) in loop_max_possible_iterations() argument
63 unsigned int loop_i = (loop->EndLoop->IP - loop->BeginLoop->IP) - 1; in loop_max_possible_iterations()
68 static void unroll_loop(struct radeon_compiler * c, struct loop_info * loop, in unroll_loop() argument
73 struct rc_instruction * first = loop->BeginLoop->Next; in unroll_loop()
74 struct rc_instruction * last = loop->EndLoop->Prev; in unroll_loop()
76 rc_remove_instruction(loop->BeginLoop); in unroll_loop()
77 rc_remove_instruction(loop->EndLoop); in unroll_loop()
187 static int try_unroll_loop(struct radeon_compiler * c, struct loop_info * loop) in try_unroll_loop() argument
200 if(rc_src_reg_is_immediate(c, loop->Cond->U.I.SrcReg[0].File, in try_unroll_loop()
201 loop->Cond->U.I.SrcReg[0].Index)){ in try_unroll_loop()
[all …]
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Dialect/gml_st/transforms/
Dgml_st_to_scf.cc38 LogicalResult matchAndRewrite(LoopOp loop, in matchAndRewrite()
41 if (!loop.hasBufferSemantics()) return failure(); in matchAndRewrite()
47 llvm::enumerate(llvm::zip(loop.lowerBound(), loop.upperBound(), in matchAndRewrite()
48 loop.step(), loop.getInductionVars()))) { in matchAndRewrite()
51 if (loop.isParallelDimension(en.index())) { in matchAndRewrite()
64 Location loc = loop.getLoc(); in matchAndRewrite()
69 bvm.map(loop.getRegionInputArgs(), loop.inputs()); in matchAndRewrite()
70 bvm.map(loop.getRegionOutputArgs(), loop.outputs()); in matchAndRewrite()
81 for (auto &op : loop.getBody()->without_terminator()) in matchAndRewrite()
91 rewriter.eraseOp(loop); in matchAndRewrite()
[all …]
/external/llvm/test/Transforms/IndVarSimplify/
Dsharpen-range.ll2 ; RUN: opt -lcssa -loop-simplify -S < %s | opt -S -passes='require<targetir>,require<scalar-evoluti…
4 ;; Check if llvm can narrow !range metadata based on loop entry
14 br i1 %entry.pred, label %abort, label %loop.preheader
16 loop.preheader:
17 br label %loop
19 loop:
20 ; CHECK: loop
21 %idx = phi i32 [ %idx.inc, %loop.next ], [ 0, %loop.preheader ]
23 br i1 %oob.pred, label %loop.next, label %oob
24 ; CHECK: br i1 true, label %loop.next, label %oob
[all …]
Dtripcount_compute.ll4 ; loops. If the trip count of the loop is computable, then we will know what
5 ; the exit value of the loop will be for some value, allowing us to substitute
6 ; it directly into users outside of the loop, making the loop dead.
13 br label %loop
15 loop: ; preds = %loop, %entry
16 %i = phi i32 [ 0, %entry ], [ %i.next, %loop ] ; <i32> [#uses=3]
19 br i1 %c, label %loop, label %loopexit
21 loopexit: ; preds = %loop
30 br label %loop
32 loop: ; preds = %loop, %entry
[all …]
/external/wayland/tests/
Devent-loop-test.c52 struct wl_event_loop *loop = wl_event_loop_create(); in TEST() local
57 assert(loop); in TEST()
60 source = wl_event_loop_add_fd(loop, p[0], WL_EVENT_READABLE, in TEST()
65 wl_event_loop_dispatch(loop, 0); in TEST()
71 wl_event_loop_destroy(loop); in TEST()
103 struct wl_event_loop *loop = wl_event_loop_create(); in TEST() local
116 assert(loop); in TEST()
122 wl_event_loop_add_fd(loop, context.p1[0], WL_EVENT_READABLE, in TEST()
126 wl_event_loop_add_fd(loop, context.p2[0], WL_EVENT_READABLE, in TEST()
134 wl_event_loop_dispatch(loop, 0); in TEST()
[all …]
/external/python/cpython3/Lib/asyncio/
Dtasks.py35 def current_task(loop=None): argument
37 if loop is None:
38 loop = events.get_running_loop()
39 return _current_tasks.get(loop)
42 def all_tasks(loop=None): argument
44 if loop is None:
45 loop = events.get_running_loop()
62 if futures._get_loop(t) is loop and not t.done()}
93 def __init__(self, coro, *, loop=None, name=None): argument
94 super().__init__(loop=loop)
[all …]

12345678910>>...161