From 723afef1e686a62b55e16fa61184c8896aaf2011 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sat, 9 Nov 2024 04:46:07 +0800 Subject: [PATCH] [CIR][NFC] Expand doc on `cir.scope` terminators (#1078) Fixed: #265 --- clang/include/clang/CIR/Dialect/IR/CIROps.td | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/include/clang/CIR/Dialect/IR/CIROps.td b/clang/include/clang/CIR/Dialect/IR/CIROps.td index 02f7c5a8a91f..a48a99ba95e0 100644 --- a/clang/include/clang/CIR/Dialect/IR/CIROps.td +++ b/clang/include/clang/CIR/Dialect/IR/CIROps.td @@ -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. }];