LLVM 20.0.0git
Classes | Public Types | Public Member Functions | List of all members
llvm::orc::IRCompileLayer Class Reference

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

Inheritance diagram for llvm::orc::IRCompileLayer:
Inheritance graph


class  IRCompiler

Public Types

using NotifyCompiledFunction = std::function< void(MaterializationResponsibility &R, ThreadSafeModule TSM)>

Public Member Functions

 IRCompileLayer (ExecutionSession &ES, ObjectLayer &BaseLayer, std::unique_ptr< IRCompiler > Compile)
IRCompilergetCompiler ()
void setNotifyCompiled (NotifyCompiledFunction NotifyCompiled)
void emit (std::unique_ptr< MaterializationResponsibility > R, ThreadSafeModule TSM) override
 Emit should materialize the given IR.
- Public Member Functions inherited from llvm::orc::IRLayer
 IRLayer (ExecutionSession &ES, const IRSymbolMapper::ManglingOptions *&MO)
virtual ~IRLayer ()
ExecutionSessiongetExecutionSession ()
 Returns the ExecutionSession for this layer.
const IRSymbolMapper::ManglingOptions *& getManglingOptions () const
 Get the mangling options for this layer.
void setCloneToNewContextOnEmit (bool CloneToNewContextOnEmit)
 Sets the CloneToNewContextOnEmit flag (false by default).
bool getCloneToNewContextOnEmit () const
 Returns the current value of the CloneToNewContextOnEmit flag.
virtual Error add (ResourceTrackerSP RT, ThreadSafeModule TSM)
 Add a MaterializatinoUnit representing the given IR to the JITDylib targeted by the given tracker.
Error add (JITDylib &JD, ThreadSafeModule TSM)
 Adds a MaterializationUnit representing the given IR to the given JITDylib.
virtual void emit (std::unique_ptr< MaterializationResponsibility > R, ThreadSafeModule TSM)=0
 Emit should materialize the given IR.

Detailed Description

Definition at line 31 of file IRCompileLayer.h.

Member Typedef Documentation

◆ NotifyCompiledFunction

Definition at line 49 of file IRCompileLayer.h.

Constructor & Destructor Documentation

◆ IRCompileLayer()

llvm::orc::IRCompileLayer::IRCompileLayer ( ExecutionSession ES,
ObjectLayer BaseLayer,
std::unique_ptr< IRCompiler Compile 

Definition at line 16 of file IRCompileLayer.cpp.

Member Function Documentation

◆ emit()

void llvm::orc::IRCompileLayer::emit ( std::unique_ptr< MaterializationResponsibility R,
ThreadSafeModule  TSM 

◆ getCompiler()

IRCompiler & llvm::orc::IRCompileLayer::getCompiler ( )

Definition at line 55 of file IRCompileLayer.h.

◆ setNotifyCompiled()

void llvm::orc::IRCompileLayer::setNotifyCompiled ( NotifyCompiledFunction  NotifyCompiled)

Definition at line 23 of file IRCompileLayer.cpp.

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