LLVM  7.0.0
Public Member Functions | List of all members
llvm::orc::IRLayer Class Referenceabstract

Interface for layers that accept LLVM IR. More...

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

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

Public Member Functions

 IRLayer (ExecutionSession &ES)
 
virtual ~IRLayer ()
 
ExecutionSession & getExecutionSession ()
 Returns the ExecutionSession for this layer. More...
 
virtual Error add (VSO &V, VModuleKey K, std::unique_ptr< Module > M)
 Adds a MaterializationUnit representing the given IR to the given VSO. More...
 
virtual void emit (MaterializationResponsibility R, VModuleKey K, std::unique_ptr< Module > M)=0
 Emit should materialize the given IR. More...
 

Detailed Description

Interface for layers that accept LLVM IR.

Definition at line 24 of file Layer.h.

Constructor & Destructor Documentation

◆ IRLayer()

llvm::orc::IRLayer::IRLayer ( ExecutionSession &  ES)

Definition at line 17 of file Layer.cpp.

◆ ~IRLayer()

llvm::orc::IRLayer::~IRLayer ( )
virtual

Definition at line 18 of file Layer.cpp.

Member Function Documentation

◆ add()

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

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

Reimplemented in llvm::orc::CompileOnDemandLayer2.

Definition at line 20 of file Layer.cpp.

References llvm::orc::VSO::define().

Referenced by llvm::orc::CompileOnDemandLayer2::add(), getExecutionSession(), and llvm::orc::ObjectLayer::getExecutionSession().

◆ emit()

virtual void llvm::orc::IRLayer::emit ( MaterializationResponsibility  R,
VModuleKey  K,
std::unique_ptr< Module >  M 
)
pure virtual

◆ getExecutionSession()

ExecutionSession& llvm::orc::IRLayer::getExecutionSession ( )
inline

Returns the ExecutionSession for this layer.

Definition at line 30 of file Layer.h.

References add(), and emit().

Referenced by llvm::orc::IRTransformLayer2::emit(), llvm::orc::IRCompileLayer2::emit(), and llvm::orc::CompileOnDemandLayer2::emit().


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