llvm-project/mlir/unittests
Mogball 60e34f8ddd [mlir][ods] Remove StrEnumAttr
StrEnumAttr has been deprecated in favour of EnumAttr, a solution based on AttrDef (https://reviews.llvm.org/D115181). This patch removes StrEnumAttr, along with all the custom ODS logic required to handle it.

See https://discourse.llvm.org/t/psa-stop-using-strenumattr-do-use-enumattr/5710 on how to transition to EnumAttr. In short,

```
// Before
def MyEnumAttr : StrEnumAttr<"MyEnum", "", [
  StrEnumAttrCase<"A">,
  StrEnumAttrCase<"B">
]>;

// After (pick an integer enum of your choice)
def MyEnum : I32EnumAttr<"MyEnum", "", [
  I32EnumAttrCase<"A", 0>,
  I32EnumAttrCase<"B", 1>
]> {
  // Don't generate a C++ class! We want to use the AttrDef
  let genSpecializedAttr = 0;
}
// Define the AttrDef
def MyEnum : EnumAttr<MyDialect, MyEnum, "my_enum">;
```

Reviewed By: rriddle, jpienaar

Differential Revision: https://reviews.llvm.org/D120834
2022-04-13 17:49:02 +00:00
..
Analysis [MLIR][Presburger] IntegerPolyhedron: add support for symbolic integer lexmin 2022-04-05 18:50:34 +01:00
Conversion [mlir] Trim a huge number of unnecessary dependencies on the Func dialect 2022-03-01 12:10:04 -08:00
Dialect [MLIR][Affine][Analysis] Merge FAC and FACV 2022-04-06 03:02:32 +05:30
ExecutionEngine [mlir] Move the Builtin FuncOp to the Func dialect 2022-03-16 17:07:03 -07:00
IR [mlir] Rework the implementation of TypeID 2022-04-04 13:52:26 -07:00
Interfaces [mlir] Rework the implementation of TypeID 2022-04-04 13:52:26 -07:00
Pass [mlir] Rework the implementation of TypeID 2022-04-04 13:52:26 -07:00
Rewrite Fix memory leaks in MLIR unit-tests (NFC) 2021-10-02 21:31:46 +00:00
Support [MLIR] Add forgotten directory Support to unittests cmake 2021-12-27 14:42:48 +05:30
TableGen [mlir][ods] Remove StrEnumAttr 2022-04-13 17:49:02 +00:00
Transforms [mlir] Rework the implementation of TypeID 2022-04-04 13:52:26 -07:00
CMakeLists.txt Mark some MLIR tests as requiring the native target to be configured 2022-01-14 07:23:14 +00:00