llvm-project/mlir/docs
Jeremy Furtek f6ee194b68 [mlir][ods] Do not print default-valued attributes when the value is equal to the default
This diff causes the `tblgen`-erated print() function to skip printing a
`DefaultValuedAttr` attribute when the value is equal to the default.

This feature will reduce the amount of custom printing code that needs to be
written by users a relatively common scenario. As a motivating example, for the
fastmath flags in the LLVMIR dialect, we would prefer to print this:

```
%0 = llvm.fadd %arg0, %arg1 : f32
```

instead of this:

```
%0 = llvm.fadd %arg0, %arg1 {fastmathFlags = #llvm.fastmath<none>} : f32
```

This diff makes the handling of print functionality for default-valued attributes
standard.

This is an updated version of https://reviews.llvm.org/D135398, without the per-attribute bit to control printing.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D135993
2022-10-17 13:57:36 -07:00
..
Bindings [mlir][math] Rename math.abs -> math.absf 2022-08-08 11:04:58 -04:00
Dialects [mlir][doc] move transform dialect docs to .md, NFC 2022-10-12 11:02:01 +00:00
Rationale [mlir][arith] Change dialect name from Arithmetic to Arith 2022-09-29 11:23:28 -04:00
Tools [mlir][arith] Change dialect name from Arithmetic to Arith 2022-09-29 11:23:28 -04:00
Tutorials Introduce a ConditionallySpeculatable op interface 2022-10-12 10:56:12 -07:00
includes/img [mlir] Split out a new ControlFlow dialect from Standard 2022-02-06 14:51:16 -08:00
AttributesAndTypes.md [mlir][ods] Allow custom directives in optional groups 2022-10-12 17:55:51 -07:00
BufferDeallocationInternals.md [mlir] add TOC to top-level documents 2022-08-02 13:22:40 +02:00
Bufferization.md [mlir] use strided layout in structured codegen-related tests 2022-09-17 08:11:28 +02:00
BytecodeFormat.md [mlir][doc] Remove trailing whitespace (NFC) 2022-10-07 09:05:49 -07:00
CAPI.md [mlir] add TOC to top-level documents 2022-08-02 13:22:40 +02:00
CMakeLists.txt
Canonicalization.md [mlir] add TOC to top-level documents 2022-08-02 13:22:40 +02:00
DataLayout.md [mlir] add TOC to top-level documents 2022-08-02 13:22:40 +02:00
DebugActions.md [mlir] add TOC to top-level documents 2022-08-02 13:22:40 +02:00
DeclarativeRewrites.md [mlir] add TOC to top-level documents 2022-08-02 13:22:40 +02:00
DefiningDialects.md [mlir][arith] Change dialect name from Arithmetic to Arith 2022-09-29 11:23:28 -04:00
Diagnostics.md [mlir] Add support for regex within `expected-*` diagnostics 2022-07-11 21:01:30 -07:00
DialectConversion.md [mlir][spirv] Change dialect name from 'spv' to 'spirv' 2022-09-26 10:58:30 -04:00
Interfaces.md [mlir] add TOC to top-level documents 2022-08-02 13:22:40 +02:00
LangRef.md [mlir][arith] Change dialect name from Arithmetic to Arith 2022-09-29 11:23:28 -04:00
OpDefinitions.md [mlir][ods] Do not print default-valued attributes when the value is equal to the default 2022-10-17 13:57:36 -07:00
PDLL.md [mlir][ods] Make Type- and AttrInterfaces also `Type`s and `Attr`s 2022-07-07 11:54:47 +02:00
PassManagement.md [mlir] Add macro for enabling all generated pass declarations 2022-09-28 11:49:28 -04:00
Passes.md [mlir][arith] Change dialect name from Arithmetic to Arith 2022-09-29 11:23:28 -04:00
PatternRewriter.md (Reland) [mlir] Switch segment size attributes to DenseI32ArrayAttr 2022-08-12 19:44:52 -04:00
Quantization.md Fix invalid math formulas in quantization doc 2021-06-01 03:50:59 +00:00
README.txt
SPIRVToLLVMDialectConversion.md [mlir][spirv] Change dialect name from 'spv' to 'spirv' 2022-09-26 10:58:30 -04:00
ShapeInference.md [mlir] add TOC to top-level documents 2022-08-02 13:22:40 +02:00
SymbolsAndSymbolTables.md [mlir][NFC] Update textual references of `func` to `func.func` in examples+python scripts 2022-04-20 22:17:26 -07:00
TargetLLVMIR.md [mlir] Only conditionally lower CF branching ops to LLVM 2022-08-04 16:36:27 +02:00
Traits.md [mlir] Support verification order (2/3) 2022-02-25 19:04:56 +00:00
doxygen-mainpage.dox
doxygen.cfg.in [mlir] use dynamic sections in MLIR Doxygen 2022-05-13 11:43:52 +02: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.