LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::orc::LinkGraphLayer Class Referenceabstract

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

Inheritance diagram for llvm::orc::LinkGraphLayer:
Inheritance graph
[legend]

Public Member Functions

 LinkGraphLayer (ExecutionSession &ES)
 
virtual ~LinkGraphLayer ()
 
ExecutionSessiongetExecutionSession ()
 
virtual Error add (ResourceTrackerSP RT, std::unique_ptr< jitlink::LinkGraph > G, MaterializationUnit::Interface I)
 Adds a LinkGraph to the JITDylib for the given ResourceTracker.
 
Error add (ResourceTrackerSP RT, std::unique_ptr< jitlink::LinkGraph > G)
 Adds a LinkGraph to the JITDylib for the given ResourceTracker.
 
Error add (JITDylib &JD, std::unique_ptr< jitlink::LinkGraph > G, MaterializationUnit::Interface I)
 Adds a LinkGraph to the given JITDylib.
 
Error add (JITDylib &JD, std::unique_ptr< jitlink::LinkGraph > G)
 Adds a LinkGraph to the given JITDylib.
 
virtual void emit (std::unique_ptr< MaterializationResponsibility > R, std::unique_ptr< jitlink::LinkGraph > G)=0
 Emit should materialize the given IR.
 
MaterializationUnit::Interface getInterface (jitlink::LinkGraph &G)
 Get the interface for the given LinkGraph.
 

Static Public Member Functions

static JITSymbolFlags getJITSymbolFlagsForSymbol (jitlink::Symbol &Sym)
 Get the JITSymbolFlags for the given symbol.
 

Detailed Description

Definition at line 26 of file LinkGraphLayer.h.

Constructor & Destructor Documentation

◆ LinkGraphLayer()

llvm::orc::LinkGraphLayer::LinkGraphLayer ( ExecutionSession ES)
inline

Definition at line 28 of file LinkGraphLayer.h.

◆ ~LinkGraphLayer()

llvm::orc::LinkGraphLayer::~LinkGraphLayer ( )
virtualdefault

Member Function Documentation

◆ add() [1/4]

Error llvm::orc::LinkGraphLayer::add ( JITDylib JD,
std::unique_ptr< jitlink::LinkGraph G 
)
inline

Adds a LinkGraph to the given JITDylib.

The interface for the object will be built using getLinkGraphInterface.

Definition at line 53 of file LinkGraphLayer.h.

References add(), G, and llvm::orc::JITDylib::getDefaultResourceTracker().

◆ add() [2/4]

Error llvm::orc::LinkGraphLayer::add ( JITDylib JD,
std::unique_ptr< jitlink::LinkGraph G,
MaterializationUnit::Interface  I 
)
inline

Adds a LinkGraph to the given JITDylib.

Definition at line 46 of file LinkGraphLayer.h.

References add(), G, llvm::orc::JITDylib::getDefaultResourceTracker(), and I.

◆ add() [3/4]

Error llvm::orc::LinkGraphLayer::add ( ResourceTrackerSP  RT,
std::unique_ptr< jitlink::LinkGraph G 
)
inline

Adds a LinkGraph to the JITDylib for the given ResourceTracker.

The interface for the graph will be built using getLinkGraphInterface.

Definition at line 40 of file LinkGraphLayer.h.

References add(), G, and getInterface().

◆ add() [4/4]

Error llvm::orc::LinkGraphLayer::add ( ResourceTrackerSP  RT,
std::unique_ptr< jitlink::LinkGraph G,
MaterializationUnit::Interface  I 
)
inlinevirtual

Adds a LinkGraph to the JITDylib for the given ResourceTracker.

Definition at line 98 of file LinkGraphLayer.h.

References G, and I.

Referenced by add().

◆ emit()

virtual void llvm::orc::LinkGraphLayer::emit ( std::unique_ptr< MaterializationResponsibility R,
std::unique_ptr< jitlink::LinkGraph G 
)
pure virtual

Emit should materialize the given IR.

Implemented in llvm::orc::LinkGraphLinkingLayer, and llvm::orc::ObjectLinkingLayer.

Referenced by llvm::orc::LinkGraphMaterializationUnit::materialize().

◆ getExecutionSession()

ExecutionSession & llvm::orc::LinkGraphLayer::getExecutionSession ( )
inline

◆ getInterface()

MaterializationUnit::Interface llvm::orc::LinkGraphLayer::getInterface ( jitlink::LinkGraph G)

◆ getJITSymbolFlagsForSymbol()

JITSymbolFlags llvm::orc::LinkGraphLayer::getJITSymbolFlagsForSymbol ( jitlink::Symbol Sym)
static

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