LLVM  9.0.0svn
Public Member Functions | List of all members
llvm::orc::ObjectLayer Class Referenceabstract

Interface for Layers that accept object files. More...

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

Inheritance diagram for llvm::orc::ObjectLayer:
Inheritance graph
[legend]

Public Member Functions

 ObjectLayer (ExecutionSession &ES)
 
virtual ~ObjectLayer ()
 
ExecutionSessiongetExecutionSession ()
 Returns the execution session for this layer. More...
 
virtual Error add (JITDylib &JD, std::unique_ptr< MemoryBuffer > O, VModuleKey K=VModuleKey())
 Adds a MaterializationUnit representing the given IR to the given JITDylib. More...
 
virtual void emit (MaterializationResponsibility R, std::unique_ptr< MemoryBuffer > O)=0
 Emit should materialize the given IR. More...
 

Detailed Description

Interface for Layers that accept object files.

Definition at line 113 of file Layer.h.

Constructor & Destructor Documentation

◆ ObjectLayer()

llvm::orc::ObjectLayer::ObjectLayer ( ExecutionSession ES)

Definition at line 102 of file Layer.cpp.

◆ ~ObjectLayer()

llvm::orc::ObjectLayer::~ObjectLayer ( )
virtual

Definition at line 104 of file Layer.cpp.

Member Function Documentation

◆ add()

Error llvm::orc::ObjectLayer::add ( JITDylib JD,
std::unique_ptr< MemoryBuffer O,
VModuleKey  K = VModuleKey() 
)
virtual

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

Definition at line 106 of file Layer.cpp.

References llvm::orc::BasicObjectLayerMaterializationUnit::Create(), and llvm::orc::JITDylib::define().

◆ emit()

virtual void llvm::orc::ObjectLayer::emit ( MaterializationResponsibility  R,
std::unique_ptr< MemoryBuffer O 
)
pure virtual

◆ getExecutionSession()

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

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