llvm-project/mlir/lib/Dialect/GPU/Transforms
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
..
AllReduceLowering.cpp [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
AsyncRegionRewriter.cpp Pass GPU events instead of streams across async regions. 2021-02-25 13:18:18 +01:00
KernelOutlining.cpp [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
MemoryPromotion.cpp [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
ParallelLoopMapper.cpp [mlir][ODS] Support specialized Attribute class for Enums 2021-03-17 16:44:24 +03:00
PassDetail.h [mlir] Make GpuAsyncRegion pass depend on async dialect. 2021-01-11 14:43:07 +01:00
SerializeToBlob.cpp [mlir] Add NVVM to CUBIN conversion to mlir-opt 2021-03-11 10:07:11 +01:00
SerializeToCubin.cpp [mlir] Add NVVM to CUBIN conversion to mlir-opt 2021-03-11 10:07:11 +01:00