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

Jacques Pienaar llvmlistbot at llvm.org
Wed Oct 4 14:48:51 PDT 2023


================
@@ -246,6 +247,81 @@ def EmitC_DivOp : EmitC_BinaryOp<"div", []> {
   let results = (outs FloatIntegerIndexOrOpaqueType);
 }
 
+def EmitC_ForOp : EmitC_Op<"for",
+      [AutomaticAllocationScope, DeclareOpInterfaceMethods<LoopLikeOpInterface,
----------------
jpienaar wrote:

I see these as an output format, I'd not expect much optimization on them and given these represent the syntax for easy export more than anything, which could be difficult to encode in LoopLike interface.

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


More information about the Mlir-commits mailing list