LLVM  10.0.0svn
Public Member Functions | Friends | List of all members
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

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

Friends

class ExecutionSession
 
class JITDylib
 
class JITSymbolResolverAdapter
 

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 427 of file Core.h.

Constructor & Destructor Documentation

◆ AsynchronousSymbolQuery()

llvm::orc::AsynchronousSymbolQuery::AsynchronousSymbolQuery ( const SymbolNameSet 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 286 of file Core.cpp.

References assert(), llvm::orc::Resolved, and llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::size().

Member Function Documentation

◆ handleComplete()

void llvm::orc::AsynchronousSymbolQuery::handleComplete ( )

Call the NotifyComplete callback.

This should only be called if all symbols covered by the query have reached the specified state.

Definition at line 310 of file Core.cpp.

References assert().

◆ isComplete()

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

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

Definition at line 446 of file Core.h.

References Name.

◆ notifySymbolMetRequiredState()

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

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

Definition at line 300 of file Core.cpp.

References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.

Referenced by llvm::orc::lookupWithLegacyFn().

Friends And Related Function Documentation

◆ ExecutionSession

friend class ExecutionSession
friend

Definition at line 428 of file Core.h.

◆ JITDylib

friend class JITDylib
friend

Definition at line 429 of file Core.h.

◆ JITSymbolResolverAdapter

friend class JITSymbolResolverAdapter
friend

Definition at line 430 of file Core.h.


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