[Mlir-commits] [mlir] Unify handling of operations which are emitted in a deferred way (PR #97804)

Simon Camphausen llvmlistbot at llvm.org
Mon Jul 8 02:43:12 PDT 2024


================
@@ -1001,7 +993,8 @@ 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::LiteralOp, emitc::VerbatimOp>(op);
+               emitc::IfOp, emitc::VerbatimOp>(op) ||
+          hasDeferredEmission(&op);
----------------
simon-camp wrote:

Yes the check looks redundant to me here, I removed it.

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


More information about the Mlir-commits mailing list