![]() 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 |
||
---|---|---|
.. | ||
Bindings | ||
Dialects | ||
Rationale | ||
Tools | ||
Tutorials | ||
includes/img | ||
AttributesAndTypes.md | ||
BufferDeallocationInternals.md | ||
Bufferization.md | ||
BytecodeFormat.md | ||
CAPI.md | ||
CMakeLists.txt | ||
Canonicalization.md | ||
DataLayout.md | ||
DebugActions.md | ||
DeclarativeRewrites.md | ||
DefiningDialects.md | ||
Diagnostics.md | ||
DialectConversion.md | ||
Interfaces.md | ||
LangRef.md | ||
OpDefinitions.md | ||
PDLL.md | ||
PassManagement.md | ||
Passes.md | ||
PatternRewriter.md | ||
Quantization.md | ||
README.txt | ||
SPIRVToLLVMDialectConversion.md | ||
ShapeInference.md | ||
SymbolsAndSymbolTables.md | ||
TargetLLVMIR.md | ||
Traits.md | ||
doxygen-mainpage.dox | ||
doxygen.cfg.in |
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.