[llvm-dev] [Support][RFC] MessagePack reader/writer

via llvm-dev llvm-dev at lists.llvm.org
Tue Mar 13 08:04:07 PDT 2018

Hello all,

I have prepared a small patch to add support for reading and writing
MessagePack in LLVM, and want to propose including it in trunk. 
MessagePack is
a binary object serialization format, with the goal of being more 
compact than
text formats like JSON or YAML. The specification can be found at

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 dependant code, so anyone with interest can 
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 

The patch is at https://reviews.llvm.org/D44429


More information about the llvm-dev mailing list