LLVM
15.0.0git
|
A wrapper around a set that has semantics for handling unions and intersections with a "universal" set that contains all elements. More...
#include "llvm/Transforms/IPO/Attributor.h"
Public Member Functions | |
SetContents (bool Universal) | |
Creates a universal set with no concrete elements or an empty set. More... | |
SetContents (const DenseSet< BaseTy > &Assumptions) | |
Creates a non-universal set with concrete values. More... | |
SetContents (bool Universal, const DenseSet< BaseTy > &Assumptions) | |
const DenseSet< BaseTy > & | getSet () const |
bool | isUniversal () const |
bool | empty () const |
bool | getIntersection (const SetContents &RHS) |
Finds A := A ^ B where A or B could be the "Universal" set which contains every possible attribute. More... | |
bool | getUnion (const SetContents &RHS) |
Finds A := A u B where A or B could be the "Universal" set which contains every possible attribute. More... | |
A wrapper around a set that has semantics for handling unions and intersections with a "universal" set that contains all elements.
Definition at line 2656 of file Attributor.h.
|
inline |
Creates a universal set with no concrete elements or an empty set.
Definition at line 2658 of file Attributor.h.
|
inline |
Creates a non-universal set with concrete values.
Definition at line 2661 of file Attributor.h.
|
inline |
Definition at line 2664 of file Attributor.h.
|
inline |
Definition at line 2671 of file Attributor.h.
References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::empty().
Referenced by llvm::SetState< StringRef >::isValidState().
|
inline |
Finds A := A ^ B where A or B could be the "Universal" set which contains every possible attribute.
Returns true if changes were made.
Definition at line 2675 of file Attributor.h.
References RHS, llvm::set_intersect(), and llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::size().
Referenced by llvm::SetState< StringRef >::getIntersection().
|
inline |
Definition at line 2667 of file Attributor.h.
Referenced by llvm::SetState< StringRef >::getIntersection(), and llvm::SetState< StringRef >::setContains().
|
inline |
Finds A := A u B where A or B could be the "Universal" set which contains every possible attribute.
returns true if changes were made.
Definition at line 2695 of file Attributor.h.
References RHS, llvm::set_union(), and llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::size().
Referenced by llvm::SetState< StringRef >::getIntersection(), and llvm::SetState< StringRef >::getUnion().
|
inline |
Definition at line 2669 of file Attributor.h.