|
LLVM
5.0.0
|
Eager IR compiling layer. More...
#include "llvm/ExecutionEngine/Orc/IRCompileLayer.h"
Public Types | |
| using | ModuleHandleT = typename BaseLayerT::ObjHandleT |
| Handle to a compiled module. More... | |
Public Member Functions | |
| IRCompileLayer (BaseLayerT &BaseLayer, CompileFtor Compile) | |
| Construct an IRCompileLayer with the given BaseLayer, which must implement the ObjectLayer concept. More... | |
| CompileFtor & | getCompiler () |
| Get a reference to the compiler functor. More... | |
| Expected< ModuleHandleT > | addModule (std::shared_ptr< Module > M, std::shared_ptr< JITSymbolResolver > Resolver) |
| Compile the module, and add the resulting object to the base layer along with the given memory manager and symbol resolver. More... | |
| Error | removeModule (ModuleHandleT H) |
| Remove the module associated with the handle H. More... | |
| JITSymbol | findSymbol (const std::string &Name, bool ExportedSymbolsOnly) |
| Search for the given named symbol. More... | |
| JITSymbol | findSymbolIn (ModuleHandleT H, const std::string &Name, bool ExportedSymbolsOnly) |
| Get the address of the given symbol in compiled module represented by the handle H. More... | |
| Error | emitAndFinalize (ModuleHandleT H) |
| Immediately emit and finalize the module represented by the given handle. More... | |
Eager IR compiling layer.
This layer immediately compiles each IR module added via addModule to an object file and adds this module file to the layer below, which must implement the object layer concept.
Definition at line 35 of file IRCompileLayer.h.
| using llvm::orc::IRCompileLayer< BaseLayerT, CompileFtor >::ModuleHandleT = typename BaseLayerT::ObjHandleT |
Handle to a compiled module.
Definition at line 39 of file IRCompileLayer.h.
|
inline |
Construct an IRCompileLayer with the given BaseLayer, which must implement the ObjectLayer concept.
Definition at line 43 of file IRCompileLayer.h.
|
inline |
Compile the module, and add the resulting object to the base layer along with the given memory manager and symbol resolver.
Definition at line 54 of file IRCompileLayer.h.
|
inline |
Immediately emit and finalize the module represented by the given handle.
| H | Handle for module to emit/finalize. |
Definition at line 90 of file IRCompileLayer.h.
|
inline |
Search for the given named symbol.
| Name | The name of the symbol to search for. |
| ExportedSymbolsOnly | If true, search only for exported symbols. |
Definition at line 70 of file IRCompileLayer.h.
|
inline |
Get the address of the given symbol in compiled module represented by the handle H.
This call is forwarded to the base layer's implementation.
| H | The handle for the module to search in. |
| Name | The name of the symbol to search for. |
| ExportedSymbolsOnly | If true, search only for exported symbols. |
Definition at line 82 of file IRCompileLayer.h.
|
inline |
Get a reference to the compiler functor.
Definition at line 47 of file IRCompileLayer.h.
Referenced by llvm::orc::OrcMCJITReplacement::setObjectCache().
|
inline |
Remove the module associated with the handle H.
Definition at line 62 of file IRCompileLayer.h.
1.8.6