LLVM
15.0.0git
|
Interface for Layers that accept object files. More...
#include "llvm/ExecutionEngine/Orc/Layer.h"
Public Member Functions | |
ObjectLayer (ExecutionSession &ES) | |
virtual | ~ObjectLayer () |
ExecutionSession & | getExecutionSession () |
Returns the execution session for this layer. More... | |
virtual Error | add (ResourceTrackerSP RT, std::unique_ptr< MemoryBuffer > O, MaterializationUnit::Interface I) |
Adds a MaterializationUnit for the object file in the given memory buffer to the JITDylib for the given ResourceTracker. More... | |
Error | add (ResourceTrackerSP RT, std::unique_ptr< MemoryBuffer > O) |
Adds a MaterializationUnit for the object file in the given memory buffer to the JITDylib for the given ResourceTracker. More... | |
Error | add (JITDylib &JD, std::unique_ptr< MemoryBuffer > O, MaterializationUnit::Interface I) |
Adds a MaterializationUnit for the object file in the given memory buffer to the given JITDylib. More... | |
Error | add (JITDylib &JD, std::unique_ptr< MemoryBuffer > O) |
Adds a MaterializationUnit for the object file in the given memory buffer to the given JITDylib. More... | |
virtual void | emit (std::unique_ptr< MaterializationResponsibility > R, std::unique_ptr< MemoryBuffer > O)=0 |
Emit should materialize the given IR. More... | |
![]() | |
const void * | dynamicClassID () const override |
bool | isA (const void *const ClassID) const override |
![]() | |
virtual | ~RTTIRoot ()=default |
virtual const void * | dynamicClassID () const =0 |
Returns the class ID for the dynamic type of this RTTIRoot instance. More... | |
template<typename QueryT > | |
bool | isA () const |
Check whether this instance is a subclass of QueryT. More... | |
Static Public Attributes | |
static char | ID |
Additional Inherited Members | |
![]() | |
static const void * | classID () |
static bool | classof (const RTTIRoot *R) |
![]() | |
static const void * | classID () |
Returns the class ID for this type. More... | |
ObjectLayer::ObjectLayer | ( | ExecutionSession & | ES | ) |
|
virtualdefault |
Error ObjectLayer::add | ( | JITDylib & | JD, |
std::unique_ptr< MemoryBuffer > | O | ||
) |
Adds a MaterializationUnit for the object file in the given memory buffer to the given JITDylib.
The interface for the object will be built using the default object interface builder.
Definition at line 179 of file Layer.cpp.
References add(), getExecutionSession(), llvm::orc::getObjectFileInterface(), I, move, and llvm::RISCVFenceField::O.
|
inline |
Adds a MaterializationUnit for the object file in the given memory buffer to the given JITDylib.
Definition at line 155 of file Layer.h.
References add(), llvm::orc::JITDylib::getDefaultResourceTracker(), I, move, and llvm::RISCVFenceField::O.
Error ObjectLayer::add | ( | ResourceTrackerSP | RT, |
std::unique_ptr< MemoryBuffer > | O | ||
) |
Adds a MaterializationUnit for the object file in the given memory buffer to the JITDylib for the given ResourceTracker.
The interface for the object will be built using the default object interface builder.
Definition at line 172 of file Layer.cpp.
References add(), getExecutionSession(), llvm::orc::getObjectFileInterface(), I, move, and llvm::RISCVFenceField::O.
|
virtual |
Adds a MaterializationUnit for the object file in the given memory buffer to the JITDylib for the given ResourceTracker.
Definition at line 163 of file Layer.cpp.
References assert(), llvm::orc::JITDylib::define(), I, move, and llvm::RISCVFenceField::O.
Referenced by add().
|
pure virtual |
Emit should materialize the given IR.
Referenced by llvm::orc::ObjectTransformLayer::emit(), and llvm::orc::IRCompileLayer::emit().
|
inline |
Returns the execution session for this layer.
Definition at line 141 of file Layer.h.
Referenced by add(), llvm::orc::BasicObjectLayerMaterializationUnit::Create(), and llvm::orc::StaticLibraryDefinitionGenerator::tryToGenerate().