[all-commits] [llvm/llvm-project] db16eb: [MsgPack] Added convenience assignment to MsgPackD...

Tim Renouf via All-commits all-commits at lists.llvm.org
Thu May 21 14:13:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: db16eb33ce43792e0758edf958bbb175eb6a60e2
      https://github.com/llvm/llvm-project/commit/db16eb33ce43792e0758edf958bbb175eb6a60e2
  Author: Tim Renouf <tpr at botech.co.uk>
  Date:   2020-05-21 (Thu, 21 May 2020)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/MsgPackDocument.h
    M llvm/lib/BinaryFormat/MsgPackDocument.cpp
    M llvm/unittests/BinaryFormat/MsgPackDocumentTest.cpp

  Log Message:
  -----------
  [MsgPack] Added convenience assignment to MsgPackDocument

This commit increases the convenience of using the MsgPackDocument API,
especially when creating a document for writing out.

It adds direct assignment of bool, integer and string types to a
DocNode, as long as that DocNode is already inside a document, e.g. the
result of a map lookup. It also adds map lookup given an integer type
(it already had that for string).

So, to assign a string to a map element whose key is an int, you can
now write
  MyMap[42] = "towel";
instead of
  MyMap[MyMap.getDocument()->getNode(42)] =
      MyMap.getDocument()->getNode("towel");

Also added MapDocNode::erase methods.

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

Change-Id: I17301fa15bb9802231c52542798af5b54beb583e


  Commit: d13a50882006f45f760c214d167a7f037a666b0b
      https://github.com/llvm/llvm-project/commit/d13a50882006f45f760c214d167a7f037a666b0b
  Author: Tim Renouf <tpr at botech.co.uk>
  Date:   2020-05-21 (Thu, 21 May 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
    A llvm/test/CodeGen/AMDGPU/pal-userdata-regs.ll

  Log Message:
  -----------
  [AMDGPU] Fixed incorrect PAL metadata register naming

This only affects assembly and -filetype=asm codegen of PAL metadata.

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

Change-Id: I7b822e1917bf7b403486820d31afc483be207652


Compare: https://github.com/llvm/llvm-project/compare/7019cea26dfe...d13a50882006


More information about the All-commits mailing list