[PATCH] D125998: [Metadata] Add a resize capability to MDNodes and add a push_back interface to MDNodes.

Wolfgang Pieb via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 22:56:22 PDT 2022


wolfgangp updated this revision to Diff 432196.
wolfgangp marked 4 inline comments as done.
wolfgangp added a comment.

Addressed review comments.

Added 2 new unit tests. One for an MDNode initially allocated as "large", and a death test for the case of a temporary node that is later uniqued. We want to make sure it is not resizable after it's been uniqued, even though it was originally allocated as resizable.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125998/new/

https://reviews.llvm.org/D125998

Files:
  llvm/include/llvm/IR/Metadata.h
  llvm/lib/IR/Metadata.cpp
  llvm/unittests/IR/MetadataTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125998.432196.patch
Type: text/x-patch
Size: 15854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220526/98263de6/attachment.bin>


More information about the llvm-commits mailing list