llvm-project/mlir/docs
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
..
Bindings [mlir:FunctionOpInterface] Rename the "type" attribute to "function_type" 2022-03-16 17:07:04 -07:00
Dialects [mlir][emitc] Adapt to move of FuncOp 2022-03-28 17:44:47 +02:00
Rationale [mlir] Split out a new ControlFlow dialect from Standard 2022-02-06 14:51:16 -08:00
Tools [mlir][docs] Fix obvious spelling mistakes in documentation 2021-10-29 09:19:11 +02:00
Tutorials [mlir] Prefix pass manager options with `mlir-` 2022-04-12 09:32:44 +00:00
includes/img [mlir] Split out a new ControlFlow dialect from Standard 2022-02-06 14:51:16 -08:00
AttributesAndTypes.md [mlir][docs] Fix broken links 2022-04-13 16:18:20 +02:00
BufferDeallocationInternals.md [mlir] Split out a new ControlFlow dialect from Standard 2022-02-06 14:51:16 -08:00
Bufferization.md [mlir][bufferize] Update documentation with allow-return-allocs 2022-03-16 23:30:09 +09:00
CAPI.md [mlir] support interfaces in Python bindings 2021-10-25 12:50:42 +02:00
CMakeLists.txt Remove CMake configuration for Sphinx targets in MLIR 2020-03-12 01:28:38 +00:00
Canonicalization.md [mlir:docs] Add proper documentation for defining dialects 2022-04-11 15:05:57 -07:00
DataLayout.md [mlir][NFC] Replace references to Identifier with StringAttr 2021-11-16 17:36:26 +00:00
DebugActions.md [mlir][doc] Fix links and references in top level docs directory 2021-05-24 18:43:00 +02:00
DeclarativeRewrites.md [mlir-tblgen] Support `either` in Tablegen DRR. 2021-11-08 23:16:03 +00:00
DefiningDialects.md [mlir:docs] Add proper documentation for defining dialects 2022-04-11 15:05:57 -07:00
Diagnostics.md [mlir] Fix dumping invalid ops 2022-03-07 08:32:31 -08:00
DialectConversion.md [mlir] Rename the Standard dialect to the Func dialect 2022-03-01 12:10:04 -08:00
Interfaces.md Fix grammar and punctuation across several docs; NFC 2022-04-07 07:11:11 -04:00
LangRef.md [MLIR] Add nested symbols into LangRef 2022-04-04 22:06:19 +05:30
OpDefinitions.md [mlir][ods] Remove StrEnumAttr 2022-04-13 17:49:02 +00:00
PDLL.md Fix grammar and punctuation across several docs; NFC 2022-04-07 07:11:11 -04:00
PassManagement.md [mlir] Prefix pass manager options with `mlir-` 2022-04-12 09:32:44 +00:00
Passes.md [mlir] Rename the Standard dialect to the Func dialect 2022-03-01 12:10:04 -08:00
PatternRewriter.md Fix grammar and punctuation across several docs; NFC 2022-04-07 07:11:11 -04:00
Quantization.md Fix invalid math formulas in quantization doc 2021-06-01 03:50:59 +00:00
README.txt [mlir] Add short readme.txt to docs directory 2020-02-18 08:35:22 -08:00
SPIRVToLLVMDialectConversion.md [MLIR] Replace std ops with arith dialect ops 2021-10-13 03:07:03 +00:00
ShapeInference.md [mlir][docs] Fix obvious spelling mistakes in documentation 2021-10-29 09:19:11 +02:00
SymbolsAndSymbolTables.md [mlir] Move the Builtin FuncOp to the Func dialect 2022-03-16 17:07:03 -07:00
TargetLLVMIR.md [mlir] Move the Builtin FuncOp to the Func dialect 2022-03-16 17:07:03 -07:00
Traits.md [mlir] Support verification order (2/3) 2022-02-25 19:04:56 +00:00
doxygen-mainpage.dox
doxygen.cfg.in [NFC] Inclusive Language: change master to main for .chm files 2021-11-08 08:23:04 -06:00

README.txt

MLIR documentation
==================

Please note mlir.llvm.org is where MLIR's rendered documentation is displayed.
The viewing experience on GitHub or elsewhere may not match those of the
website. For any changes please verify instead that they work on the main
website first.

See https://github.com/llvm/mlir-www for the website generation information.