|
LLVM 23.0.0git
|
A container for a list of ranges. More...
#include "llvm/Transforms/IPO/Attributor.h"
Public Types | |
| using | RangeTy = AA::RangeTy |
| using | VecTy = SmallVector<RangeTy> |
| using | iterator = VecTy::iterator |
| using | const_iterator = VecTy::const_iterator |
| using | value_type = RangeTy |
Public Member Functions | |
| RangeList (const RangeTy &R) | |
| RangeList (ArrayRef< int64_t > Offsets, int64_t Size) | |
| RangeList ()=default | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| void | push_back (const RangeTy &R) |
| unsigned | size () const |
| bool | operator== (const RangeList &OI) const |
| bool | merge (const RangeList &RHS) |
Merge the ranges in RHS into the current ranges. | |
| std::pair< iterator, bool > | insert (iterator Pos, const RangeTy &R) |
Insert R at the given iterator Pos, and merge if necessary. | |
| std::pair< iterator, bool > | insert (const RangeTy &R) |
Insert the given range R, maintaining sorted order. | |
| void | addToAllOffsets (int64_t Inc) |
Add the increment Inc to the offset of every range. | |
| bool | isUnique () const |
| Return true iff there is exactly one range and it is known. | |
| const RangeTy & | getUnique () const |
| Return the unique range, assuming it exists. | |
| bool | isUnknown () const |
| Return true iff the list contains an unknown range. | |
| iterator | setUnknown () |
| Discard all ranges and insert a single unknown range. | |
| bool | isUnassigned () const |
| Return true if no ranges have been inserted. | |
Static Public Member Functions | |
| static void | set_difference (const RangeList &L, const RangeList &R, RangeList &D) |
Copy ranges from L that are not in R, into D. | |
Public Attributes | |
| VecTy | Ranges |
A container for a list of ranges.
Definition at line 5910 of file Attributor.h.
Definition at line 5918 of file Attributor.h.
Definition at line 5917 of file Attributor.h.
Definition at line 5915 of file Attributor.h.
Definition at line 5938 of file Attributor.h.
Definition at line 5916 of file Attributor.h.
Definition at line 5921 of file Attributor.h.
References Ranges.
Referenced by merge(), operator==(), and set_difference().
|
inline |
Definition at line 5922 of file Attributor.h.
|
default |
|
inline |
Add the increment Inc to the offset of every range.
Definition at line 6017 of file Attributor.h.
References assert(), isUnassigned(), isUnknown(), and Ranges.
|
inline |
Definition at line 5932 of file Attributor.h.
References Ranges.
|
inline |
Definition at line 5934 of file Attributor.h.
References Ranges.
|
inline |
Definition at line 5933 of file Attributor.h.
References Ranges.
|
inline |
Definition at line 5935 of file Attributor.h.
References Ranges.
Return the unique range, assuming it exists.
Definition at line 6033 of file Attributor.h.
References assert(), isUnique(), and Ranges.
Insert the given range R, maintaining sorted order.
Definition at line 6012 of file Attributor.h.
|
inline |
Insert R at the given iterator Pos, and merge if necessary.
This assumes that all ranges before Pos are LessThan R, and then maintains the sorted order for the suffix list.
Definition at line 5991 of file Attributor.h.
References Changed, isUnknown(), llvm::AA::RangeTy::LessThan(), Ranges, and setUnknown().
|
inline |
Return true if no ranges have been inserted.
Definition at line 6057 of file Attributor.h.
References Ranges.
Referenced by addToAllOffsets(), and isUnknown().
|
inline |
Return true iff there is exactly one range and it is known.
Definition at line 6028 of file Attributor.h.
References Ranges.
Referenced by getUnique().
|
inline |
Return true iff the list contains an unknown range.
Definition at line 6039 of file Attributor.h.
References assert(), isUnassigned(), and Ranges.
Referenced by addToAllOffsets(), insert(), and merge().
Merge the ranges in RHS into the current ranges.
Definition at line 5960 of file Attributor.h.
References Changed, insert(), isUnknown(), RangeList(), Ranges, RHS, and setUnknown().
Definition at line 5954 of file Attributor.h.
References RangeList(), and Ranges.
Definition at line 5939 of file Attributor.h.
References assert(), llvm::AA::RangeTy::LessThan(), and Ranges.
|
inlinestatic |
Copy ranges from L that are not in R, into D.
Definition at line 5946 of file Attributor.h.
References D(), llvm::AA::RangeTy::LessThan(), and RangeList().
Referenced by llvm::AA::PointerInfo::State::addAccess().
|
inline |
Discard all ranges and insert a single unknown range.
Definition at line 6050 of file Attributor.h.
References llvm::AA::RangeTy::getUnknown(), and Ranges.
|
inline |
Definition at line 5952 of file Attributor.h.
References Ranges.
| VecTy llvm::AAPointerInfo::RangeList::Ranges |
Definition at line 5919 of file Attributor.h.
Referenced by addToAllOffsets(), begin(), begin(), end(), end(), getUnique(), insert(), insert(), isUnassigned(), isUnique(), isUnknown(), merge(), operator==(), push_back(), RangeList(), RangeList(), setUnknown(), and size().