[all-commits] [llvm/llvm-project] 4488f4: [mlir][bytecode] Add bytecode writer config API to...

Matteo Franciolini via All-commits all-commits at lists.llvm.org
Mon Nov 13 10:59:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4488f4933ee2a5326be643e8d1afec623c318fb9
      https://github.com/llvm/llvm-project/commit/4488f4933ee2a5326be643e8d1afec623c318fb9
  Author: Matteo Franciolini <m_franciolini at apple.com>
  Date:   2023-11-13 (Mon, 13 Nov 2023)

  Changed paths:
    M mlir/include/mlir/Bytecode/BytecodeWriter.h
    M mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h
    M mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
    M mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
    A mlir/test/Bytecode/resources_elision.mlir

  Log Message:
  -----------
  [mlir][bytecode] Add bytecode writer config API to skip serialization of resources (#71991)

When serializing to bytecode, users can select the option to elide
resources from the bytecode file. This will instruct the bytecode writer
to serialize only the key and resource kind, while skipping
serialization of the data buffer. At parsing, the IR is built in memory
with valid (but empty) resource handlers.




More information about the All-commits mailing list