llvm-project/mlir/docs
River Riddle 8c39e70679 [mlir][OpFormatGen] Add support for eliding UnitAttr when used to anchor an optional group
Unit attributes are given meaning by their existence, and thus have no meaningful value beyond "is it present". As such, in the format of an operation unit attributes are generally used to guard the printing of other elements and aren't generally printed themselves; as the presence of the group when parsing means that the unit attribute should be added. This revision adds support to the declarative format for eliding unit attributes in situations where they anchor an optional group, but aren't the first element.

For example,
```
let assemblyFormat = "(`is_optional` $unit_attr^)? attr-dict";
```

would print `foo.op is_optional` when $unit_attr is present, instead of the current `foo.op is_optional unit`.

Differential Revision: https://reviews.llvm.org/D84577
2020-08-03 14:31:41 -07:00
..
Bindings Add Python bindings guide. 2020-07-09 20:49:39 -07:00
Dialects [MLIR][Linalg] Fixed obsolete examples in the MLIR Linalg Dialect doc 2020-07-28 19:42:59 +00:00
Rationale [mlir] Allow index as element type of memref 2020-07-30 14:35:22 +02:00
Tutorials [mlir] Support for mutable types 2020-07-27 13:07:44 +02:00
includes/img Adjust some MLIR paths and docs 2019-12-24 02:23:01 +00:00
CMakeLists.txt Remove CMake configuration for Sphinx targets in MLIR 2020-03-12 01:28:38 +00:00
Canonicalization.md Fix broken doc links to QuickstartRewrites.md after move under Tutorials 2020-04-19 04:51:03 +00:00
ConversionToLLVMDialect.md [mlir] minor tweaks in standard-to-llvm lowering 2020-06-30 21:19:19 +02:00
DeclarativeRewrites.md [mlir] NFC: fix trivial typo 2020-04-29 14:47:56 +09:00
Diagnostics.md [Support] Move LLD's parallel algorithm wrappers to support 2020-05-05 15:21:05 -07:00
DialectConversion.md [mlir][DialectConversion] Refactor how block argument types get converted 2020-06-18 15:59:22 -07:00
EDSC.md [mlir] Change dialect namespace loop->scf 2020-05-13 19:20:21 +02:00
GenericDAGRewriter.md [mlir][docs] Remove the MLIR prefix from several titles. 2020-04-11 14:49:03 -07:00
Interfaces.md [MLIR] Add RegionKindInterface 2020-07-15 14:27:05 -07:00
LangRef.md [MLIR] Missing line breaks in MLIR Language Reference 2020-07-24 05:06:32 +00:00
OpDefinitions.md [mlir][OpFormatGen] Add support for eliding UnitAttr when used to anchor an optional group 2020-08-03 14:31:41 -07:00
PassManagement.md [mlir][PassIncGen] Refactor how pass registration is generated 2020-07-31 13:20:37 -07:00
Passes.md Revert "Revert "[MLIR] Lower shape.num_elements -> shape.reduce."" 2020-06-08 12:19:54 +02: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]: NFC: Fix trivial typo in documents and comments 2020-07-23 23:40:57 +09:00
ShapeInference.md [mlir] NFC: fix trivial typo 2020-04-29 14:47:56 +09:00
SymbolsAndSymbolTables.md Fix broken docs links (WritingAPass.md was renamed PassManagement.md) 2020-04-19 04:38:56 +00:00
Traits.md [mlir] Refactor InterfaceGen to support generating interfaces for Attributes and Types. 2020-06-30 15:52:33 -07:00
doxygen-mainpage.dox [mlir] Bootstrap doxygen config 2020-01-25 09:31:59 -08:00
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.