[Mlir-commits] [mlir] [MLIR][transform][python] add sugared python abstractions for transform dialect (PR #75073)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Dec 13 06:52:46 PST 2023
Martin =?utf-8?q?Lücke?= <martin.luecke at ed.ac.uk>,
Martin =?utf-8?q?Lücke?= <martin.luecke at ed.ac.uk>,
Martin =?utf-8?q?Lücke?= <martin.luecke at ed.ac.uk>,
Martin =?utf-8?q?Lücke?= <martin.luecke at ed.ac.uk>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/75073 at github.com>
================
@@ -495,6 +495,8 @@ class mlir_type_subclass : public pure_subclass {
.attr("replace")(superCls.attr("__name__"), captureTypeName);
});
if (getTypeIDFunction) {
+ def_staticmethod("get_static_typeid",
+ [getTypeIDFunction]() { return getTypeIDFunction(); });
----------------
martin-luecke wrote:
This should probably better be `def_property_readonly_static(...` as defined in Pybind and used by `PyConcreteType` [here](https://github.com/llvm/llvm-project/blob/fd1ddd1bca4d43c49862274c12981b36e7a1ffe8/mlir/lib/Bindings/Python/IRModule.h#L950), but I am missing context to reimplement this.
https://github.com/llvm/llvm-project/pull/75073
More information about the Mlir-commits
mailing list