LLVM 22.0.0git
llvm::orc::AsynchronousSymbolQuery Class Reference

A symbol query that returns results via a callback when results are ready. More...

#include "llvm/ExecutionEngine/Orc/Core.h"

Public Member Functions

LLVM_ABI AsynchronousSymbolQuery (const SymbolLookupSet &Symbols, SymbolState RequiredState, SymbolsResolvedCallback NotifyComplete)
 Create a query for the given symbols.
LLVM_ABI void notifySymbolMetRequiredState (const SymbolStringPtr &Name, ExecutorSymbolDef Sym)
 Notify the query that a requested symbol has reached the required state.
bool isComplete () const
 Returns true if all symbols covered by this query have been resolved.

Friends

class ExecutionSession
class InProgressFullLookupState
class JITDylib
class JITSymbolResolverAdapter
class MaterializationResponsibility

Detailed Description

A symbol query that returns results via a callback when results are ready.

makes a callback when all symbols are available.

Definition at line 789 of file Core.h.

Constructor & Destructor Documentation

◆ AsynchronousSymbolQuery()

llvm::orc::AsynchronousSymbolQuery::AsynchronousSymbolQuery ( const SymbolLookupSet & Symbols,
SymbolState RequiredState,
SymbolsResolvedCallback NotifyComplete )

Create a query for the given symbols.

The NotifyComplete callback will be called once all queried symbols reach the given minimum state.

Definition at line 201 of file Core.cpp.

References assert(), llvm::move(), and llvm::orc::Resolved.

Member Function Documentation

◆ isComplete()

bool llvm::orc::AsynchronousSymbolQuery::isComplete ( ) const
inline

Returns true if all symbols covered by this query have been resolved.

Definition at line 810 of file Core.h.

◆ notifySymbolMetRequiredState()

void llvm::orc::AsynchronousSymbolQuery::notifySymbolMetRequiredState ( const SymbolStringPtr & Name,
ExecutorSymbolDef Sym )

Notify the query that a requested symbol has reached the required state.

Definition at line 215 of file Core.cpp.

References assert(), llvm::orc::ExecutorSymbolDef::getFlags(), llvm::JITSymbolFlags::hasMaterializationSideEffectsOnly(), and I.

◆ ExecutionSession

friend class ExecutionSession
friend

Definition at line 790 of file Core.h.

References ExecutionSession.

Referenced by ExecutionSession.

◆ InProgressFullLookupState

friend class InProgressFullLookupState
friend

Definition at line 791 of file Core.h.

References InProgressFullLookupState.

Referenced by InProgressFullLookupState.

◆ JITDylib

friend class JITDylib
friend

Definition at line 792 of file Core.h.

References JITDylib.

Referenced by JITDylib.

◆ JITSymbolResolverAdapter

friend class JITSymbolResolverAdapter
friend

Definition at line 793 of file Core.h.

References JITSymbolResolverAdapter.

Referenced by JITSymbolResolverAdapter.

◆ MaterializationResponsibility

friend class MaterializationResponsibility
friend

Definition at line 794 of file Core.h.

References LLVM_ABI, and MaterializationResponsibility.

Referenced by MaterializationResponsibility.


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