LLVM  8.0.1
Public Types | Public Member Functions | List of all members
llvm::orc::ObjectTransformLayer Class Reference

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

Inheritance diagram for llvm::orc::ObjectTransformLayer:
Inheritance graph
[legend]
Collaboration diagram for llvm::orc::ObjectTransformLayer:
Collaboration graph
[legend]

Public Types

using TransformFunction = std::function< Expected< std::unique_ptr< MemoryBuffer > >(std::unique_ptr< MemoryBuffer >)>
 

Public Member Functions

 ObjectTransformLayer (ExecutionSession &ES, ObjectLayer &BaseLayer, TransformFunction Transform)
 
void emit (MaterializationResponsibility R, std::unique_ptr< MemoryBuffer > O) override
 Emit should materialize the given IR. More...
 
- Public Member Functions inherited from llvm::orc::ObjectLayer
 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...
 

Detailed Description

Definition at line 26 of file ObjectTransformLayer.h.

Member Typedef Documentation

◆ TransformFunction

Definition at line 30 of file ObjectTransformLayer.h.

Constructor & Destructor Documentation

◆ ObjectTransformLayer()

llvm::orc::ObjectTransformLayer::ObjectTransformLayer ( ExecutionSession ES,
ObjectLayer BaseLayer,
TransformFunction  Transform 
)

Definition at line 16 of file ObjectTransformLayer.cpp.

Member Function Documentation

◆ emit()

void llvm::orc::ObjectTransformLayer::emit ( MaterializationResponsibility  R,
std::unique_ptr< MemoryBuffer O 
)
overridevirtual

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