[all-commits] [llvm/llvm-project] 662f9b: [mlir][linalg][python] Adapt the OpDSL to use scal...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Tue Jun 15 06:20:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 662f9bff337b99819301113fc8634eb5123b9e23
      https://github.com/llvm/llvm-project/commit/662f9bff337b99819301113fc8634eb5123b9e23
  Author: Tobias Gysi <gysit at google.com>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/config.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/dsl.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/scalar_expr.py
    M mlir/python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py
    M mlir/test/python/dialects/linalg/opdsl/arguments.py
    M mlir/test/python/dialects/linalg/opdsl/assignments.py
    M mlir/test/python/dialects/linalg/opdsl/emit_structured_generic.py
    M mlir/test/python/dialects/linalg/opsrun.py

  Log Message:
  -----------
  [mlir][linalg][python] Adapt the OpDSL to use scalars.

The patch replaces the existing capture functionality by scalar operands that have been introduced by https://reviews.llvm.org/D104109. Scalar operands behave as tensor operands except for the fact that they are not indexed. As a result ScalarDefs can be accessed directly as no indexing expression is needed.

The patch only updates the OpDSL. The C++ side is updated by a follow up patch.

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




More information about the All-commits mailing list