LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::JITEvaluatedSymbol Class Reference

Represents a symbol that has been evaluated to an address already. More...

#include "llvm/ExecutionEngine/JITSymbol.h"

Public Member Functions

 JITEvaluatedSymbol ()=default
 
 JITEvaluatedSymbol (std::nullptr_t)
 Create a 'null' symbol.
 
 JITEvaluatedSymbol (JITTargetAddress Address, JITSymbolFlags Flags)
 Create a symbol for the given address and flags.
 
 operator bool () const
 An evaluated symbol converts to 'true' if its address is non-zero.
 
JITTargetAddress getAddress () const
 Return the address of this symbol.
 
JITSymbolFlags getFlags () const
 Return the flags for this symbol.
 
void setFlags (JITSymbolFlags Flags)
 Set the flags for this symbol.
 

Static Public Member Functions

template<typename T >
static JITEvaluatedSymbol fromPointer (T *P, JITSymbolFlags Flags=JITSymbolFlags::Exported)
 Create a symbol from the given pointer with the given flags.
 

Detailed Description

Represents a symbol that has been evaluated to an address already.

Definition at line 229 of file JITSymbol.h.

Constructor & Destructor Documentation

◆ JITEvaluatedSymbol() [1/3]

llvm::JITEvaluatedSymbol::JITEvaluatedSymbol ( )
default

Referenced by fromPointer().

◆ JITEvaluatedSymbol() [2/3]

llvm::JITEvaluatedSymbol::JITEvaluatedSymbol ( std::nullptr_t  )
inline

Create a 'null' symbol.

Definition at line 234 of file JITSymbol.h.

◆ JITEvaluatedSymbol() [3/3]

llvm::JITEvaluatedSymbol::JITEvaluatedSymbol ( JITTargetAddress  Address,
JITSymbolFlags  Flags 
)
inline

Create a symbol for the given address and flags.

Definition at line 237 of file JITSymbol.h.

Member Function Documentation

◆ fromPointer()

template<typename T >
static JITEvaluatedSymbol llvm::JITEvaluatedSymbol::fromPointer ( T P,
JITSymbolFlags  Flags = JITSymbolFlags::Exported 
)
inlinestatic

Create a symbol from the given pointer with the given flags.

Definition at line 243 of file JITSymbol.h.

References JITEvaluatedSymbol(), P, and llvm::pointerToJITTargetAddress().

◆ getAddress()

JITTargetAddress llvm::JITEvaluatedSymbol::getAddress ( ) const
inline

Return the address of this symbol.

Definition at line 251 of file JITSymbol.h.

Referenced by llvm::MCJIT::getPointerToFunction().

◆ getFlags()

JITSymbolFlags llvm::JITEvaluatedSymbol::getFlags ( ) const
inline

Return the flags for this symbol.

Definition at line 254 of file JITSymbol.h.

◆ operator bool()

llvm::JITEvaluatedSymbol::operator bool ( ) const
inlineexplicit

An evaluated symbol converts to 'true' if its address is non-zero.

Definition at line 248 of file JITSymbol.h.

◆ setFlags()

void llvm::JITEvaluatedSymbol::setFlags ( JITSymbolFlags  Flags)
inline

Set the flags for this symbol.

Definition at line 257 of file JITSymbol.h.


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