[PATCH] D144220: New SetOperations and unittesting for all SetOperations
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 16 14:44:26 PST 2023
tejohnson created this revision.
tejohnson added reviewers: snehasish, davidxl.
Herald added a project: All.
tejohnson requested review of this revision.
Herald added a project: LLVM.
New set operations split out of D140908 <https://reviews.llvm.org/D140908> as suggested, and I have added
unit testing for all set operations.
This adds a set_intersection, which returns the intersection instead of
updating the first set like set_intersect (using a different name
analogous to set_difference vs set_subtract).
Also adds a variant of set_subtract that updates two additional set
arguments to note which members of the subtrahend were removed from
the minuend and which were not.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144220
Files:
llvm/include/llvm/ADT/SetOperations.h
llvm/unittests/ADT/CMakeLists.txt
llvm/unittests/ADT/SetOperationsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144220.498144.patch
Type: text/x-patch
Size: 10265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230216/e5659e84/attachment.bin>
More information about the llvm-commits
mailing list