Lines Matching refs:async
4 func.func @coro_id() -> !async.coro.id {
5 // CHECK: %0 = async.coro.id
6 // CHECK: return %0 : !async.coro.id
7 %0 = async.coro.id
8 return %0 : !async.coro.id
12 func.func @coro_handle(%arg0: !async.coro.id) -> !async.coro.handle {
13 // CHECK: %0 = async.coro.begin %arg0
14 // CHECK: return %0 : !async.coro.handle
15 %0 = async.coro.begin %arg0
16 return %0 : !async.coro.handle
20 func.func @coro_free(%arg0: !async.coro.id, %arg1: !async.coro.handle) {
21 // CHECK: async.coro.free %arg0, %arg1
22 async.coro.free %arg0, %arg1
27 func.func @coro_end(%arg0: !async.coro.handle) {
28 // CHECK: async.coro.end %arg0
29 async.coro.end %arg0
34 func.func @coro_save(%arg0: !async.coro.handle) -> !async.coro.state {
35 // CHECK: %0 = async.coro.save %arg0
36 %0 = async.coro.save %arg0
37 // CHECK: return %0 : !async.coro.state
38 return %0 : !async.coro.state
42 func.func @coro_suspend(%arg0: !async.coro.state) {
43 // CHECK: async.coro.suspend %arg0
45 async.coro.suspend %arg0, ^suspend, ^resume, ^cleanup