Lines Matching full:token

6   %token = async.execute {
11 async.await %token : !async.token
17 // CHECK-SAME: -> !async.token
19 // Create token for return op, and mark a function as a coroutine.
20 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
33 // CHECK: async.runtime.set_available %[[TOKEN]]
47 // CHECK: return %[[TOKEN]]
53 // CHECK: %[[TOKEN:.*]] = call @async_execute_fn_0(%arg0, %arg2, %arg1)
62 async.await %token1 : !async.token
67 // CHECK: async.runtime.await %[[TOKEN]]
68 // CHECK: %[[IS_ERROR:.*]] = async.runtime.is_error %[[TOKEN]]
73 async.await %token0 : !async.token
79 // CHECK-SAME: -> !async.token
81 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
91 // CHECK: async.runtime.set_available %[[TOKEN]]
99 // CHECK-SAME: -> !async.token
101 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
118 // Check the error of the awaited token after resumption.
123 // Set token available if the token is not in the error state.
126 // CHECK: async.runtime.set_available %[[TOKEN]]
138 // CHECK: %[[TOKEN:.*]] = call @async_execute_fn
139 %token = async.execute {
144 // CHECK: call @async_execute_fn_0(%[[TOKEN]], %arg0, %arg1)
145 %token_0 = async.execute [%token] {
155 // CHECK-SAME: -> !async.token
156 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
157 // CHECK: return %[[TOKEN]] : !async.token
161 // CHECK-SAME: %[[ARG0:.*]]: !async.token
164 // CHECK-SAME: -> !async.token
165 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
173 // Suspend coroutine second time waiting for the completion of token dependency.
180 // Check the error of the awaited token after resumption.
185 // Emplace result token after second resumption and error checking.
188 // CHECK: async.runtime.set_available %[[TOKEN]]
202 // CHECK: %[[TOKEN:.*]] = call @async_execute_fn
203 %token = async.execute { async.yield }
204 // CHECK: async.runtime.add_to_group %[[TOKEN]], %[[GROUP]]
205 async.add_to_group %token, %0 : !async.token
220 // CHECK-SAME: (%[[ARG:.*]]: !async.group) -> !async.token
222 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
236 // Check the error of the awaited token after resumption.
241 // Emplace result token after error checking.
243 // CHECK: async.runtime.set_available %[[TOKEN]]
253 %token, %result = async.execute -> !async.value<f32> {
268 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
282 // CHECK: async.runtime.set_available %[[TOKEN]]
292 %token, %result = async.execute -> !async.value<f32> {
297 // CHECK: %[[TOKEN:.*]] = call @async_execute_fn_0(%[[RET]]#1)
303 // CHECK: async.runtime.await %[[TOKEN]] : !async.token
304 async.await %token0 : !async.token
314 // CHECK-SAME: (%[[ARG:.*]]: !async.value<f32>) -> !async.token
316 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
330 // Check the error of the awaited token after resumption.
339 // CHECK: async.runtime.set_available %[[TOKEN]]
348 %token = async.execute {
352 async.await %token : !async.token
359 // CHECK-SAME: -> !async.token
361 // Create token for return op, and mark a function as a coroutine.
362 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
374 // Set coroutine completion token to available state.
376 // CHECK: async.runtime.set_available %[[TOKEN]]
379 // Set coroutine completion token to error state.
381 // CHECK: async.runtime.set_error %[[TOKEN]]
395 // CHECK: return %[[TOKEN]]
406 async.await %token0 : !async.token
408 async.await %token0 : !async.token
417 // CHECK-SAME: -> !async.token
421 // CHECK: %[[TOKEN:.*]]: !async.token
423 // CHECK-SAME: -> !async.token
436 %token = async.execute {
440 async.await %token : !async.token
448 // CHECK-SAME: ) -> !async.token
457 -> !async.token {
461 // Create token for return op, and mark a function as a coroutine.
462 // CHECK: %[[TOKEN:.*]] = async.runtime.create : !async.token
479 -> !async.token {
480 %token = async.execute {
485 async.await %token : !async.token
492 // CHECK-SAME: ) : (f32, memref<1xf32>) -> !async.token
498 // CHECK-SAME: ) -> !async.token