llvm-project/mlir/include/mlir-c
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
..
Bindings/Python [mlir][python] Makes C++ extension code relocatable by way of a macro. 2021-08-22 13:46:14 -07:00
Dialect Add more types to the LLVM dialect C API 2021-07-13 14:35:50 -07:00
AffineExpr.h [mlir] Use more C99 comments in C API header files 2021-01-25 19:23:06 +01:00
AffineMap.h [mlir][linalg][python] Add attribute support to the OpDSL. 2021-06-24 09:40:32 +00:00
BuiltinAttributes.h [mlir] Extend C and Python API to support bulk loading of DenseElementsAttr. 2021-10-07 08:42:12 -07:00
BuiltinTypes.h [mlir][RFC] Refactor layout representation in MemRefType 2021-10-19 12:31:15 +03:00
Conversion.h Add C bindings for mlir::ExecutionEngine 2021-03-03 18:19:40 +00:00
Debug.h [mlir] Improve debug flag management in Python bindings 2021-04-19 14:45:43 +02:00
Diagnostics.h [mlir] Use more C99 comments in C API header files 2021-01-25 19:23:06 +01:00
ExecutionEngine.h [MLIR] Execution engine python binding support for shared libraries 2021-06-12 05:46:38 +05:30
IR.h [mlir][python] Add 'loc' property to ops 2021-10-18 16:01:12 +02:00
IntegerSet.h [mlir] Add C API for IntegerSet 2021-01-25 20:16:22 +01:00
Pass.h [mlir][python] Add simple debugging and printing helpers 2021-04-16 13:47:46 +00:00
Registration.h [mlir][python] Provide "all passes" registration module in Python 2021-05-26 15:14:57 -07:00
Support.h Remove libMLIRPublicAPI DSO. 2021-07-20 17:58:28 -07:00
Transforms.h [mlir][CAPI] Proposal: Always building a libMLIRPublicAPI.so (re-apply). 2020-11-08 16:57:51 -08:00