[all-commits] [llvm/llvm-project] 95630b: [mlir][Linalg] Add MapOp to Linalg structured ops.

Adrian Kuegel via All-commits all-commits at lists.llvm.org
Wed Oct 12 04:56:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95630b93b00302d3a9b0ea3219235259e5de2109
      https://github.com/llvm/llvm-project/commit/95630b93b00302d3a9b0ea3219235259e5de2109
  Author: Adrian Kuegel <akuegel at google.com>
  Date:   2022-10-12 (Wed, 12 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/test/Dialect/Linalg/invalid.mlir
    M mlir/test/Dialect/Linalg/roundtrip.mlir

  Log Message:
  -----------
  [mlir][Linalg] Add MapOp to Linalg structured ops.

This will allow to model elementwise ops with this special op instead of using
GenericOp.
Also allow MapOp and ReduceOp to have no result if the output type is not a tensor.
This is needed for buffer semantics.

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




More information about the All-commits mailing list