Skip to content

Commit

Permalink
[CIR][NFC] Expand doc on cir.scope terminators (#1078)
Browse files Browse the repository at this point in the history
Fixed: #265
  • Loading branch information
HerrCai0907 authored Nov 8, 2024
1 parent 2fc3593 commit 723afef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/include/clang/CIR/Dialect/IR/CIROps.td
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ def ScopeOp : CIR_Op<"scope", [
}
```

The blocks can be terminated by `cir.yield`, `cir.return` or `cir.throw`.
If `cir.scope` yields no value, the `cir.yield` can be left out, and
will be inserted implicitly.
}];
Expand Down

0 comments on commit 723afef

Please sign in to comment.