[all-commits] [llvm/llvm-project] f23902: [mlir][linalg][python] Add min operation in OpDSL.

Tobias Gysi via All-commits all-commits at lists.llvm.org
Fri Jul 2 09:31:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f239026f89b24e4eeaf16f171f95da53e28f36f0
      https://github.com/llvm/llvm-project/commit/f239026f89b24e4eeaf16f171f95da53e28f36f0
  Author: Tobias Gysi <gysit at google.com>
  Date:   2021-07-02 (Fri, 02 Jul 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py
    M mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py
    M mlir/python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py
    M mlir/test/Dialect/Linalg/generalize-named-polymorphic-ops.mlir
    M mlir/test/python/dialects/linalg/opdsl/emit_structured_generic.py
    M mlir/test/python/integration/dialects/linalg/opsrun.py

  Log Message:
  -----------
  [mlir][linalg][python] Add min operation in OpDSL.

Add the min operation to OpDSL and introduce a min pooling operation to test the implementation. The patch is a sibling of the max operation patch https://reviews.llvm.org/D105203 and the min operation is again lowered to a compare and select pair.

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




More information about the All-commits mailing list