0e0b6070fd
A dialect can opt-in to handle versioning through the `BytecodeDialectInterface`. Few hooks are exposed to the dialect to allow managing a version encoded into the bytecode file. The version is loaded lazily and allows to retrieve the version information while parsing the input IR, and gives an opportunity to each dialect for which a version is present to perform IR upgrades post-parsing through the `upgradeFromVersion` method. Custom Attribute and Type encodings can also be upgraded according to the dialect version using readAttribute and readType methods. There is no restriction on what kind of information a dialect is allowed to encode to model its versioning. Currently, versioning is supported only for bytecode formats. Reviewed By: rriddle, mehdi_amini Differential Revision: https://reviews.llvm.org/D143647 |
||
---|---|---|
.. | ||
Bindings | ||
DefiningDialects | ||
Dialects | ||
includes/img | ||
Rationale | ||
Tools | ||
Tutorials | ||
BufferDeallocationInternals.md | ||
Bufferization.md | ||
BytecodeFormat.md | ||
Canonicalization.md | ||
CAPI.md | ||
CMakeLists.txt | ||
DataLayout.md | ||
DebugActions.md | ||
DeclarativeRewrites.md | ||
Diagnostics.md | ||
DialectConversion.md | ||
doxygen-mainpage.dox | ||
doxygen.cfg.in | ||
Interfaces.md | ||
LangRef.md | ||
Passes.md | ||
PassManagement.md | ||
PatternRewriter.md | ||
PDLL.md | ||
Quantization.md | ||
README.txt | ||
ShapeInference.md | ||
SPIRVToLLVMDialectConversion.md | ||
SymbolsAndSymbolTables.md | ||
TargetLLVMIR.md | ||
Traits.md |
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.