[Mlir-commits] [mlir] [mlir][python] fix up affine for (PR #74495)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Wed Dec 6 02:07:07 PST 2023


================
@@ -21,17 +22,17 @@
 
 @_ods_cext.register_operation(_Dialect, replace=True)
 class AffineForOp(AffineForOp):
-    """Specialization for the Affine for op class"""
+    """Specialization for the Affine for op class."""
 
     def __init__(
         self,
-        lower_bound,
-        upper_bound,
-        step,
-        iter_args: Optional[Union[Operation, OpView, Sequence[Value]]] = None,
+        lower_bound: Union[int, _ResultValueT, AffineMap],
+        upper_bound: Optional[Union[int, _ResultValueT, AffineMap]] = None,
----------------
ftynse wrote:

We probably don't want to omit the upper bound.

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


More information about the Mlir-commits mailing list