[Mlir-commits] [mlir] [MLIR][Python] Python binding support for AffineIfOp (PR #107336)

Maksim Levental llvmlistbot at llvm.org
Wed Sep 4 19:56:50 PDT 2024


================
@@ -407,7 +407,8 @@ def AffineIfOp : Affine_Op<"if",
     }
     ```
   }];
-  let arguments = (ins Variadic<AnyType>);
+  let arguments = (ins Variadic<AnyType>,
+                       IntegerSetAttr:$condition);
----------------
makslevental wrote:

I don't follow affine dialect but I'm not sure this is the correct way to accomplish what you're trying to accomplish - expose/add default a builder that can successfully construct this op from Python. At minimum this is a breaking change? Though maybe not  because ultimately it's the custom assembly parser that determines things. Anyway you're gonna need to tag someone that works on affine to review these parts.

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


More information about the Mlir-commits mailing list