[all-commits] [llvm/llvm-project] bf0f94: New SetOperations and unittesting for all SetOpera...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Fri Feb 17 07:18:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf0f94a5cf82e62e86c454d96ab8bd29adcb71af
      https://github.com/llvm/llvm-project/commit/bf0f94a5cf82e62e86c454d96ab8bd29adcb71af
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2023-02-17 (Fri, 17 Feb 2023)

  Changed paths:
    M llvm/include/llvm/ADT/SetOperations.h
    M llvm/unittests/ADT/CMakeLists.txt
    A llvm/unittests/ADT/SetOperationsTest.cpp

  Log Message:
  -----------
  New SetOperations and unittesting for all SetOperations

New set operations split out of 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.

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




More information about the All-commits mailing list