[Mlir-commits] [mlir] [mlir][emitc] Add 'emitc.switch' op to the dialect (PR #102331)

Marius Brehler llvmlistbot at llvm.org
Fri Aug 9 08:03:54 PDT 2024


================
@@ -1188,7 +1190,7 @@ def EmitC_AssignOp : EmitC_Op<"assign", []> {
 }
 
 def EmitC_YieldOp : EmitC_Op<"yield",
-      [Pure, Terminator, ParentOneOf<["ExpressionOp", "IfOp", "ForOp"]>]> {
+      [Pure, Terminator, ParentOneOf<["ExpressionOp", "IfOp", "ForOp", "SwitchOp"]>]> {
----------------
marbre wrote:

With this change you need to update https://github.com/llvm/llvm-project/blob/b9793a6f04b3ab1ff9ed86a675c93e957ec52f51/mlir/test/Dialect/EmitC/invalid_ops.mlir#L230 accordingly. The builtbot fails, please see the logs!

https://github.com/llvm/llvm-project/pull/102331


More information about the Mlir-commits mailing list