hanchenye-llvm-project/mlir
Benjamin Kramer ff5de8a9e0 [linalg][fusion] Disallow fusion when it would create an invalid expand_shape
The input type of a linalg.generic can be less dynamic than its output
type. If this is the case moving a reshape across the generic op would
create invalid IR, as expand_shape cannot expand arbitrary dynamic
dimensions.

Check that the reshape is actually valid before creating the
expand_shape. This exposes the existing verification logic in reshape
utils and removes the incomplete custom implementation in fusion.

Differential Revision: https://reviews.llvm.org/D116600
2022-01-18 23:44:14 +01:00
..
cmake/modules Revert "[cmake] Use `GNUInstallDirs` to support custom installation dirs." 2022-01-16 05:48:30 +00:00
docs Clarify that fold() can't "erase" an operation in the MLIR Canonicalization doc (NFC) 2022-01-13 18:43:18 +00:00
examples Apply clang-tidy fixes for performance-unnecessary-value-param in MLIRGen.cpp (NFC) 2022-01-14 18:08:42 +00:00
include [linalg][fusion] Disallow fusion when it would create an invalid expand_shape 2022-01-18 23:44:14 +01:00
lib [linalg][fusion] Disallow fusion when it would create an invalid expand_shape 2022-01-18 23:44:14 +01:00
python Disable the MLIR ExecutionEngine library when the native target is not configured 2022-01-15 19:36:27 +00:00
test [linalg][fusion] Disallow fusion when it would create an invalid expand_shape 2022-01-18 23:44:14 +01:00
tools [mlir:Analysis] Move the LoopAnalysis library to Dialect/Affine/Analysis 2022-01-18 10:28:22 -08:00
unittests [mlir:Analysis] Move the LoopAnalysis library to Dialect/Affine/Analysis 2022-01-18 10:28:22 -08:00
utils Update mlir GDB printers 2022-01-06 22:20:25 +01:00
.clang-format
.clang-tidy Enable readability-redundant-smartptr-get in MLIR local clang-tidy config 2022-01-08 20:07:11 +00:00
CMakeLists.txt Revert "[cmake] Use `GNUInstallDirs` to support custom installation dirs." 2022-01-16 05:48:30 +00:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

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