From 4669d2cf87b4211b43c231db3a4cf990342e6645 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 7 Nov 2024 23:24:44 +0800 Subject: [PATCH] [CIR][NFC]add document about terminator of `cir.scope` 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 edaf0fe839c6..015482e6ebcf 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. }];