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

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

Public Member Functions

 FunctionPointer ()=default
 
 FunctionPointer (const Function *Func, uint64_t Offset=0)
 
 FunctionPointer (uintptr_t IntVal, const Descriptor *Desc=nullptr)
 
const FunctiongetFunction () const
 
uint64_t getOffset () const
 
bool isZero () const
 
bool isValid () const
 
bool isWeak () const
 
APValue toAPValue (const ASTContext &) const
 
void print (llvm::raw_ostream &OS) const
 
std::string toDiagnosticString (const ASTContext &Ctx) const
 
uint64_t getIntegerRepresentation () const
 
ComparisonCategoryResult compare (const FunctionPointer &RHS) const
 

Detailed Description

Definition at line 20 of file FunctionPointer.h.

Constructor & Destructor Documentation

◆ FunctionPointer() [1/3]

clang::interp::FunctionPointer::FunctionPointer ( )
default

◆ FunctionPointer() [2/3]

clang::interp::FunctionPointer::FunctionPointer ( const Function Func,
uint64_t  Offset = 0 
)
inline

Definition at line 28 of file FunctionPointer.h.

References clang::Func.

◆ FunctionPointer() [3/3]

clang::interp::FunctionPointer::FunctionPointer ( uintptr_t  IntVal,
const Descriptor Desc = nullptr 
)
inline

Definition at line 31 of file FunctionPointer.h.

References clang::Func.

Member Function Documentation

◆ compare()

ComparisonCategoryResult clang::interp::FunctionPointer::compare ( const FunctionPointer RHS) const
inline

◆ getFunction()

const Function * clang::interp::FunctionPointer::getFunction ( ) const
inline

◆ getIntegerRepresentation()

uint64_t clang::interp::FunctionPointer::getIntegerRepresentation ( ) const
inline

Definition at line 56 of file FunctionPointer.h.

References clang::Func.

Referenced by clang::interp::Pointer::getIntegerRepresentation(), and toAPValue().

◆ getOffset()

uint64_t clang::interp::FunctionPointer::getOffset ( ) const
inline

Definition at line 36 of file FunctionPointer.h.

◆ isValid()

bool clang::interp::FunctionPointer::isValid ( ) const
inline

Definition at line 38 of file FunctionPointer.h.

Referenced by clang::interp::CallPtr().

◆ isWeak()

bool clang::interp::FunctionPointer::isWeak ( ) const
inline

Definition at line 39 of file FunctionPointer.h.

References clang::Func.

◆ isZero()

bool clang::interp::FunctionPointer::isZero ( ) const
inline

Definition at line 37 of file FunctionPointer.h.

References clang::Func.

Referenced by clang::interp::Pointer::isZero().

◆ print()

void clang::interp::FunctionPointer::print ( llvm::raw_ostream &  OS) const

Definition at line 31 of file FunctionPointer.cpp.

References clang::interp::Function::getName().

Referenced by clang::interp::operator<<().

◆ toAPValue()

APValue clang::interp::FunctionPointer::toAPValue ( const ASTContext ) const

◆ toDiagnosticString()

std::string clang::interp::FunctionPointer::toDiagnosticString ( const ASTContext Ctx) const
inline

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