clang 20.0.0git
Public Member Functions | Friends | List of all members
clang::interp::CodePtr Class Referencefinal

Pointer into the code segment. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/ByteCode/Source.h"

Public Member Functions

 CodePtr ()=default
 
CodePtroperator+= (int32_t Offset)
 
int32_t operator- (const CodePtr &RHS) const
 
CodePtr operator- (size_t RHS) const
 
CodePtr operator+ (ssize_t RHS) const
 
bool operator!= (const CodePtr &RHS) const
 
const std::byte * operator* () const
 
 operator bool () const
 
bool operator<= (const CodePtr &RHS) const
 
bool operator>= (const CodePtr &RHS) const
 
template<typename T >
std::enable_if_t<!std::is_pointer< T >::value, Tread ()
 Reads data and advances the pointer.
 

Friends

class Function
 

Detailed Description

Pointer into the code segment.

Definition at line 30 of file Source.h.

Constructor & Destructor Documentation

◆ CodePtr()

clang::interp::CodePtr::CodePtr ( )
default

Referenced by operator+(), and operator-().

Member Function Documentation

◆ operator bool()

clang::interp::CodePtr::operator bool ( ) const
inlineexplicit

Definition at line 55 of file Source.h.

◆ operator!=()

bool clang::interp::CodePtr::operator!= ( const CodePtr RHS) const
inline

Definition at line 53 of file Source.h.

◆ operator*()

const std::byte * clang::interp::CodePtr::operator* ( ) const
inline

Definition at line 54 of file Source.h.

◆ operator+()

CodePtr clang::interp::CodePtr::operator+ ( ssize_t  RHS) const
inline

Definition at line 48 of file Source.h.

References CodePtr().

◆ operator+=()

CodePtr & clang::interp::CodePtr::operator+= ( int32_t  Offset)
inline

Definition at line 34 of file Source.h.

◆ operator-() [1/2]

int32_t clang::interp::CodePtr::operator- ( const CodePtr RHS) const
inline

Definition at line 39 of file Source.h.

◆ operator-() [2/2]

CodePtr clang::interp::CodePtr::operator- ( size_t  RHS) const
inline

Definition at line 44 of file Source.h.

References CodePtr().

◆ operator<=()

bool clang::interp::CodePtr::operator<= ( const CodePtr RHS) const
inline

Definition at line 56 of file Source.h.

◆ operator>=()

bool clang::interp::CodePtr::operator>= ( const CodePtr RHS) const
inline

Definition at line 57 of file Source.h.

◆ read()

template<typename T >
std::enable_if_t<!std::is_pointer< T >::value, T > clang::interp::CodePtr::read ( )
inline

Reads data and advances the pointer.

Definition at line 60 of file Source.h.

References clang::interp::align(), clang::interp::aligned(), and clang::T.

Referenced by clang::interp::Interpret(), clang::interp::ReadArg(), and ReadArg().

Friends And Related Function Documentation

◆ Function

friend class Function
friend

Definition at line 69 of file Source.h.


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