[Mlir-commits] [mlir] [mlir][python] generate value builders (PR #68308)

Jacques Pienaar llvmlistbot at llvm.org
Mon Oct 9 08:54:45 PDT 2023


================
@@ -2,4 +2,42 @@
 #  See https://llvm.org/LICENSE.txt for license information.
 #  SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 
+from typing import Optional, Sequence
+
 from ._scf_ops_gen import *
+from .arith import constant
+from ..ir import *
+
+
+def for_(
+    start,
+    stop=None,
+    step=None,
+    iter_args: Optional[Sequence[Value]] = None,
----------------
jpienaar wrote:

I recall the build bot was still using an old version of Python that made it fail on type annotations, could this be done as a NFC follow up and/or just check if it fails to address here.

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


More information about the Mlir-commits mailing list