[all-commits] [llvm/llvm-project] d2a956: [mlir][Linalg] Allow reshapes to collapse to a zer...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Tue May 12 23:04:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d2a9569850166083638a8fb88f7dae1c1b62a926
      https://github.com/llvm/llvm-project/commit/d2a9569850166083638a8fb88f7dae1c1b62a926
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-05-12 (Tue, 12 May 2020)

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

  Log Message:
  -----------
  [mlir][Linalg] Allow reshapes to collapse to a zero-rank tensor.

This is only valid if the source tensors (result tensor) is static
shaped with all unit-extents when the reshape is collapsing
(expanding) dimensions.

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


  Commit: 5440d0a12d7f6f7f7689a7a733de7cc622605270
      https://github.com/llvm/llvm-project/commit/5440d0a12d7f6f7f7689a7a733de7cc622605270
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2020-05-12 (Tue, 12 May 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/test/Dialect/Linalg/canonicalize.mlir
    M mlir/test/Dialect/Linalg/llvm.mlir

  Log Message:
  -----------
  [mlir][Linalg] Add folders and canonicalizers for
linalg.reshape/linalg.tensor_reshape operations.

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


Compare: https://github.com/llvm/llvm-project/compare/782a4dd1a478...5440d0a12d7f


More information about the All-commits mailing list