[Mlir-commits] [mlir] [mlir][emitc] Add a structured for operation (PR #68206)

Simon Camphausen llvmlistbot at llvm.org
Mon Oct 23 06:57:43 PDT 2023


================
@@ -751,7 +683,8 @@ static LogicalResult printOperation(CppEmitter &emitter,
       // When generating code for an scf.for op, printing a trailing semicolon
       // is handled within the printOperation function.
       bool trailingSemicolon =
-          !isa<cf::CondBranchOp, emitc::LiteralOp, emitc::IfOp, scf::ForOp>(op);
+          !isa<cf::CondBranchOp, emitc::LiteralOp, emitc::IfOp, emitc::ForOp>(
----------------
simon-camp wrote:

```suggestion
          !isa<cf::CondBranchOp, emitc::ForOp, emitc::IfOp, emitc::LiteralOp>(
```

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


More information about the Mlir-commits mailing list