LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT > Class Template Reference

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

Inheritance diagram for llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >:
Inheritance graph
[legend]
Collaboration diagram for llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >:
Collaboration graph
[legend]

Public Member Functions

 LambdaResolver (DylibLookupFtorT DylibLookupFtor, ExternalLookupFtorT ExternalLookupFtor)
 
JITSymbol findSymbolInLogicalDylib (const std::string &Name) final
 This method returns the address of the specified symbol if it exists within the logical dynamic library represented by this JITSymbolResolver. More...
 
JITSymbol findSymbol (const std::string &Name) final
 This method returns the address of the specified function or variable. More...
 
- Public Member Functions inherited from llvm::JITSymbolResolver
virtual ~JITSymbolResolver ()=default
 

Detailed Description

template<typename DylibLookupFtorT, typename ExternalLookupFtorT>
class llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >

Definition at line 26 of file LambdaResolver.h.

Constructor & Destructor Documentation

◆ LambdaResolver()

template<typename DylibLookupFtorT , typename ExternalLookupFtorT >
llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >::LambdaResolver ( DylibLookupFtorT  DylibLookupFtor,
ExternalLookupFtorT  ExternalLookupFtor 
)
inline

Definition at line 28 of file LambdaResolver.h.

Member Function Documentation

◆ findSymbol()

template<typename DylibLookupFtorT , typename ExternalLookupFtorT >
JITSymbol llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >::findSymbol ( const std::string &  Name)
inlinefinalvirtual

This method returns the address of the specified function or variable.

It is used to resolve symbols during module linking.

If the returned symbol's address is equal to ~0ULL then RuntimeDyld will skip all relocations for that symbol, and the client will be responsible for handling them manually.

Implements llvm::JITSymbolResolver.

Definition at line 37 of file LambdaResolver.h.

◆ findSymbolInLogicalDylib()

template<typename DylibLookupFtorT , typename ExternalLookupFtorT >
JITSymbol llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >::findSymbolInLogicalDylib ( const std::string &  Name)
inlinefinalvirtual

This method returns the address of the specified symbol if it exists within the logical dynamic library represented by this JITSymbolResolver.

Unlike findSymbol, queries through this interface should return addresses for hidden symbols.

This is of particular importance for the Orc JIT APIs, which support lazy compilation by breaking up modules: Each of those broken out modules must be able to resolve hidden symbols provided by the others. Clients writing memory managers for MCJIT can usually ignore this method.

This method will be queried by RuntimeDyld when checking for previous definitions of common symbols.

Implements llvm::JITSymbolResolver.

Definition at line 33 of file LambdaResolver.h.


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