llvm-project/mlir/tools
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
..
mlir-cpu-runner Reland [mlir] Remove uses of LLVM's legacy pass manager 2022-04-11 16:53:32 -07:00
mlir-linalg-ods-gen [mlir][OpDSL] Support pointwise ops with rank zero inputs. 2022-03-08 17:39:47 +00:00
mlir-lsp-server [mlir:Analysis] Move the LoopAnalysis library to Dialect/Affine/Analysis 2022-01-18 10:28:22 -08:00
mlir-opt [mlir][cf-sink] Accept a callback for sinking operations 2022-03-28 19:31:23 +00:00
mlir-parser-fuzzer [mlir] Add simple fuzzer for textual format 2022-03-23 14:33:50 -07:00
mlir-pdll [PDLL] Add support for tablegen includes and importing ODS information 2022-03-03 16:14:03 -08:00
mlir-pdll-lsp-server [mlir][PDLL] Add an initial language server for PDLL 2022-03-19 13:28:23 -07:00
mlir-reduce [MLIR] Move TestDialect to ::test namespace 2021-08-14 13:24:41 -07:00
mlir-shlib [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-spirv-cpu-runner Reland [mlir] Remove uses of LLVM's legacy pass manager 2022-04-11 16:53:32 -07:00
mlir-tblgen [mlir][ods] Remove StrEnumAttr 2022-04-13 17:49:02 +00:00
mlir-translate [mlir][NFC] Move Translation.h to a Tools/mlir-translate directory 2022-03-07 01:05:38 -08:00
mlir-vulkan-runner Reland [mlir] Remove uses of LLVM's legacy pass manager 2022-04-11 16:53:32 -07:00
CMakeLists.txt [mlir] Add simple fuzzer for textual format 2022-03-23 14:33:50 -07:00