class ObjectLayer
Declaration
class ObjectLayer : public RTTIExtends { /* full declaration omitted */ };
Description
Interface for Layers that accept object files.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/Layer.h:133
Inherits from: RTTIExtends
Member Variables
- private llvm::orc::ExecutionSession& ES
- public static char ID
Method Overview
- public ObjectLayer(llvm::orc::ExecutionSession & ES)
- public virtual llvm::Error add(llvm::orc::ResourceTrackerSP RT, std::unique_ptr<MemoryBuffer> O, MaterializationUnit::Interface I)
- public llvm::Error add(llvm::orc::ResourceTrackerSP RT, std::unique_ptr<MemoryBuffer> O)
- public llvm::Error add(llvm::orc::JITDylib & JD, std::unique_ptr<MemoryBuffer> O, MaterializationUnit::Interface I)
- public llvm::Error add(llvm::orc::JITDylib & JD, std::unique_ptr<MemoryBuffer> O)
- public virtual void emit(std::unique_ptr<MaterializationResponsibility> R, std::unique_ptr<MemoryBuffer> O)
- public llvm::orc::ExecutionSession & getExecutionSession()
- public virtual ~ObjectLayer()
Methods
¶ObjectLayer(llvm::orc::ExecutionSession& ES)
ObjectLayer(llvm::orc::ExecutionSession& ES)
Declared at: llvm/include/llvm/ExecutionEngine/Orc/Layer.h:137
Parameters
¶virtual llvm::Error add(
llvm::orc::ResourceTrackerSP RT,
std::unique_ptr<MemoryBuffer> O,
MaterializationUnit::Interface I)
virtual llvm::Error add(
llvm::orc::ResourceTrackerSP RT,
std::unique_ptr<MemoryBuffer> O,
MaterializationUnit::Interface I)
Description
Adds a MaterializationUnit for the object file in the given memory buffer to the JITDylib for the given ResourceTracker.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/Layer.h:145
Parameters
- llvm::orc::ResourceTrackerSP RT
- std::unique_ptr<MemoryBuffer> O
- MaterializationUnit::Interface I
¶llvm::Error add(llvm::orc::ResourceTrackerSP RT,
std::unique_ptr<MemoryBuffer> O)
llvm::Error add(llvm::orc::ResourceTrackerSP RT,
std::unique_ptr<MemoryBuffer> O)
Description
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.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/Layer.h:151
Parameters
- llvm::orc::ResourceTrackerSP RT
- std::unique_ptr<MemoryBuffer> O
¶llvm::Error add(llvm::orc::JITDylib& JD,
std::unique_ptr<MemoryBuffer> O,
MaterializationUnit::Interface I)
llvm::Error add(llvm::orc::JITDylib& JD,
std::unique_ptr<MemoryBuffer> O,
MaterializationUnit::Interface I)
Description
Adds a MaterializationUnit for the object file in the given memory buffer to the given JITDylib.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/Layer.h:155
Parameters
- llvm::orc::JITDylib& JD
- std::unique_ptr<MemoryBuffer> O
- MaterializationUnit::Interface I
¶llvm::Error add(llvm::orc::JITDylib& JD,
std::unique_ptr<MemoryBuffer> O)
llvm::Error add(llvm::orc::JITDylib& JD,
std::unique_ptr<MemoryBuffer> O)
Description
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.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/Layer.h:163
Parameters
- llvm::orc::JITDylib& JD
- std::unique_ptr<MemoryBuffer> O
¶virtual void emit(
std::unique_ptr<MaterializationResponsibility>
R,
std::unique_ptr<MemoryBuffer> O)
virtual void emit(
std::unique_ptr<MaterializationResponsibility>
R,
std::unique_ptr<MemoryBuffer> O)
Description
Emit should materialize the given IR.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/Layer.h:166
Parameters
- std::unique_ptr<MaterializationResponsibility> R
- std::unique_ptr<MemoryBuffer> O
¶llvm::orc::ExecutionSession& getExecutionSession()
llvm::orc::ExecutionSession& getExecutionSession()
Description
Returns the execution session for this layer.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/Layer.h:141
¶virtual ~ObjectLayer()
virtual ~ObjectLayer()
Declared at: llvm/include/llvm/ExecutionEngine/Orc/Layer.h:138