[PATCH] D73656: [mlir][Linalg] Add a Linalg DRR test to go from matmul to vectors

Nicolas Vasilache via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 11:49:35 PST 2020


nicolasvasilache created this revision.
nicolasvasilache added reviewers: ftynse, tetuante, rriddle.
Herald added subscribers: llvm-commits, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, mehdi_amini, dexonsmith, steven_wu, hiraditya, mgorny.
Herald added a project: LLVM.

This diff builds a simple fused pass consisting of 2 levels of tiling, memory promotion and
vectorization using linalg transformations written as composable pattern rewrites.

At the moment there seems to be some pattern interference issue and we cannot have just one
pass. So an extra canonicalization pass is called to make all this work end-to-end.

In the future all should be merged in a single custom fused test pass.
In the meantime this also acts as a bug repro.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73656

Files:
  mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.h
  mlir/test/Dialect/Linalg/matmul-to-vector.mlir
  mlir/test/lib/DeclarativeTransforms/CMakeLists.txt
  mlir/test/lib/DeclarativeTransforms/TestLinalgMatmulToVectorPatterns.td
  mlir/test/lib/Transforms/CMakeLists.txt
  mlir/test/lib/Transforms/TestLinalgMatmulToVector.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73656.241244.patch
Type: text/x-patch
Size: 8834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200129/9cd7a6ac/attachment.bin>


More information about the llvm-commits mailing list