llvm-capstone/mlir/unittests
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 support for extracting an integer sample point (if one exists) from an unbounded FlatAffineConstraints. 2021-01-22 22:28:38 +05:30
Dialect Reland "[MLIR] Make structured op tests permutation invariant" 2021-02-18 18:09:49 -08:00
ExecutionEngine [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
Interfaces [mlir] fix cmake build 2021-03-11 18:22:00 +01:00
IR [mlir] Model MemRef memory space as Attribute 2021-03-10 12:57:27 +03:00
Pass [flang] Use mlir::OpState::operator->() to get to methods of mlir::Operation. 2020-12-14 20:04:53 +01:00
SDBM Remove global dialect registration 2020-10-24 00:35:55 +00:00
Support [mlir][StorageUniquer] Properly call the destructor on non-trivially destructible storage instances 2021-03-11 11:35:32 -08:00
TableGen [mlir][ODS] Support specialized Attribute class for Enums 2021-03-17 16:44:24 +03:00
CMakeLists.txt [mlir] Introduce data layout modeling subsystem 2021-03-11 16:54:47 +01:00