[clang] [CIR] Upstream support for break and continue statements (PR #134181)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 3 08:34:26 PDT 2025
================
@@ -569,6 +569,35 @@ def YieldOp : CIR_Op<"yield", [ReturnLike, Terminator,
];
}
+//===----------------------------------------------------------------------===//
+// BreakOp
+//===----------------------------------------------------------------------===//
+
+def BreakOp : CIR_Op<"break", [Terminator]> {
+ let summary = "C/C++ `break` statement equivalent";
+ let description = [{
+ The `cir.break` operation is used to cease the control flow to the parent
----------------
erichkeane wrote:
Won't let me suggest an edit here for some reason, but the 'cease ...to the parent' text seems wrong. DO we mean 'cede' control flow to the parent?
https://github.com/llvm/llvm-project/pull/134181
More information about the cfe-commits
mailing list