llvm/mlir/lib/Parser
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
..
AffineParser.cpp
AsmParserImpl.h [MLIR] Expose optional attribute parsing functions 2021-10-18 11:45:43 -07:00
AsmParserState.cpp
AttributeParser.cpp Fix parsing of hex-format index dense tensor attributes. 2021-10-08 15:44:02 +00:00
CMakeLists.txt
DialectSymbolParser.cpp [mlir:OpAsm] Factor out the common bits of (Op/Dialect)Asm(Parser/Printer) 2021-09-24 20:12:19 +00:00
Lexer.cpp
Lexer.h
LocationParser.cpp
Parser.cpp [MLIR] Fix assert crash when an unregistered dialect op is encountered 2021-10-14 15:43:53 +05:30
Parser.h
ParserState.h
Token.cpp
Token.h
TokenKinds.def
TypeParser.cpp [mlir][RFC] Refactor layout representation in MemRefType 2021-10-19 12:31:15 +03:00