llvm-project/mlir
MaheshRavishankar de2568aab8 [mlir][Linalg] Rethink fusion of linalg ops with reshape ops.
The current fusion on tensors fuses reshape ops with generic ops by
linearizing the indexing maps of the fused tensor in the generic
op. This has some limitations
- It only works for static shapes
- The resulting indexing map has a linearization that would be
  potentially prevent fusion later on (for ex. tile + fuse).

Instead, try to fuse the reshape consumer (producer) with generic op
producer (consumer) by expanding the dimensionality of the generic op
when the reshape is expanding (folding).  This approach conflicts with
the linearization approach. The expansion method is used instead of
the linearization method.

Further refactoring that changes the fusion on tensors to be a
collection of patterns.

Differential Revision: https://reviews.llvm.org/D89002
2020-10-14 13:50:31 -07:00
..
cmake/modules [MLIR] Add support for defining Types in tblgen 2020-10-14 00:32:18 +00:00
docs [mlir] Remove obsolete "Quantization" section from the rationale. 2020-10-13 20:45:19 -07:00
examples Revert "[RFC] Factor out repetitive cmake patterns for llvm-style projects" 2020-10-04 15:17:34 -07:00
include [mlir][Linalg] Rethink fusion of linalg ops with reshape ops. 2020-10-14 13:50:31 -07:00
integration_test [mlir] Linalg refactor for using "bufferize" terminology. 2020-10-14 12:39:15 -07:00
lib [mlir][Linalg] Rethink fusion of linalg ops with reshape ops. 2020-10-14 13:50:31 -07:00
test [mlir][Linalg] Rethink fusion of linalg ops with reshape ops. 2020-10-14 13:50:31 -07:00
tools [DDR] Introduce implicit equality check for the source pattern operands with the same name. 2020-10-14 11:05:13 -07:00
unittests [mlir] Fix bug in computing operation order 2020-10-09 12:18:52 +01:00
utils Add GDB prettyprinters for a few more MLIR types. 2020-09-30 21:22:47 +02:00
.clang-format
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt Revert "[RFC] Factor out repetitive cmake patterns for llvm-style projects" 2020-10-04 15:17:34 -07:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.