Skip to content

Commit f73fd50

Browse files
Apply review
1 parent 28c236e commit f73fd50

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,19 +2789,17 @@ def CIR_AwaitOp : CIR_Op<"await",[
27892789
- suspend: wraps actual x.await_suspend() logic
27902790
- resume: handles x.await_resume()
27912791

2792-
Breaking this up in regions allow individual scrutiny of conditions
2792+
Breaking this up in regions allows individual scrutiny of conditions
27932793
which might lead to folding some of them out. Lowerings coming out
27942794
of CIR, e.g. LLVM, should use the `suspend` region to track more
27952795
lower level codegen (e.g. intrinsic emission for coro.save/coro.suspend).
27962796

27972797
There are also 4 flavors of `cir.await` available:
27982798
- `init`: compiler generated initial suspend via implicit `co_await`.
2799-
- `user`: also known as normal, representing user written co_await's.
2799+
- `user`: also known as normal, representing a user written `co_await`.
28002800
- `yield`: user written `co_yield` expressions.
28012801
- `final`: compiler generated final suspend via implicit `co_await`.
28022802

2803-
From the C++ snippet we get:
2804-
28052803
```mlir
28062804
cir.scope {
28072805
... // auto &&x = CommonExpr();

0 commit comments

Comments
 (0)