[Mlir-commits] [mlir] [mlir][emitc][cf] add 'cf.switch' support in CppEmitter (PR #101478)

Simon Camphausen llvmlistbot at llvm.org
Thu Aug 1 05:29:16 PDT 2024


================
@@ -998,7 +1033,7 @@ static LogicalResult printFunctionBody(CppEmitter &emitter,
       // trailing semicolon is handled within the printOperation function.
       bool trailingSemicolon =
           !isa<cf::CondBranchOp, emitc::DeclareFuncOp, emitc::ForOp,
-               emitc::IfOp, emitc::VerbatimOp>(op);
+               cf::SwitchOp, emitc::IfOp, emitc::VerbatimOp>(op);
----------------
simon-camp wrote:

Order this by dialect name, please.

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


More information about the Mlir-commits mailing list