llvm-project/mlir/test/CAPI
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
..
CMakeLists.txt Remove libMLIRPublicAPI DSO. 2021-07-20 17:58:28 -07:00
execution_engine.c [MLIR] Replace std ops with arith dialect ops 2021-10-13 03:07:03 +00:00
ir.c [mlir][RFC] Refactor layout representation in MemRefType 2021-10-19 12:31:15 +03:00
lit.local.cfg
llvm.c Add more types to the LLVM dialect C API 2021-07-13 14:35:50 -07:00
pass.c [MLIR] Replace std ops with arith dialect ops 2021-10-13 03:07:03 +00:00
sparse_tensor.c [mlir] Fix windows build bot break due to use of `alloca` in a test. 2021-05-10 20:39:16 +00:00