[all-commits] [llvm/llvm-project] d716cf: [mlir] Use public PybindAdaptors in Linalg dialect...

ftynse via All-commits all-commits at lists.llvm.org
Wed Jan 5 07:18:44 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d716cfc4fa3e2152df73dcb9eda693303c8a33a9
      https://github.com/llvm/llvm-project/commit/d716cfc4fa3e2152df73dcb9eda693303c8a33a9
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2022-01-05 (Wed, 05 Jan 2022)

  Changed paths:
    M mlir/include/mlir-c/Dialect/Linalg.h
    M mlir/lib/Bindings/Python/DialectLinalg.cpp
    M mlir/lib/CAPI/Dialect/Linalg.cpp
    M mlir/python/mlir/dialects/_linalg_ops_ext.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py

  Log Message:
  -----------
  [mlir] Use public PybindAdaptors in Linalg dialect bindings

Previously, the Python bindings for the Linalg dialect relied on the internal
implementation of core bindings. Most of that functionality was moved, and the
remaining one does not need access to the implementation: it used to accept a
dialect pointer as argument, but it can always be extracted from the operation
that it also accepts; operations are available through PybindAdaptors in an
opaque way. Change the bindings in that direction.

This enables the decoupling of the Linalg dialect Python extension from the
core IR Python extension.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D116649




More information about the All-commits mailing list