LLVM  12.0.0git
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
Collaboration diagram for llvm::orc::ObjectTransformLayer:
Collaboration graph

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=TransformFunction())
void emit (MaterializationResponsibility R, std::unique_ptr< MemoryBuffer > O) override
 Emit should materialize the given IR. More...
void setTransform (TransformFunction Transform)
- 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 25 of file ObjectTransformLayer.h.

Member Typedef Documentation

◆ TransformFunction

Definition at line 29 of file ObjectTransformLayer.h.

Constructor & Destructor Documentation

◆ ObjectTransformLayer()

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

Definition at line 15 of file ObjectTransformLayer.cpp.

Member Function Documentation

◆ emit()

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

◆ setTransform()

void llvm::orc::ObjectTransformLayer::setTransform ( TransformFunction  Transform)

Definition at line 37 of file ObjectTransformLayer.h.

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