[Mlir-commits] [mlir] [mlir][emitc][cf] add 'cf.switch' support in CppEmitter (PR #101478)
Andrey Timonin
llvmlistbot at llvm.org
Thu Aug 1 06:23:47 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);
----------------
EtoAndruwa wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/101478
More information about the Mlir-commits
mailing list