LLVM 22.0.0git
llvm::AddressRange Class Reference

A class that represents an address range. More...

#include "llvm/ADT/AddressRanges.h"

Public Member Functions

 AddressRange ()
 AddressRange (uint64_t S, uint64_t E)
uint64_t start () const
uint64_t end () const
uint64_t size () const
uint64_t empty () const
bool contains (uint64_t Addr) const
bool contains (const AddressRange &R) const
bool intersects (const AddressRange &R) const
bool operator== (const AddressRange &R) const
bool operator!= (const AddressRange &R) const
bool operator< (const AddressRange &R) const

Detailed Description

A class that represents an address range.

The range is specified using a start and an end address: [Start, End).

Definition at line 22 of file AddressRanges.h.

Constructor & Destructor Documentation

◆ AddressRange() [1/2]

llvm::AddressRange::AddressRange ( )
inline

Definition at line 24 of file AddressRanges.h.

Referenced by contains(), intersects(), operator!=(), operator<(), and operator==().

◆ AddressRange() [2/2]

llvm::AddressRange::AddressRange ( uint64_t S,
uint64_t E )
inline

Definition at line 25 of file AddressRanges.h.

References assert(), and E().

Member Function Documentation

◆ contains() [1/2]

bool llvm::AddressRange::contains ( const AddressRange & R) const
inline

Definition at line 33 of file AddressRanges.h.

References AddressRange().

◆ contains() [2/2]

bool llvm::AddressRange::contains ( uint64_t Addr) const
inline

◆ empty()

uint64_t llvm::AddressRange::empty ( ) const
inline

Definition at line 31 of file AddressRanges.h.

References size().

◆ end()

uint64_t llvm::AddressRange::end ( ) const
inline

Definition at line 29 of file AddressRanges.h.

Referenced by llvm::AddressRangesBase< T >::find().

◆ intersects()

bool llvm::AddressRange::intersects ( const AddressRange & R) const
inline

Definition at line 36 of file AddressRanges.h.

References AddressRange().

Referenced by llvm::gsym::GsymCreator::finalize().

◆ operator!=()

bool llvm::AddressRange::operator!= ( const AddressRange & R) const
inline

Definition at line 42 of file AddressRanges.h.

References AddressRange().

◆ operator<()

bool llvm::AddressRange::operator< ( const AddressRange & R) const
inline

Definition at line 43 of file AddressRanges.h.

References AddressRange().

◆ operator==()

bool llvm::AddressRange::operator== ( const AddressRange & R) const
inline

Definition at line 39 of file AddressRanges.h.

References AddressRange().

◆ size()

uint64_t llvm::AddressRange::size ( ) const
inline

◆ start()

uint64_t llvm::AddressRange::start ( ) const
inline

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