[Mlir-commits] [mlir] [MLIR][transform][python] add sugared python abstractions for transform dialect (PR #75073)

Maksim Levental llvmlistbot at llvm.org
Mon Dec 11 09:51:21 PST 2023


Martin =?utf-8?q?Lu=CC=88cke?= <martin.luecke at ed.ac.uk>,
Martin =?utf-8?q?Lu=CC=88cke?= <martin.luecke at ed.ac.uk>,
Martin =?utf-8?q?Lu=CC=88cke?= <martin.luecke at ed.ac.uk>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/75073 at github.com>


================
@@ -0,0 +1,126 @@
+from __future__ import annotations
+
+import abc
+from dataclasses import dataclass, field
+from typing import Callable, Optional, Sequence
+
+try:
+    from .... import ir
+    from ....dialects import transform
+    from ....dialects.transform import structured
+except ImportError as e:
+    raise RuntimeError("Error loading imports") from e
----------------
makslevental wrote:

Nit: I don't think you really need this?

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


More information about the Mlir-commits mailing list