llvm-project/mlir/lib/Dialect/Utils
Yi Zhang 8ed66cb88b [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type
`memref.collapse_shape` has verification logic to make sure
result dim must be static if all the collapsing src dims are static.
Cast folding might add more static information for the src operand
of `memref.collapse_shape` which might change a valid collapsing
operation to be invalid. Add `CollapseShapeOpMemRefCastFolder` pattern
to fix this.

Minor changes to `convertReassociationIndicesToExprs` to use `context`
instead of `builder` to avoid extra steps to construct temporary
builders.

Reviewed By: nicolasvasilache, mravishankar

Differential Revision: https://reviews.llvm.org/D106670
2021-07-28 10:19:20 +00:00
..
CMakeLists.txt [mlir] Move common reshapeops-related code to ReshapeOpsUtils.h. 2021-07-07 14:56:16 +02:00
ReshapeOpsUtils.cpp [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type 2021-07-28 10:19:20 +00:00
StaticValueUtils.cpp [mlir][NFC] Move asOpFoldResult helper functions to StaticValueUtils 2021-07-15 10:28:57 +09:00
StructuredOpsUtils.cpp Reland "[MLIR] Make structured op tests permutation invariant" 2021-02-18 18:09:49 -08:00