LLVM  15.0.0git
Public Member Functions | List of all members
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
 
bool contains (uint64_t Addr) 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 21 of file AddressRanges.h.

Constructor & Destructor Documentation

◆ AddressRange() [1/2]

llvm::AddressRange::AddressRange ( )
inline

Definition at line 23 of file AddressRanges.h.

◆ AddressRange() [2/2]

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

Definition at line 24 of file AddressRanges.h.

References assert().

Member Function Documentation

◆ contains()

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

Definition at line 30 of file AddressRanges.h.

References Addr.

Referenced by convertFunctionLineTable(), and llvm::gsym::FunctionInfo::lookup().

◆ end()

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

◆ intersects()

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

Definition at line 31 of file AddressRanges.h.

◆ operator!=()

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

Definition at line 37 of file AddressRanges.h.

◆ operator<()

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

Definition at line 38 of file AddressRanges.h.

◆ operator==()

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

Definition at line 34 of file AddressRanges.h.

◆ 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: