/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_queues.py | 14 self.loop = self.new_test_loop() 32 loop = self.new_test_loop(gen) 34 q = asyncio.Queue(loop=loop) 40 q = asyncio.Queue(loop=loop) 42 asyncio.Task(q.get(), loop=loop) 44 await asyncio.sleep(0.1, loop=loop) 49 loop.run_until_complete(add_getter()) 52 q = asyncio.Queue(maxsize=1, loop=loop) 55 asyncio.Task(q.put(2), loop=loop) 57 await asyncio.sleep(0.1, loop=loop) [all …]
|
D | test_locks.py | 23 self.loop = self.new_test_loop() 26 loop = mock.Mock() 27 lock = asyncio.Lock(loop=loop) 28 self.assertIs(lock._loop, loop) 30 lock = asyncio.Lock(loop=self.loop) 31 self.assertIs(lock._loop, self.loop) 34 asyncio.set_event_loop(self.loop) 36 self.assertIs(lock._loop, self.loop) 39 lock = asyncio.Lock(loop=self.loop) 48 self.loop.run_until_complete(acquire_lock()) [all …]
|
D | test_tasks.py | 86 def new_task(self, loop, coro): argument 87 return self.__class__.Task(coro, loop=loop) 89 def new_future(self, loop): argument 90 return self.__class__.Future(loop=loop) 94 self.loop = self.new_test_loop() 95 self.loop.set_task_factory(self.new_task) 96 self.loop.create_future = lambda: self.new_future(self.loop) 107 self.loop.run_until_complete( 109 self.new_task(self.loop, run()) for _ in range(100) 110 ], loop=self.loop)) [all …]
|
D | test_base_events.py | 150 self.loop = base_events.BaseEventLoop() 151 self.loop._selector = mock.Mock() 152 self.loop._selector.select.return_value = () 153 self.set_event_loop(self.loop) 159 self.loop._make_socket_transport, m, m) 162 self.loop._make_ssl_transport, m, m, m, m) 165 self.loop._make_datagram_transport, m, m) 167 NotImplementedError, self.loop._process_events, []) 169 NotImplementedError, self.loop._write_to_self) 172 self.loop._make_read_pipe_transport, m, m) [all …]
|
D | test_streams.py | 28 self.loop = asyncio.new_event_loop() 29 self.set_event_loop(self.loop) 33 test_utils.run_briefly(self.loop) 35 self.loop.close() 45 reader, writer = self.loop.run_until_complete(open_connection_fut) 48 data = self.loop.run_until_complete(f) 51 data = self.loop.run_until_complete(f) 58 loop=self.loop) 65 loop=self.loop) 70 reader, writer = self.loop.run_until_complete(open_connection_fut) [all …]
|
D | test_events.py | 55 loop = asyncio.new_event_loop() 56 asyncio.set_event_loop(loop) 57 return loop.run_until_complete(doit()) 78 def __init__(self, loop=None): argument 82 if loop is not None: 83 self.connected = asyncio.Future(loop=loop) 84 self.done = asyncio.Future(loop=loop) 117 def __init__(self, loop=None): argument 120 if loop is not None: 121 self.done = asyncio.Future(loop=loop) [all …]
|
D | test_selector_events.py | 54 self.loop = TestBaseSelectorEventLoop(self.selector) 55 self.set_event_loop(self.loop) 59 self.loop.add_reader = mock.Mock() 60 self.loop.add_reader._is_coroutine = False 61 transport = self.loop._make_socket_transport(m, asyncio.Protocol()) 65 self.loop.close() 73 self.loop._add_reader = mock.Mock() 74 self.loop._add_reader._is_coroutine = False 75 self.loop._add_writer = mock.Mock() 76 self.loop._remove_reader = mock.Mock() [all …]
|
D | test_pep492.py | 33 self.loop = asyncio.BaseEventLoop() 34 self.loop._process_events = mock.Mock() 35 self.loop._selector = mock.Mock() 36 self.loop._selector.select.return_value = () 37 self.set_event_loop(self.loop) 44 asyncio.Lock(loop=self.loop), 45 asyncio.Condition(loop=self.loop), 46 asyncio.Semaphore(loop=self.loop), 47 asyncio.BoundedSemaphore(loop=self.loop), 51 await asyncio.sleep(0.01, loop=self.loop) [all …]
|
/external/clang/test/Parser/ |
D | pragma-loop.cpp | 8 #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/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LoopPredication/ |
D | nested.ll | 1 ; RUN: opt -S -loop-predication < %s 2>&1 | FileCheck %s 2 ; RUN: opt -S -passes='require<scalar-evolution>,loop(loop-predication)' < %s 2>&1 | FileCheck %s 10 br i1 %tmp5, label %exit, label %outer.loop.preheader 12 outer.loop.preheader: 13 br label %outer.loop 15 outer.loop: 16 %outer.loop.acc = phi i32 [ %outer.loop.acc.next, %outer.loop.inc ], [ 0, %outer.loop.preheader ] 17 %i = phi i32 [ %i.next, %outer.loop.inc ], [ 0, %outer.loop.preheader ] 19 br i1 %tmp6, label %outer.loop.inc, label %inner.loop.preheader 21 inner.loop.preheader: [all …]
|
D | basic.ll | 1 ; RUN: opt -S -loop-predication < %s 2>&1 | FileCheck %s 2 ; RUN: opt -S -passes='require<scalar-evolution>,loop(loop-predication)' < %s 2>&1 | FileCheck %s 10 br i1 %tmp5, label %exit, label %loop.preheader 12 loop.preheader: 13 ; CHECK: loop.preheader: 17 ; CHECK-NEXT: br label %loop 18 br label %loop 20 loop: 21 ; CHECK: loop: 23 %loop.acc = phi i32 [ %loop.acc.next, %loop ], [ 0, %loop.preheader ] [all …]
|
D | reverse.ll | 1 ; RUN: opt -S -loop-predication -loop-predication-enable-count-down-loop=true < %s 2>&1 | FileCheck… 2 …: opt -S -passes='require<scalar-evolution>,loop(loop-predication)' -loop-predication-enable-count… 10 br i1 %tmp5, label %exit, label %loop.preheader 12 ; CHECK: loop.preheader: 17 loop.preheader: 18 br label %loop 20 ; CHECK: loop: 22 loop: 23 %loop.acc = phi i32 [ %loop.acc.next, %loop ], [ 0, %loop.preheader ] 24 %i = phi i32 [ %i.next, %loop ], [ %n, %loop.preheader ] [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/ |
D | nested_loops.cpp | 196 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/ |
D | nested_loops.cpp | 196 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/llvm-7.0/llvm/test/Analysis/ScalarEvolution/ |
D | trip-count9.ll | 11 ; 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 …]
|
D | increasing-or-decreasing-iv.ll | 8 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 …]
|
D | shift-op.ll | 5 ; 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/llvm/test/Analysis/ScalarEvolution/ |
D | trip-count9.ll | 11 ; 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 …]
|
D | increasing-or-decreasing-iv.ll | 8 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/swiftshader/third_party/LLVM/test/Analysis/ScalarEvolution/ |
D | trip-count9.ll | 11 ; 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 …]
|
/external/llvm/test/Other/ |
D | loop-pass-ordering.ll | 2 ; 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/swiftshader/third_party/llvm-7.0/llvm/test/Other/ |
D | loop-pass-ordering.ll | 2 ; 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/python/cpython3/Lib/test/ |
D | test_asyncgen.py | 325 self.loop = asyncio.new_event_loop() 329 self.loop.close() 330 self.loop = None 341 await asyncio.sleep(0.01, loop=self.loop) 343 await asyncio.sleep(0.01, loop=self.loop) 347 res = self.loop.run_until_complete(self.to_list(gen())) 353 await asyncio.sleep(0.01, loop=self.loop) 359 self.loop.run_until_complete(self.to_list(gen())) 362 loop = self.loop 367 await asyncio.sleep(0.01, loop=loop) [all …]
|
/external/python/cpython3/Lib/asyncio/ |
D | tasks.py | 27 def current_task(loop=None): argument 29 if loop is None: 30 loop = events.get_running_loop() 31 return _current_tasks.get(loop) 34 def all_tasks(loop=None): argument 36 if loop is None: 37 loop = events.get_running_loop() 41 if futures._get_loop(t) is loop and not t.done()} 44 def _all_tasks_compat(loop=None): argument 48 if loop is None: [all …]
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | binding_set_unittest.cc | 116 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 …]
|