[PATCH] D44429: [Support][RFC] MessagePack reader/writer

Scott Linder via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 13 08:00:56 PDT 2018


scott.linder created this revision.
scott.linder added a reviewer: chandlerc.
Herald added subscribers: llvm-commits, mgorny.

Add support for reading and writing MessagePack, a binary object serialization format which aims to be more compact than text formats like JSON or YAML. The specification can be found at https://github.com/msgpack/msgpack/blob/master/spec.md

There is no use of the code currently (outside of unit tests), but at AMD we are defining our next code object metadata format in terms of MessagePack, so patches which use the new format will be coming soon. I wanted to propose the addition now before writing dependent code, so anyone with interest can have a chance to review it.

The API in this patch is low-level; the next step would be to define a high-level API, closer to the YAML library, to read and write whole structs.


Repository:
  rL LLVM

https://reviews.llvm.org/D44429

Files:
  include/llvm/BinaryFormat/MsgPack.def
  include/llvm/BinaryFormat/MsgPack.h
  include/llvm/Support/MsgPackReader.h
  include/llvm/Support/MsgPackWriter.h
  lib/Support/CMakeLists.txt
  lib/Support/MsgPackReader.cpp
  lib/Support/MsgPackWriter.cpp
  unittests/Support/CMakeLists.txt
  unittests/Support/MsgPackReaderTest.cpp
  unittests/Support/MsgPackWriterTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44429.138192.patch
Type: text/x-patch
Size: 63688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180313/7a89e837/attachment.bin>


More information about the llvm-commits mailing list