[all-commits] [llvm/llvm-project] fd407e: [mlir] ODS-backed python binding generator for cus...

ftynse via All-commits all-commits at lists.llvm.org
Tue Nov 10 01:58:50 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fd407e1f1eed7deb4818509a8393ee930480d7f5
      https://github.com/llvm/llvm-project/commit/fd407e1f1eed7deb4818509a8393ee930480d7f5
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-11-10 (Tue, 10 Nov 2020)

  Changed paths:
    M mlir/CMakeLists.txt
    M mlir/cmake/modules/AddMLIRPythonExtension.cmake
    M mlir/include/mlir/Dialect/StandardOps/IR/CMakeLists.txt
    M mlir/lib/Bindings/Python/CMakeLists.txt
    M mlir/lib/Bindings/Python/mlir/dialects/__init__.py
    R mlir/lib/Bindings/Python/mlir/dialects/std.py
    M mlir/test/Bindings/Python/dialects.py
    A mlir/test/Bindings/Python/dialects/std.py
    A mlir/test/mlir-tblgen/op-python-bindings.td
    M mlir/tools/mlir-tblgen/CMakeLists.txt
    A mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp

  Log Message:
  -----------
  [mlir] ODS-backed python binding generator for custom op classes

Introduce an ODS/Tablegen backend producing Op wrappers for Python bindings
based on the ODS operation definition. Usage:

  mlir-tblgen -gen-python-op-bindings -Iinclude <path/to/Ops.td> \
              -bind-dialect=<dialect-name>

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list