diff options
| author | Matteo Franciolini <m_franciolini@apple.com> | 2023-10-27 23:13:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-27 23:13:21 -0700 |
| commit | 631e2911ea298bc12564df8acd16bba89790426a (patch) | |
| tree | 578b29da2dcb92fe189283b7829fed630f07acee /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | f70e39ec173192058976805a2c51ac438bb2ff2f (diff) | |
[mlir][bytecode] Fix D155919 and enable backward-compatibility and back-deployment between version 5 and version 6 of the bytecode encoding (#70498)
Before D155919, when a dialect was leveraging properties to store
attributes with `usePropertiesForAttributes`, the operand segment sizes
attribute was emitted in the property section in sorted order together
with all the other attributes of an op. After D155919, version 5 of the
bytecode was emitting and parsing operand segment sizes after all the
properties of an op, breaking backward compatibility and back
deployment. This patch fixes the emission ordering and allows to parse
bytecode files emitted before (D155919) with version 5 of MLIR bytecode.
The patch also enables to emit correctly version 5 of MLIR bytecode.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
