llvm-project/mlir/unittests
Vladislav Vinogradov e41ebbecf9 [mlir][RFC] Refactor layout representation in MemRefType
The change is based on the proposal from the following discussion:
https://llvm.discourse.group/t/rfc-memreftype-affine-maps-list-vs-single-item/3968

* Introduce `MemRefLayoutAttr` interface to get `AffineMap` from an `Attribute`
  (`AffineMapAttr` implements this interface).
* Store layout as a single generic `MemRefLayoutAttr`.

This change removes the affine map composition feature and related API.
Actually, while the `MemRefType` itself supported it, almost none of the upstream
can work with more than 1 affine map in `MemRefType`.

The introduced `MemRefLayoutAttr` allows to re-implement this feature
in a more stable way - via separate attribute class.

Also the interface allows to use different layout representations rather than affine maps.
For example, the described "stride + offset" form, which is currently supported in ASM parser only,
can now be expressed as separate attribute.

Reviewed By: ftynse, bondhugula

Differential Revision: https://reviews.llvm.org/D111553
2021-10-19 12:31:15 +03:00
..
Analysis [MLIR] Add functionality to remove redundant local variables 2021-09-25 16:10:43 +05:30
Dialect [mlir][sparse] add support for std unary operations 2021-07-13 14:51:13 -07:00
ExecutionEngine [MLIR] Replace std ops with arith dialect ops 2021-10-13 03:07:03 +00:00
IR [mlir][RFC] Refactor layout representation in MemRefType 2021-10-19 12:31:15 +03:00
Interfaces [MLIR] Replace std ops with arith dialect ops 2021-10-13 03:07:03 +00:00
Pass Defend early against operation created without a registered dialect 2021-07-15 03:52:32 +00:00
Rewrite Fix memory leaks in MLIR unit-tests (NFC) 2021-10-02 21:31:46 +00:00
Support [mlir][StorageUniquer] Properly call the destructor on non-trivially destructible storage instances 2021-03-11 11:35:32 -08:00
TableGen Fix memory leaks in mlir/unittests/MLIRTableGenTests 2021-10-02 21:06:02 +00:00
Transforms [mlir] Make ConversionTarget dynamic legality callbacks composable 2021-10-12 13:05:54 +03:00
CMakeLists.txt [mlir] Make ConversionTarget dynamic legality callbacks composable 2021-10-12 13:05:54 +03:00