LLVM 20.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::AAPointerInfo::OffsetInfo Struct Reference

A helper containing a list of offsets computed for a Use. More...

#include "llvm/Transforms/IPO/Attributor.h"

Public Types

using VecTy = SmallSet< int64_t, 4 >
 
using const_iterator = VecTy::const_iterator
 

Public Member Functions

const_iterator begin () const
 
const_iterator end () const
 
bool operator== (const OffsetInfo &RHS) const
 
bool operator!= (const OffsetInfo &RHS) const
 
bool insert (int64_t Offset)
 
bool isUnassigned () const
 
bool isUnknown () const
 
void setUnknown ()
 
void addToAll (int64_t Inc)
 
bool merge (const OffsetInfo &R)
 Copy offsets from R into the current list.
 

Public Attributes

VecTy Offsets
 

Detailed Description

A helper containing a list of offsets computed for a Use.

Ideally this list should be strictly ascending, but we ensure that only when we actually translate the list of offsets to a RangeList.

Definition at line 5792 of file Attributor.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 5794 of file Attributor.h.

◆ VecTy

Definition at line 5793 of file Attributor.h.

Member Function Documentation

◆ addToAll()

void llvm::AAPointerInfo::OffsetInfo::addToAll ( int64_t  Inc)
inline

Definition at line 5822 of file Attributor.h.

References llvm::SmallSet< T, N, C >::insert(), llvm::Offset, and Offsets.

◆ begin()

const_iterator llvm::AAPointerInfo::OffsetInfo::begin ( ) const
inline

Definition at line 5797 of file Attributor.h.

References llvm::SmallSet< T, N, C >::begin(), and Offsets.

◆ end()

const_iterator llvm::AAPointerInfo::OffsetInfo::end ( ) const
inline

Definition at line 5798 of file Attributor.h.

References llvm::SmallSet< T, N, C >::end(), and Offsets.

◆ insert()

bool llvm::AAPointerInfo::OffsetInfo::insert ( int64_t  Offset)
inline

Definition at line 5806 of file Attributor.h.

References llvm::SmallSet< T, N, C >::insert(), llvm::Offset, and Offsets.

◆ isUnassigned()

bool llvm::AAPointerInfo::OffsetInfo::isUnassigned ( ) const
inline

◆ isUnknown()

bool llvm::AAPointerInfo::OffsetInfo::isUnknown ( ) const
inline

◆ merge()

bool llvm::AAPointerInfo::OffsetInfo::merge ( const OffsetInfo R)
inline

Copy offsets from R into the current list.

Ideally all lists should be strictly ascending, but we defer that to the actual use of the list. So we just blindly append here.

Definition at line 5833 of file Attributor.h.

References Offsets, and llvm::set_union().

◆ operator!=()

bool llvm::AAPointerInfo::OffsetInfo::operator!= ( const OffsetInfo RHS) const
inline

Definition at line 5804 of file Attributor.h.

References RHS.

◆ operator==()

bool llvm::AAPointerInfo::OffsetInfo::operator== ( const OffsetInfo RHS) const
inline

Definition at line 5800 of file Attributor.h.

References Offsets, and RHS.

◆ setUnknown()

void llvm::AAPointerInfo::OffsetInfo::setUnknown ( )
inline

Member Data Documentation

◆ Offsets

VecTy llvm::AAPointerInfo::OffsetInfo::Offsets

The documentation for this struct was generated from the following file: