[all-commits] [llvm/llvm-project] 6ce515: [MLIR][Python] Use ir.Value directly instead of _S...

Sergei Lebedev via All-commits all-commits at lists.llvm.org
Wed Feb 21 03:59:35 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ce5159945997126b8a0f40f55e876c9fd882fc5
      https://github.com/llvm/llvm-project/commit/6ce5159945997126b8a0f40f55e876c9fd882fc5
  Author: Sergei Lebedev <185856+superbobry at users.noreply.github.com>
  Date:   2024-02-21 (Wed, 21 Feb 2024)

  Changed paths:
    M mlir/python/mlir/_mlir_libs/_mlir/__init__.pyi
    M mlir/python/mlir/dialects/_ods_common.py
    M mlir/python/mlir/dialects/arith.py
    M mlir/test/mlir-tblgen/op-python-bindings.td
    M mlir/test/python/ir/value.py
    M mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp

  Log Message:
  -----------
  [MLIR][Python] Use ir.Value directly instead of _SubClassValueT (#82341)

_SubClassValueT is only useful when it is has >1 usage in a signature.
This was not true for the signatures produced by tblgen.

For example

def call(result, callee, operands_, *, loc=None, ip=None) ->
_SubClassValueT:
        ...

here a type checker does not have enough information to infer a type
argument for _SubClassValueT, and thus effectively treats it as Any.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list