LLVM  7.0.0
Public Types | Public Member Functions | Friends | List of all members
llvm::orc::CompileOnDemandLayer2 Class Reference

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

Inheritance diagram for llvm::orc::CompileOnDemandLayer2:
[legend]
Collaboration diagram for llvm::orc::CompileOnDemandLayer2:
[legend]

Public Types

using IndirectStubsManagerBuilder = std::function< std::unique_ptr< IndirectStubsManager >()>
 Builder for IndirectStubsManagers. More...
 
using GetAvailableContextFunction = std::function< LLVMContext &()>
 

Public Member Functions

 CompileOnDemandLayer2 (ExecutionSession &ES, IRLayer &BaseLayer, JITCompileCallbackManager &CCMgr, IndirectStubsManagerBuilder BuildIndirectStubsManager, GetAvailableContextFunction GetAvailableContext)
 
Error add (VSO &V, VModuleKey K, std::unique_ptr< Module > M) override
 Adds a MaterializationUnit representing the given IR to the given VSO. More...
 
void emit (MaterializationResponsibility R, VModuleKey K, std::unique_ptr< Module > M) override
 Emit should materialize the given IR. More...
 
- Public Member Functions inherited from llvm::orc::IRLayer
 IRLayer (ExecutionSession &ES)
 
virtual ~IRLayer ()
 
ExecutionSession & getExecutionSession ()
 Returns the ExecutionSession for this layer. More...
 

Friends

class ExtractingIRMaterializationUnit
 

Detailed Description

Definition at line 63 of file CompileOnDemandLayer.h.

Member Typedef Documentation

◆ GetAvailableContextFunction

Definition at line 71 of file CompileOnDemandLayer.h.

◆ IndirectStubsManagerBuilder

Builder for IndirectStubsManagers.

Definition at line 69 of file CompileOnDemandLayer.h.

Constructor & Destructor Documentation

◆ CompileOnDemandLayer2()

llvm::orc::CompileOnDemandLayer2::CompileOnDemandLayer2 ( ExecutionSession &  ES,
IRLayer &  BaseLayer,
JITCompileCallbackManager &  CCMgr,
IndirectStubsManagerBuilder  BuildIndirectStubsManager,
GetAvailableContextFunction  GetAvailableContext 
)

Definition at line 216 of file CompileOnDemandLayer.cpp.

Member Function Documentation

◆ add()

Error llvm::orc::CompileOnDemandLayer2::add ( VSO &  V,
VModuleKey  K,
std::unique_ptr< Module >  M 
)
overridevirtual

Adds a MaterializationUnit representing the given IR to the given VSO.

Reimplemented from llvm::orc::IRLayer.

Definition at line 224 of file CompileOnDemandLayer.cpp.

References llvm::orc::IRLayer::add().

◆ emit()

void llvm::orc::CompileOnDemandLayer2::emit ( MaterializationResponsibility  R,
VModuleKey  K,
std::unique_ptr< Module >  M 
)
overridevirtual

Friends And Related Function Documentation

◆ ExtractingIRMaterializationUnit

friend class ExtractingIRMaterializationUnit
friend

Definition at line 64 of file CompileOnDemandLayer.h.


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