[BinaryFormat] Add MessagePack reader/writer
authorScott Linder <scott@scottlinder.com>
Wed, 22 Aug 2018 21:42:50 +0000 (21:42 +0000)
committerScott Linder <scott@scottlinder.com>
Wed, 22 Aug 2018 21:42:50 +0000 (21:42 +0000)
commit20f9cd882101252f050ae00aa9a674b834e1fd7f
treed774bf841e2b3ec3ed76af12280beb6e89247bf9
parentf3c39a7c794ca77c1b9c457944be402564771f60
[BinaryFormat] Add MessagePack reader/writer

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

Will be used for encoding metadata in AMDGPU code objects.

Differential Revision: https://reviews.llvm.org/D44429

llvm-svn: 340457
llvm/include/llvm/BinaryFormat/MsgPack.def [new file with mode: 0644]
llvm/include/llvm/BinaryFormat/MsgPack.h [new file with mode: 0644]
llvm/include/llvm/BinaryFormat/MsgPackReader.h [new file with mode: 0644]
llvm/include/llvm/BinaryFormat/MsgPackWriter.h [new file with mode: 0644]
llvm/lib/BinaryFormat/CMakeLists.txt
llvm/lib/BinaryFormat/MsgPackReader.cpp [new file with mode: 0644]
llvm/lib/BinaryFormat/MsgPackWriter.cpp [new file with mode: 0644]
llvm/unittests/BinaryFormat/CMakeLists.txt
llvm/unittests/BinaryFormat/MsgPackReaderTest.cpp [new file with mode: 0644]
llvm/unittests/BinaryFormat/MsgPackWriterTest.cpp [new file with mode: 0644]