[all-commits] [llvm/llvm-project] 612781: Preserve use-list orders in mlir bytecode
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Sun May 21 17:20:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 612781918fb01a2a0985a1c4c9200f5d5d1581cc
https://github.com/llvm/llvm-project/commit/612781918fb01a2a0985a1c4c9200f5d5d1581cc
Author: Matteo Franciolini <m_franciolini at apple.com>
Date: 2023-05-21 (Sun, 21 May 2023)
Changed paths:
M mlir/docs/BytecodeFormat.md
A mlir/include/mlir/Bytecode/Encoding.h
M mlir/include/mlir/IR/UseDefLists.h
M mlir/include/mlir/IR/Value.h
R mlir/lib/Bytecode/Encoding.h
M mlir/lib/Bytecode/Reader/BytecodeReader.cpp
M mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
M mlir/lib/Bytecode/Writer/IRNumbering.cpp
M mlir/lib/Bytecode/Writer/IRNumbering.h
M mlir/lib/IR/Value.cpp
M mlir/test/Bytecode/invalid/invalid-structure.mlir
A mlir/test/Bytecode/uselist_orders.mlir
M mlir/test/lib/IR/CMakeLists.txt
A mlir/test/lib/IR/TestUseListOrders.cpp
M mlir/tools/mlir-opt/mlir-opt.cpp
Log Message:
-----------
Preserve use-list orders in mlir bytecode
This patch implements a mechanism to read/write use-list orders from/to the mlir bytecode format. When producing bytecode, use-list orders are appended to each value of the IR. When reading bytecode, use-lists orders are loaded in memory and used at the end of parsing to sort the existing use-list chains.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D149755
More information about the All-commits
mailing list