clang 19.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/Interp/Source.h"

Public Member Functions

 CodePtr ()
 
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
 
template<typename T >
std::enable_if_t<!std::is_pointer< T >::value, T > read ()
 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 ( )
inline

Definition at line 32 of file Source.h.

Referenced by operator-().

Member Function Documentation

◆ operator bool()

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

Definition at line 52 of file Source.h.

◆ operator!=()

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

Definition at line 49 of file Source.h.

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

◆ 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().

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

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

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

Friends And Related Function Documentation

◆ Function

friend class Function
friend

Definition at line 64 of file Source.h.


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