llvm-project/mlir/docs
River Riddle 6d6fe9ccc4 [mlir][OpAsmFormat] Add support for an "else" group on optional elements
The "else" group of an optional element is a collection of elements that get parsed/printed when the anchor of the main element group is *not* present. This is useful when there is a special syntax when an element is not present. The new syntax for an optional element is shown below:

```
optional-group: `(` elements `)` (`:` `(` else-elements `)`)? `?`
```

An example of how this might be used is shown below:

```tablegen
def FooOp : ... {
  let arguments = (ins UnitAttr:$foo);

  let assemblyFormat = "attr-dict (`foo_is_present` $foo^):(`foo_is_absent`)?";
}
```

would be formatted as such:

```mlir
// When the `foo` attribute is present:
foo.op foo_is_present

// When the `foo` attribute is not present:
foo.op foo_is_absent
```

Differential Revision: https://reviews.llvm.org/D99129
2021-03-22 18:19:23 -07:00
..
Bindings [mlir][python] Reorganize MLIR python into namespace packages. 2021-03-08 23:01:34 -08:00
Dialects [mlir][docs] Remove the BuiltinDialect documentation from langref and generate it from ODS 2021-03-19 18:21:33 -07:00
Rationale [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
Tools [mlir][linalg] Add linalg_opdsl tool first draft. 2021-03-05 11:45:09 -08:00
Tutorials Tidy up some docs. 2021-03-22 17:20:50 -07:00
includes/img [MLIR] Added documentation and manual to use bufferization features. 2020-11-12 10:43:05 +01:00
BufferDeallocationInternals.md Added documentation for SSA like property in Bufferization. 2021-03-17 12:49:37 +01:00
Bufferization.md [PatternMatch] Big mechanical rename OwningRewritePatternList -> RewritePatternSet and insert -> add. NFC 2021-03-22 17:20:50 -07:00
CAPI.md [mlir] NFC: fix trivial typos 2021-01-07 02:36:02 +09:00
CMakeLists.txt Remove CMake configuration for Sphinx targets in MLIR 2020-03-12 01:28:38 +00:00
Canonicalization.md [PatternMatch] Big mechanical rename OwningRewritePatternList -> RewritePatternSet and insert -> add. NFC 2021-03-22 17:20:50 -07:00
ConversionToLLVMDialect.md [mlir] Add better support for f80 and f128 2021-01-15 10:29:48 -05:00
DataLayout.md [mlir] Introduce data layout modeling subsystem 2021-03-11 16:54:47 +01:00
DebugActions.md [mlir] Add support for DebugCounters using the new DebugAction infrastructure 2021-02-23 01:01:17 -08:00
DeclarativeRewrites.md [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
Diagnostics.md [mlir][docs] Remove the BuiltinDialect documentation from langref and generate it from ODS 2021-03-19 18:21:33 -07:00
DialectConversion.md [mlir][doc] Correct method names in DialectConversion.md to match the code. 2020-12-02 00:04:07 -08:00
EDSC.md [mlir] Change dialect namespace loop->scf 2020-05-13 19:20:21 +02:00
Interfaces.md [mlir] Remove over specified memory effects 2021-01-14 14:49:41 -08:00
LLVMDialectMemRefConvention.md [mlir][llvm] Pass struct results as parameter in c wrapper 2021-03-17 12:58:52 +01:00
LangRef.md [mlir][docs] Remove the BuiltinDialect documentation from langref and generate it from ODS 2021-03-19 18:21:33 -07:00
OpDefinitions.md [mlir][OpAsmFormat] Add support for an "else" group on optional elements 2021-03-22 18:19:23 -07:00
PassManagement.md [mlir][docs] Small fix to local Pass Manager reproduction documentation 2021-02-24 11:47:34 -08:00
Passes.md [mlir] Add tensor passes to passes.md 2020-12-23 16:13:03 -08:00
PatternRewriter.md [PatternMatch] Big mechanical rename OwningRewritePatternList -> RewritePatternSet and insert -> add. NFC 2021-03-22 17:20:50 -07:00
Quantization.md [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
README.txt [mlir] Add short readme.txt to docs directory 2020-02-18 08:35:22 -08:00
SPIRVToLLVMDialectConversion.md [MLIR][SPIRV] Rename `spv.selection` to `spv.mlir.selection`. 2021-03-06 16:05:31 +01:00
ShapeInference.md [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
SymbolsAndSymbolTables.md [MLIR] Extend Symbol verification to reject public symbol declarations. 2020-11-16 16:05:32 -08:00
Traits.md [MLIR] Create memref dialect and move dialect-specific ops from std. 2021-03-15 11:14:09 +01:00
doxygen-mainpage.dox
doxygen.cfg.in [mlir] NFC: fix trivial typo 2020-04-29 14:47:56 +09: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.