[all-commits] [llvm/llvm-project] d4cba4: [mlir][linalg] Add structured op builders from pyt...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Fri Mar 19 11:21:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4cba4a188f419d1c2fc4b827c4a6a0310b0568e
      https://github.com/llvm/llvm-project/commit/d4cba4a188f419d1c2fc4b827c4a6a0310b0568e
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2021-03-19 (Fri, 19 Mar 2021)

  Changed paths:
    M mlir/lib/Bindings/Python/IRModules.cpp
    M mlir/lib/Bindings/Python/mlir/dialects/linalg/opdsl/lang/config.py
    M mlir/lib/Bindings/Python/mlir/dialects/linalg/opdsl/lang/dsl.py
    A mlir/lib/Bindings/Python/mlir/dialects/linalg/opdsl/lang/emitter.py
    A mlir/test/Bindings/Python/dialects/linalg/opdsl/emit_structured_generic.py
    M mlir/test/Bindings/Python/ir_types.py

  Log Message:
  -----------
  [mlir][linalg] Add structured op builders from python opdsl.

* Makes the wrapped functions of the `@linalg_structured_op` decorator callable such that they emit IR imperatively when invoked.
* There are numerous TODOs that I will keep working through to achieve generality.
* Will true up exception handling tests as the feature progresses (for things that are actually errors once everything is implemented).
* Includes the addition of an `isinstance` method on concrete types in the Python API.

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




More information about the All-commits mailing list