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

Maksim Levental llvmlistbot at llvm.org
Mon Oct 9 13:37:39 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,
----------------
makslevental wrote:

Discussed offline (type hints evidently supported since various `_ext.py`s employ them)

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


More information about the Mlir-commits mailing list