LLVM 22.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
llvm::orc::ExecutorAddrRange Struct Reference

Represents an address range in the exceutor process. More...

#include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h"

Public Member Functions

 ExecutorAddrRange ()=default
 
 ExecutorAddrRange (ExecutorAddr Start, ExecutorAddr End)
 
 ExecutorAddrRange (ExecutorAddr Start, ExecutorAddrDiff Size)
 
bool empty () const
 
ExecutorAddrDiff size () const
 
bool contains (ExecutorAddr Addr) const
 
bool overlaps (const ExecutorAddrRange &Other)
 

Static Public Member Functions

template<typename T , typename UnwrapFn = ExecutorAddr::defaultUnwrap<T>>
static ExecutorAddrRange fromPtrRange (T *Start, T *End, UnwrapFn &&Unwrap=UnwrapFn())
 
template<typename T , typename UnwrapFn = ExecutorAddr::defaultUnwrap<T>>
static ExecutorAddrRange fromPtrRange (T *Ptr, ExecutorAddrDiff Size, UnwrapFn &&Unwrap=UnwrapFn())
 

Public Attributes

ExecutorAddr Start
 
ExecutorAddr End
 

Friends

bool operator== (const ExecutorAddrRange &LHS, const ExecutorAddrRange &RHS)
 
bool operator!= (const ExecutorAddrRange &LHS, const ExecutorAddrRange &RHS)
 
bool operator< (const ExecutorAddrRange &LHS, const ExecutorAddrRange &RHS)
 
bool operator<= (const ExecutorAddrRange &LHS, const ExecutorAddrRange &RHS)
 
bool operator> (const ExecutorAddrRange &LHS, const ExecutorAddrRange &RHS)
 
bool operator>= (const ExecutorAddrRange &LHS, const ExecutorAddrRange &RHS)
 

Detailed Description

Represents an address range in the exceutor process.

Definition at line 222 of file ExecutorAddress.h.

Constructor & Destructor Documentation

◆ ExecutorAddrRange() [1/3]

llvm::orc::ExecutorAddrRange::ExecutorAddrRange ( )
default

◆ ExecutorAddrRange() [2/3]

llvm::orc::ExecutorAddrRange::ExecutorAddrRange ( ExecutorAddr  Start,
ExecutorAddr  End 
)
inline

Definition at line 224 of file ExecutorAddress.h.

◆ ExecutorAddrRange() [3/3]

llvm::orc::ExecutorAddrRange::ExecutorAddrRange ( ExecutorAddr  Start,
ExecutorAddrDiff  Size 
)
inline

Definition at line 226 of file ExecutorAddress.h.

Member Function Documentation

◆ contains()

bool llvm::orc::ExecutorAddrRange::contains ( ExecutorAddr  Addr) const
inline

Definition at line 274 of file ExecutorAddress.h.

References Addr, End, and Start.

◆ empty()

bool llvm::orc::ExecutorAddrRange::empty ( ) const
inline

Definition at line 242 of file ExecutorAddress.h.

References End, and Start.

◆ fromPtrRange() [1/2]

template<typename T , typename UnwrapFn = ExecutorAddr::defaultUnwrap<T>>
static ExecutorAddrRange llvm::orc::ExecutorAddrRange::fromPtrRange ( T Ptr,
ExecutorAddrDiff  Size,
UnwrapFn &&  Unwrap = UnwrapFn() 
)
inlinestatic

Definition at line 237 of file ExecutorAddress.h.

References llvm::orc::ExecutorAddr::fromPtr(), Ptr, and Size.

◆ fromPtrRange() [2/2]

template<typename T , typename UnwrapFn = ExecutorAddr::defaultUnwrap<T>>
static ExecutorAddrRange llvm::orc::ExecutorAddrRange::fromPtrRange ( T Start,
T End,
UnwrapFn &&  Unwrap = UnwrapFn() 
)
inlinestatic

Definition at line 230 of file ExecutorAddress.h.

References End, llvm::orc::ExecutorAddr::fromPtr(), and Start.

◆ overlaps()

bool llvm::orc::ExecutorAddrRange::overlaps ( const ExecutorAddrRange Other)
inline

Definition at line 275 of file ExecutorAddress.h.

References End, llvm::Other, and Start.

◆ size()

ExecutorAddrDiff llvm::orc::ExecutorAddrRange::size ( ) const
inline

Definition at line 243 of file ExecutorAddress.h.

References End, and Start.

Referenced by deregisterEHFrameWrapper(), and registerEHFrameWrapper().

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const ExecutorAddrRange LHS,
const ExecutorAddrRange RHS 
)
friend

Definition at line 249 of file ExecutorAddress.h.

◆ operator<

bool operator< ( const ExecutorAddrRange LHS,
const ExecutorAddrRange RHS 
)
friend

Definition at line 253 of file ExecutorAddress.h.

◆ operator<=

bool operator<= ( const ExecutorAddrRange LHS,
const ExecutorAddrRange RHS 
)
friend

Definition at line 258 of file ExecutorAddress.h.

◆ operator==

bool operator== ( const ExecutorAddrRange LHS,
const ExecutorAddrRange RHS 
)
friend

Definition at line 245 of file ExecutorAddress.h.

◆ operator>

bool operator> ( const ExecutorAddrRange LHS,
const ExecutorAddrRange RHS 
)
friend

Definition at line 263 of file ExecutorAddress.h.

◆ operator>=

bool operator>= ( const ExecutorAddrRange LHS,
const ExecutorAddrRange RHS 
)
friend

Definition at line 268 of file ExecutorAddress.h.

Member Data Documentation

◆ End

ExecutorAddr llvm::orc::ExecutorAddrRange::End

Definition at line 280 of file ExecutorAddress.h.

Referenced by contains(), empty(), fromPtrRange(), overlaps(), and size().

◆ Start

ExecutorAddr llvm::orc::ExecutorAddrRange::Start

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