[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


================
@@ -37,6 +37,106 @@ struct SCFToEmitCPass : public impl::SCFToEmitCBase<SCFToEmitCPass> {
   void runOnOperation() override;
 };
 
+// Lower scf::for to emitc::for, implementing return values using
+// emitc::variable's updated within loop body.
----------------
simon-camp wrote:

```suggestion
// Lower scf::for to emitc::for, implementing result values using
// emitc::variable's updated within the loop body.
```

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


More information about the Mlir-commits mailing list