[Mlir-commits] [mlir] [mlir][python] Fixup the constantTypes of pdl.TypesOp (PR #75812)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Wed Dec 20 09:30:35 PST 2023


ftynse wrote:

> The issue I'm experiencing is that I write a python script to transform a function in MLIR.

I see, thanks these details. In this case, all the discussion about `pdl_interp`, attr builders and transform dialect is moot. The bindings are incorrectly overriding the behavior: `None` should be interpreted as no attribute instead of empty list attribute. Please add a test in `mlir/test/python/dialects/pdl_ops.py` that exercises both behaviors and checks the output IR, and we should be able to land this.

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


More information about the Mlir-commits mailing list