OSDN Git Service

[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)
commit3589fdddf4b9cce83883a55a3f77ddee30d6a6e6
tree6739d93e49d05c2c8a73cc5a98024a88f0338a04
parent5db1718aa6e6ea1cc4964ab1162a91f6429e3d75
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356080 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/BinaryFormat/MsgPackDocument.h [new file with mode: 0644]
lib/BinaryFormat/CMakeLists.txt
lib/BinaryFormat/MsgPackDocument.cpp [new file with mode: 0644]
lib/BinaryFormat/MsgPackDocumentYAML.cpp [new file with mode: 0644]
unittests/BinaryFormat/CMakeLists.txt
unittests/BinaryFormat/MsgPackDocumentTest.cpp [new file with mode: 0644]