[all-commits] [llvm/llvm-project] ec5def: Fix MLIR Python binding for arith.constant after a...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Mon Aug 1 02:07:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec5def5e20f6ae9fe8cc30e5ee152d4b239e1e95
      https://github.com/llvm/llvm-project/commit/ec5def5e20f6ae9fe8cc30e5ee152d4b239e1e95
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2022-08-01 (Mon, 01 Aug 2022)

  Changed paths:
    M mlir/python/mlir/dialects/_arith_ops_ext.py
    A mlir/test/python/dialects/arith_dialect.py

  Log Message:
  -----------
  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




More information about the All-commits mailing list