[all-commits] [llvm/llvm-project] 894d88: [mlir][python] Add facility for extending generate...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Tue Jan 19 13:21:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 894d88a759c9376de4a48ed99c965aac97839b6c
      https://github.com/llvm/llvm-project/commit/894d88a759c9376de4a48ed99c965aac97839b6c
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2021-01-19 (Tue, 19 Jan 2021)

  Changed paths:
    A mlir/examples/python/.style.yapf
    M mlir/examples/python/linalg_matmul.py
    A mlir/lib/Bindings/Python/.style.yapf
    M mlir/lib/Bindings/Python/CMakeLists.txt
    M mlir/lib/Bindings/Python/mlir/dialects/__init__.py
    A mlir/lib/Bindings/Python/mlir/dialects/_linalg.py
    M mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp

  Log Message:
  -----------
  [mlir][python] Add facility for extending generated python ODS.

* This isn't exclusive with other mechanisms for more ODS centric op definitions, but based on discussions, we feel that we will always benefit from a python escape hatch, and that is the most natural way to write things that don't fit the mold.
* I suspect this facility needs further tweaking, and once it settles, I'll document it and add more tests.
* Added extensions for linalg, since it is unusable without them and continued to evolve my e2e example.

Reviewed By: ftynse

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




More information about the All-commits mailing list