Fix MLIR Python binding for arith.constant after argument has been changed to an...
authorMehdi Amini <joker.eph@gmail.com>
Mon, 1 Aug 2022 08:52:41 +0000 (08:52 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 1 Aug 2022 09:06:55 +0000 (09:06 +0000)
commitec5def5e20f6ae9fe8cc30e5ee152d4b239e1e95
tree181d6f45f9a641486ebec598a957104f23e36e93
parent6e1ba62d0dd27686aa7779a122e04ac5abc6cecf
Fix MLIR Python binding for arith.constant after argument has been changed to an interface

e1795322844c removed the Type field from attributes and
arith::ConstantOp argument is now a TypedAttrInterface which isn't
supported by the python generator.
This patch temporarily restore the functionality for arith.constant but
won't generalize: we need to work on the generator instead.

Differential Revision: https://reviews.llvm.org/D130878
mlir/python/mlir/dialects/_arith_ops_ext.py
mlir/test/python/dialects/arith_dialect.py [new file with mode: 0644]