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)
 
 FunctionPointer (uintptr_t IntVal, const Descriptor *Desc=nullptr)
 
const FunctiongetFunction () 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)
inline

Definition at line 27 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 29 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 77 of file FunctionPointer.h.

References clang::Func.

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

◆ isValid()

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

Definition at line 34 of file FunctionPointer.h.

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

◆ isWeak()

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

Definition at line 35 of file FunctionPointer.h.

References clang::Func.

◆ isZero()

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

Definition at line 33 of file FunctionPointer.h.

References clang::Func.

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

◆ print()

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

Definition at line 59 of file FunctionPointer.h.

References clang::Func.

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

◆ toAPValue()

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

◆ toDiagnosticString()

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

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