Skip to content

Commit 5ddc04f

Browse files
Apply review
1 parent 2a6bce9 commit 5ddc04f

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
@@ -2744,19 +2744,17 @@ def CIR_AwaitOp : CIR_Op<"await",[
27442744
- suspend: wraps actual x.await_suspend() logic
27452745
- resume: handles x.await_resume()
27462746

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

27522752
There are also 4 flavors of `cir.await` available:
27532753
- `init`: compiler generated initial suspend via implicit `co_await`.
2754-
- `user`: also known as normal, representing user written co_await's.
2754+
- `user`: also known as normal, representing a user written `co_await`.
27552755
- `yield`: user written `co_yield` expressions.
27562756
- `final`: compiler generated final suspend via implicit `co_await`.
27572757

2758-
From the C++ snippet we get:
2759-
27602758
```mlir
27612759
cir.scope {
27622760
... // auto &&x = CommonExpr();

0 commit comments

Comments
 (0)