Add support for Lazyloading to the MLIR bytecode
authorMehdi Amini <joker.eph@gmail.com>
Sat, 29 Apr 2023 09:36:45 +0000 (02:36 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 20 May 2023 22:24:33 +0000 (15:24 -0700)
commit3128b3105d7a226fc26174be265da479ff619f3e
tree07a0b642d033b5622d1bb36254faf3b12af79ee6
parente8cc0d310c4060b605dc293bff5d2bca95ff528b
Add support for Lazyloading to the MLIR bytecode

IsolatedRegions are emitted in sections in order for the reader to be
able to skip over them. A new class is exposed to manage the state and
allow the readers to load these IsolatedRegions on-demand.

Differential Revision: https://reviews.llvm.org/D149515
mlir/docs/BytecodeFormat.md
mlir/include/mlir/Bytecode/BytecodeReader.h
mlir/lib/Bytecode/Encoding.h
mlir/lib/Bytecode/Reader/BytecodeReader.cpp
mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
mlir/test/Bytecode/bytecode-lazy-loading.mlir [new file with mode: 0644]
mlir/test/Bytecode/invalid/invalid-structure.mlir
mlir/test/lib/IR/CMakeLists.txt
mlir/test/lib/IR/TestLazyLoading.cpp [new file with mode: 0644]
mlir/tools/mlir-opt/mlir-opt.cpp