llvm-project/mlir/test/lib
Vladislav Vinogradov fee9054232 [mlir][ODS] Support specialized Attribute class for Enums
Add a feature to `EnumAttr` definition to generate
specialized Attribute class for the particular enumeration.

This class will inherit `StringAttr` or `IntegerAttr` and
will override `classof` and `getValue` methods.

With this class the enumeration predicate can be checked with simple
RTTI calls (`isa`, `dyn_cast`) and it will return the typed enumeration
directly instead of raw string/integer.

Based on the following discussion:
https://llvm.discourse.group/t/rfc-add-enum-attribute-decorator-class/2252

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D97836
2021-03-17 16:44:24 +03:00
..
Analysis [mlir] Add initial support for an alias analysis framework in MLIR 2021-02-09 14:21:27 -08:00
Dialect [mlir][ODS] Support specialized Attribute class for Enums 2021-03-17 16:44:24 +03:00
IR [mlir][IR] Add a new SymbolUserMap class 2021-03-09 15:07:52 -08:00
Pass [mlir][BuiltinDialect] Resolve comments from D91571 2020-11-19 11:12:49 -08:00
Reducer
Rewrite [mlir][PDL] Add support for variadic operands and results in the PDL byte code 2021-03-16 13:20:19 -07:00
Transforms [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
CMakeLists.txt [mlir] Add initial support for an alias analysis framework in MLIR 2021-02-09 14:21:27 -08:00