[PATCH] D57023: [MsgPack] New MsgPackDocument class

Tim Renouf via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 21 09:29:31 PST 2019


tpr created this revision.
Herald added subscribers: llvm-commits, mgorny.

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.

Change-Id: Ie15a054831d5a6467c5867c064c8f8f6b80270e1


Repository:
  rL LLVM

https://reviews.llvm.org/D57023

Files:
  include/llvm/BinaryFormat/MsgPackDocument.h
  lib/BinaryFormat/CMakeLists.txt
  lib/BinaryFormat/MsgPackDocument.cpp
  lib/BinaryFormat/MsgPackDocumentYAML.cpp
  unittests/BinaryFormat/CMakeLists.txt
  unittests/BinaryFormat/MsgPackDocumentTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57023.182804.patch
Type: text/x-patch
Size: 33905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190121/62849e56/attachment.bin>


More information about the llvm-commits mailing list