clang 22.0.0git
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
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

Member Function Documentation

◆ operator bool()

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

Definition at line 51 of file Source.h.

◆ operator!=()

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

Definition at line 49 of file Source.h.

References CodePtr().

◆ operator*()

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

Definition at line 50 of file Source.h.

◆ operator+=()

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

Definition at line 34 of file Source.h.

References CodePtr().

◆ operator-() [1/2]

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

Definition at line 39 of file Source.h.

References CodePtr().

◆ 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 52 of file Source.h.

References CodePtr().

◆ operator>=()

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

Definition at line 53 of file Source.h.

References CodePtr().

◆ 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 56 of file Source.h.

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

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

◆ Function

friend class Function
friend

Definition at line 65 of file Source.h.

References Function.

Referenced by Function.


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