LLVM 22.0.0git
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 5847 of file Attributor.h.

Member Typedef Documentation

◆ const_iterator

◆ VecTy

Definition at line 5848 of file Attributor.h.

Member Function Documentation

◆ addToAll()

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

Definition at line 5877 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 5852 of file Attributor.h.

References Offsets.

◆ end()

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

Definition at line 5853 of file Attributor.h.

References Offsets.

◆ insert()

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

Definition at line 5861 of file Attributor.h.

References llvm::Offset, and Offsets.

◆ isUnassigned()

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

Definition at line 5862 of file Attributor.h.

References Offsets.

Referenced by isUnknown().

◆ isUnknown()

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

Definition at line 5864 of file Attributor.h.

References isUnassigned(), Offsets, and llvm::AA::RangeTy::Unknown.

◆ 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 5888 of file Attributor.h.

References Offsets, and llvm::set_union().

◆ operator!=()

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

Definition at line 5859 of file Attributor.h.

References RHS.

◆ operator==()

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

Definition at line 5855 of file Attributor.h.

References Offsets, and RHS.

◆ setUnknown()

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

Definition at line 5872 of file Attributor.h.

References Offsets, and llvm::AA::RangeTy::Unknown.

Member Data Documentation

◆ Offsets

VecTy llvm::AAPointerInfo::OffsetInfo::Offsets

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