LLVM 23.0.0git
llvm::orc::DylibManager Class Referenceabstract

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

Inheritance diagram for llvm::orc::DylibManager:
[legend]

Public Types

using SymbolLookupCompleteFn

Public Member Functions

virtual ~DylibManager ()
virtual Expected< tpctypes::DylibHandleloadDylib (const char *DylibPath)=0
 Load the dynamic library at the given path and return a handle to it.
Expected< tpctypes::LookupResultlookupSymbols (tpctypes::DylibHandle H, const SymbolLookupSet &Symbols)
 Search for symbols in the target process.
virtual void lookupSymbolsAsync (tpctypes::DylibHandle H, const SymbolLookupSet &Symbols, SymbolLookupCompleteFn F)=0
 Search for symbols in the target process.

Detailed Description

Definition at line 27 of file DylibManager.h.

Member Typedef Documentation

◆ SymbolLookupCompleteFn

Initial value:
Tagged union holding either a T or a Error.
Definition Error.h:485
unique_function is a type-erasing functor similar to std::function.

Definition at line 51 of file DylibManager.h.

Constructor & Destructor Documentation

◆ ~DylibManager()

llvm::orc::DylibManager::~DylibManager ( )
virtualdefault

Member Function Documentation

◆ loadDylib()

virtual Expected< tpctypes::DylibHandle > llvm::orc::DylibManager::loadDylib ( const char * DylibPath)
pure virtual

Load the dynamic library at the given path and return a handle to it.

If LibraryPath is null this function will return the global handle for the target process.

Implemented in llvm::orc::EPCGenericDylibManager, and llvm::orc::SelfExecutorProcessControl::InProcessDylibManager.

◆ lookupSymbols()

Expected< tpctypes::LookupResult > llvm::orc::DylibManager::lookupSymbols ( tpctypes::DylibHandle H,
const SymbolLookupSet & Symbols )
inline

Search for symbols in the target process.

The result of the lookup is an array of target addresses that correspond to the lookup order. If a required symbol is not found then this method will return an error. If a weakly referenced symbol is not found then it will be assigned a '0' value.

Definition at line 43 of file DylibManager.h.

References H, lookupSymbolsAsync(), and llvm::orc::Result.

◆ lookupSymbolsAsync()

virtual void llvm::orc::DylibManager::lookupSymbolsAsync ( tpctypes::DylibHandle H,
const SymbolLookupSet & Symbols,
SymbolLookupCompleteFn F )
pure virtual

Search for symbols in the target process.

The result of the lookup is an array of target addresses that correspond to the lookup order. If a required symbol is not found then this method will return an error. If a weakly referenced symbol is not found then it will be assigned a '0' value.

Implemented in llvm::orc::EPCGenericDylibManager, and llvm::orc::SelfExecutorProcessControl::InProcessDylibManager.

References F, and H.

Referenced by lookupSymbols().


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