[Mlir-commits] [mlir] [MLIR][Python] Register Containers as Sequences for `match` compatibility (PR #174091)
Maksim Levental
llvmlistbot at llvm.org
Wed Dec 31 05:42:35 PST 2025
================
@@ -4951,6 +4951,22 @@ void mlir::python::populateIRCore(nb::module_ &m) {
PyRegionIterator::bind(m);
PyRegionList::bind(m);
+ // Register containers as Sequences, so they can be used with `match`.
----------------
makslevental wrote:
No need to do this in cpp - you can just do it at the top of https://github.com/llvm/llvm-project/blob/main/mlir/python/mlir/_mlir_libs/__init__.py
https://github.com/llvm/llvm-project/pull/174091
More information about the Mlir-commits
mailing list