LLVM 20.0.0git
Public Types | Public Member Functions | Static Public Attributes | List of all members
llvm::orc::ObjectTransformLayer Class Reference

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

Inheritance diagram for llvm::orc::ObjectTransformLayer:
Inheritance 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=TransformFunction())
 
void emit (std::unique_ptr< MaterializationResponsibility > R, std::unique_ptr< MemoryBuffer > O) override
 
void setTransform (TransformFunction Transform)
 
- Public Member Functions inherited from llvm::RTTIExtends< ObjectTransformLayer, ObjectLayer >
const void * dynamicClassID () const override
 
bool isA (const void *const ClassID) const override
 

Static Public Attributes

static char ID
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::RTTIExtends< ObjectTransformLayer, ObjectLayer >
static const void * classID ()
 
static bool classof (const RTTIRoot *R)
 

Detailed Description

Definition at line 24 of file ObjectTransformLayer.h.

Member Typedef Documentation

◆ TransformFunction

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

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 19 of file ObjectTransformLayer.cpp.

Member Function Documentation

◆ emit()

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

Definition at line 24 of file ObjectTransformLayer.cpp.

References assert(), and llvm::orc::ObjectLayer::emit().

◆ setTransform()

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

Definition at line 39 of file ObjectTransformLayer.h.

Member Data Documentation

◆ ID

char llvm::orc::ObjectTransformLayer::ID
static

Definition at line 27 of file ObjectTransformLayer.h.


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