[MsgPack] New MsgPackDocument class
authorTim Renouf <tpr.llvm@botech.co.uk>
Wed, 13 Mar 2019 18:54:47 +0000 (18:54 +0000)
committerTim Renouf <tpr.llvm@botech.co.uk>
Wed, 13 Mar 2019 18:54:47 +0000 (18:54 +0000)
commit4ced8de17c5f9f1ec3faab0ea5fbe240ae9da611
tree7bf43881845084aba7a94c8cc9fbbc19af5ebaf2
parentbe9f3b636e268c120b56d2983afe9d38d463830a
[MsgPack] New MsgPackDocument class

Summary:
A class that exposes a simple in-memory representation of a document of
MsgPack objects, that can be read from and written to MsgPack, read from
and written to YAML, and inspected and modified in memory. This is
intended to be a lighter-weight (in terms of memory allocations)
replacement for MsgPackTypes.

Two subsequent changes will:
1. switch AMDGPU HSA metadata to using MsgPackDocument instead of
   MsgPackTypes;
2. add MsgPack AMDGPU PAL metadata via MsgPackDocument.

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

Change-Id: Ie15a054831d5a6467c5867c064c8f8f6b80270e1
llvm-svn: 356080
llvm/include/llvm/BinaryFormat/MsgPackDocument.h [new file with mode: 0644]
llvm/lib/BinaryFormat/CMakeLists.txt
llvm/lib/BinaryFormat/MsgPackDocument.cpp [new file with mode: 0644]
llvm/lib/BinaryFormat/MsgPackDocumentYAML.cpp [new file with mode: 0644]
llvm/unittests/BinaryFormat/CMakeLists.txt
llvm/unittests/BinaryFormat/MsgPackDocumentTest.cpp [new file with mode: 0644]