Home
last modified time | relevance | path

Searched refs:latch (Results 1 – 25 of 72) sorted by relevance

123

/external/llvm/test/Transforms/IndVarSimplify/
Dbackedge-on-min-max.ll15 %idx = phi i32 [ 0, %entry ], [ %idx.inc, %latch ]
18 br i1 %in.bounds, label %ok, label %latch
19 ; CHECK: br i1 true, label %ok, label %latch
24 br label %latch
26 latch:
43 %idx = phi i32 [ 0, %entry ], [ %idx.inc, %latch ]
46 br i1 %in.bounds, label %ok, label %latch
47 ; CHECK: br i1 true, label %ok, label %latch
52 br label %latch
54 latch:
[all …]
Dlcssa-preservation.ll14 %outer.iv = phi i32 [ 0, %entry ], [ %x, %outer.latch ]
21 %inner.iv = phi i32 [ undef, %outer.header ], [ %inc, %inner.latch ]
23 br i1 %cmp1, label %inner.latch, label %outer.latch
24 ; CHECK: br i1 {{.*}}, label %inner.latch, label %outer.latch
26 inner.latch:
27 ; CHECK: inner.latch:
33 outer.latch:
34 ; CHECK: outer.latch:
39 ; CHECK-NEXT: %[[LCSSA:.*]] = phi i32 [ %[[SCEV_EXPANDED]], %inner.latch ]
47 %exit.phi = phi i32 [ %inc, %inner.latch ], [ undef, %outer.latch ]
Dstrengthen-overflow.ll11 %civ = phi i32 [ %init, %entry ], [ %civ.inc, %latch ]
15 br i1 %cmp, label %latch, label %break
17 latch:
37 %civ = phi i32 [ %init, %entry ], [ %civ.inc, %latch ]
41 br i1 %cmp, label %latch, label %break
43 latch:
63 %civ = phi i32 [ %init, %entry ], [ %civ.inc, %latch ]
67 br i1 %cmp, label %latch, label %break
69 latch:
89 %civ = phi i32 [ %init, %entry ], [ %civ.inc, %latch ]
[all …]
/external/llvm/test/Transforms/LoopUnroll/
Dpr18861.ll18 ; ( inner.latch ) ( outer.latch )
23 ; When the inner loop is unrolled, we inner.latch block has only one
33 outer.header: ; preds = %outer.latch, %entry
34 %storemerge1 = phi i32 [ 0, %entry ], [ %inc9, %outer.latch ]
37 inner.header: ; preds = %inner.latch, %outer.header
38 %storemerge = phi i32 [ %add, %inner.latch ], [ 0, %outer.header ]
40 br i1 %cmp, label %inner.latch, label %outer.latch
42 inner.latch: ; preds = %inner.header
47 exit: ; preds = %inner.latch
48 %storemerge1.lcssa = phi i32 [ %storemerge1, %inner.latch ]
[all …]
Dupdate-loop-info-in-subloops.ll8 ; CHECK: L.inner.latch:
9 ; CHECK: L.latch:
11 ; CHECK: L.inner.latch.1:
12 ; CHECK: L.latch.1:
19 %0 = phi i64 [ 1, %entry ], [ %1, %L.latch ]
23 br label %L.inner.latch
25 L.inner.latch:
26 br i1 false, label %L.latch, label %L.inner
28 L.latch:
Dpr27157.ll35 %iv = phi i32 [ 0, %entry ], [ %iv.inc, %latch ]
37 br i1 undef, label %diamond, label %latch
45 br label %latch
46 latch:
Dfull-unroll-heuristics-2.ll69 %iv = phi i64 [ 0, %entry ], [ %inc, %loop.latch ]
70 %r1 = phi i32 [ 0, %entry ], [ %r3, %loop.latch ]
74 br i1 %cmp, label %loop.if, label %loop.latch
78 br label %loop.latch
80 loop.latch:
87 %r.lcssa = phi i32 [ %r3, %loop.latch ]
/external/desugar/test/java/com/google/devtools/build/android/desugar/runtime/
DConcurrentWeakIdentityHashMapTest.java51 testConcurrentWeakIdentityHashMapSingleThreadedHelper(CountDownLatch latch) in testConcurrentWeakIdentityHashMapSingleThreadedHelper() argument
54 Exception e1 = new ExceptionWithLatch("e1", latch); in testConcurrentWeakIdentityHashMapSingleThreadedHelper()
60 Exception suppressed1 = new ExceptionWithLatch("suppressed1", latch); in testConcurrentWeakIdentityHashMapSingleThreadedHelper()
64 Exception suppressed2 = new ExceptionWithLatch("suppressed2", latch); in testConcurrentWeakIdentityHashMapSingleThreadedHelper()
76 Exception e2 = new ExceptionWithLatch("e2", latch); in testConcurrentWeakIdentityHashMapSingleThreadedHelper()
78 Exception e3 = new ExceptionWithLatch("e3", latch); in testConcurrentWeakIdentityHashMapSingleThreadedHelper()
86 CountDownLatch latch = new CountDownLatch(5); in testSingleThreadedUse() local
88 testConcurrentWeakIdentityHashMapSingleThreadedHelper(latch); in testSingleThreadedUse()
93 latch.await(); // wait for e1 to be garbage collected. in testSingleThreadedUse()
99 int numMainExceptions, int numSuppressedPerMain, CountDownLatch latch) { in createExceptionWithSuppressed() argument
[all …]
/external/llvm/test/Transforms/LICM/
Dlcssa-ssa-promoter.ll26 br i1 undef, label %outer.latch, label %inner.preheader
28 ; CHECK-NEXT: br i1 undef, label %outer.latch, label %inner.preheader
36 br i1 undef, label %inner.body.rhs, label %inner.latch
38 ; CHECK-NEXT: %[[PHI0:[^,]+]] = phi i32 [ %{{[^,]+}}, %inner.latch ], [ 0, %inner.preheader ]
39 ; CHECK-NEXT: br i1 undef, label %inner.body.rhs, label %inner.latch
43 br label %inner.latch
45 ; CHECK-NEXT: br label %inner.latch
47 inner.latch:
51 ; CHECK: inner.latch:
56 br label %outer.latch
[all …]
/external/okhttp/okhttp-ws-tests/src/main/java/com/squareup/okhttp/ws/
DAutobahnTester.java71 final CountDownLatch latch = new CountDownLatch(1); in runTest() local
110 latch.countDown(); in runTest()
115 latch.countDown(); in runTest()
119 if (!latch.await(30, TimeUnit.SECONDS)) { in runTest()
132 final CountDownLatch latch = new CountDownLatch(1); in getTestCount() local
148 latch.countDown(); in getTestCount()
153 latch.countDown(); in getTestCount()
157 if (!latch.await(10, TimeUnit.SECONDS)) { in getTestCount()
171 final CountDownLatch latch = new CountDownLatch(1); in updateReports() local
183 latch.countDown(); in updateReports()
[all …]
/external/dagger2/core/src/test/java/dagger/internal/
DDoubleCheckLazyTest.java45 final CountDownLatch latch = new CountDownLatch(numThreads); in get() local
46 LatchedProvider provider = new LatchedProvider(latch); in get()
53 latch.countDown(); in get()
84 final CountDownLatch latch; field in DoubleCheckLazyTest.LatchedProvider
86 LatchedProvider(CountDownLatch latch) { in LatchedProvider() argument
87 this.latch = latch; in LatchedProvider()
93 if (latch != null) { in get()
94 Uninterruptibles.awaitUninterruptibly(latch); in get()
/external/llvm/test/Transforms/LoopRotate/
Dpreserve-loop-simplify.ll25 ; Now the latch!
33 br i1 undef, label %outer.latch, label %inner.latch
36 inner.latch:
42 br label %outer.latch
43 ; CHECK-NEXT: br label %outer.latch
47 ; CHECK-NEXT: br label %outer.latch
49 outer.latch:
50 ; CHECK: outer.latch:
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractListenableFutureTest.java43 protected CountDownLatch latch; field in AbstractListenableFutureTest
50 latch = new CountDownLatch(1); in setUp()
51 future = createListenableFuture(Boolean.TRUE, null, latch); in setUp()
58 latch.countDown(); in tearDown()
94 latch.countDown(); in testGetBlocksUntilValueAvailable()
120 latch.countDown(); in testTimeoutOnGetWorksCorrectly()
160 latch.countDown(); in testCanceledFutureThrowsCancellation()
197 latch.countDown(); in testListenersNotifiedOnError()
226 latch.countDown(); in testAllListenersCompleteSuccessfully()
DAbstractCheckedFutureTest.java71 createCheckedFuture(Boolean.TRUE, null, latch); in testCheckedGetThrowsApplicationExceptionOnCancellation()
98 createCheckedFuture(Boolean.TRUE, null, latch); in testCheckedGetThrowsApplicationExceptionOnInterruption()
135 createCheckedFuture(Boolean.TRUE, new Exception("Error"), latch); in testCheckedGetThrowsApplicationExceptionOnError()
143 latch.countDown(); in testCheckedGetThrowsApplicationExceptionOnError()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DListenableFutureTester.java43 private final CountDownLatch latch; field in ListenableFutureTester
48 this.latch = new CountDownLatch(1); in ListenableFutureTester()
54 latch.countDown(); in setUp()
58 assertEquals(1, latch.getCount()); in setUp()
72 assertTrue(latch.await(5, TimeUnit.SECONDS)); in testCompletedFuture()
84 assertTrue(latch.await(5, TimeUnit.SECONDS)); in testCancelledFuture()
99 assertTrue(latch.await(5, TimeUnit.SECONDS)); in testFailedFuture()
DListenerCallQueueTest.java81 final CountDownLatch latch = new CountDownLatch(1); in testAddAndExecute_multithreaded() local
87 queue.add(countDownCallback(latch)); in testAddAndExecute_multithreaded()
90 latch.await(); in testAddAndExecute_multithreaded()
103 final CountDownLatch latch = new CountDownLatch(1); in testAddAndExecute_multithreaded_withThrowingRunnable() local
113 queue.add(countDownCallback(latch)); in testAddAndExecute_multithreaded_withThrowingRunnable()
116 latch.await(); in testAddAndExecute_multithreaded_withThrowingRunnable()
131 private Callback<Object> countDownCallback(final CountDownLatch latch) {
134 latch.countDown();
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DPing.java25 private final CountDownLatch latch = new CountDownLatch(1); field in Ping
40 latch.countDown(); in receive()
46 latch.countDown(); in cancel()
55 latch.await(); in roundTripTime()
65 if (latch.await(timeout, unit)) { in roundTripTime()
/external/guava/guava-testlib/src/com/google/common/testing/
DGcFinalization.java165 public static void await(CountDownLatch latch) { in await() argument
166 if (latch.getCount() == 0) { in await()
173 if (latch.getCount() == 0) { in await()
178 if (latch.await(1L, SECONDS)) { in await()
193 private static void createUnreachableLatchFinalizer(final CountDownLatch latch) { in createUnreachableLatchFinalizer() argument
194 new Object() { @Override protected void finalize() { latch.countDown(); }}; in createUnreachableLatchFinalizer()
/external/guava/guava-testlib/test/com/google/common/testing/
DGcFinalizationTest.java43 final CountDownLatch latch = new CountDownLatch(1); in testAwait_CountDownLatch() local
45 @Override protected void finalize() { latch.countDown(); } in testAwait_CountDownLatch()
48 GcFinalization.await(latch); in testAwait_CountDownLatch()
49 assertEquals(0, latch.getCount()); in testAwait_CountDownLatch()
128 final CountDownLatch latch = new CountDownLatch(1); in testAwait_CountDownLatch_Interrupted() local
130 GcFinalization.await(latch); in testAwait_CountDownLatch_Interrupted()
/external/llvm/test/CodeGen/X86/
Dcode_placement_loop_rotation3.ll7 ; CHECK: latch
18 br i1 %call, label %if.then, label %latch, !prof !1
23 br i1 %call3, label %latch, label %end, !prof !2
25 latch:
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DCameraFacade.java161 final CountDownLatch latch = new CountDownLatch(1); in takePicture() local
183 latch.countDown(); in takePicture()
187 latch.await(); in takePicture()
192 final CountDownLatch latch = new CountDownLatch(1); in autoFocus() local
198 latch.countDown(); in autoFocus()
201 latch.await(); in autoFocus()
/external/autotest/client/cros/
Dhttpd_unittest.py81 latch = test_server.add_wait_url('/quitquitquit')
84 while not latch.is_set():
86 latch.wait(1)
/external/autotest/client/site_tests/login_ChromeProfileSanitary/
Dlogin_ChromeProfileSanitary.py70 latch = self._testServer.add_wait_url(self._wait_path)
74 latch.wait(timeout)
75 if not latch.is_set():
/external/guava/guava/src/com/google/common/util/concurrent/
DUninterruptibles.java52 public static void awaitUninterruptibly(CountDownLatch latch) { in awaitUninterruptibly() argument
57 latch.await(); in awaitUninterruptibly()
75 public static boolean awaitUninterruptibly(CountDownLatch latch, in awaitUninterruptibly() argument
85 return latch.await(remainingNanos, NANOSECONDS); in awaitUninterruptibly()
/external/droiddriver/src/io/appium/droiddriver/actions/view/
DCloseKeyboardAction.java61 final CountDownLatch latch = new CountDownLatch(1); in perform() local
67 latch.countDown(); in perform()
78 if (!latch.await(getTimeoutMillis(), TimeUnit.MILLISECONDS)) { in perform()

123