LLVM  7.0.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::orc::LLLazyJIT Class Reference

An extended version of LLJIT that supports lazy function-at-a-time compilation of LLVM IR. More...

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

Inheritance diagram for llvm::orc::LLLazyJIT:
[legend]
Collaboration diagram for llvm::orc::LLLazyJIT:
[legend]

Public Member Functions

void setLazyCompileTransform (IRTransformLayer2::TransformFunction Transform)
 Set an IR transform (e.g. More...
 
Error addLazyIRModule (VSO &V, std::unique_ptr< Module > M)
 Add a module to be lazily compiled to VSO V. More...
 
Error addLazyIRModule (std::unique_ptr< Module > M)
 Add a module to be lazily compiled to the main VSO. More...
 
- Public Member Functions inherited from llvm::orc::LLJIT
ExecutionSession & getExecutionSession ()
 Returns a reference to the ExecutionSession for this JIT instance. More...
 
VSO & getMainVSO ()
 Returns a reference to the VSO representing the JIT'd main program. More...
 
Error defineAbsolute (StringRef Name, JITEvaluatedSymbol Address)
 Convenience method for defining an absolute symbol. More...
 
Error addIRModule (VSO &V, std::unique_ptr< Module > M)
 Adds an IR module to the given VSO. More...
 
Error addIRModule (std::unique_ptr< Module > M)
 Adds an IR module to the Main VSO. More...
 
Expected< JITEvaluatedSymbol > lookupLinkerMangled (VSO &V, StringRef Name)
 Look up a symbol in VSO V by the symbol's linker-mangled name (to look up symbols based on their IR name use the lookup function instead). More...
 
Expected< JITEvaluatedSymbol > lookupLinkerMangled (StringRef Name)
 Look up a symbol in the main VSO by the symbol's linker-mangled name (to look up symbols based on their IR name use the lookup function instead). More...
 
Expected< JITEvaluatedSymbol > lookup (VSO &V, StringRef UnmangledName)
 Look up a symbol in VSO V based on its IR symbol name. More...
 
Expected< JITEvaluatedSymbol > lookup (StringRef UnmangledName)
 Look up a symbol in the main VSO based on its IR symbol name. More...
 
Error runConstructors ()
 Runs all not-yet-run static constructors. More...
 
Error runDestructors ()
 Runs all not-yet-run static destructors. More...
 

Static Public Member Functions

static Expected< std::unique_ptr< LLLazyJIT > > Create (std::unique_ptr< ExecutionSession > ES, std::unique_ptr< TargetMachine > TM, DataLayout DL, LLVMContext &Ctx)
 Create an LLLazyJIT instance. More...
 
- Static Public Member Functions inherited from llvm::orc::LLJIT
static Expected< std::unique_ptr< LLJIT > > Create (std::unique_ptr< ExecutionSession > ES, std::unique_ptr< TargetMachine > TM, DataLayout DL)
 Create an LLJIT instance. More...
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::orc::LLJIT
 LLJIT (std::unique_ptr< ExecutionSession > ES, std::unique_ptr< TargetMachine > TM, DataLayout DL)
 
std::shared_ptr< RuntimeDyld::MemoryManager > getMemoryManager (VModuleKey K)
 
std::string mangle (StringRef UnmangledName)
 
Error applyDataLayout (Module &M)
 
void recordCtorDtors (Module &M)
 
- Protected Attributes inherited from llvm::orc::LLJIT
std::unique_ptr< ExecutionSession > ES
 
VSO & Main
 
std::unique_ptr< TargetMachine > TM
 
DataLayout DL
 
RTDyldObjectLinkingLayer2 ObjLinkingLayer
 
IRCompileLayer2 CompileLayer
 
CtorDtorRunner2 CtorRunner
 
CtorDtorRunner2 DtorRunner
 

Detailed Description

An extended version of LLJIT that supports lazy function-at-a-time compilation of LLVM IR.

Definition at line 106 of file LLJIT.h.

Member Function Documentation

◆ addLazyIRModule() [1/2]

Error llvm::orc::LLLazyJIT::addLazyIRModule ( VSO &  V,
std::unique_ptr< Module >  M 
)

Add a module to be lazily compiled to VSO V.

Definition at line 109 of file LLJIT.cpp.

References assert().

◆ addLazyIRModule() [2/2]

Error llvm::orc::LLLazyJIT::addLazyIRModule ( std::unique_ptr< Module >  M)
inline

Add a module to be lazily compiled to the main VSO.

Definition at line 123 of file LLJIT.h.

References function, and llvm::orc::LLJIT::Main.

◆ Create()

Expected< std::unique_ptr< LLLazyJIT > > llvm::orc::LLLazyJIT::Create ( std::unique_ptr< ExecutionSession >  ES,
std::unique_ptr< TargetMachine >  TM,
DataLayout  DL,
LLVMContext &  Ctx 
)
static

◆ setLazyCompileTransform()

void llvm::orc::LLLazyJIT::setLazyCompileTransform ( IRTransformLayer2::TransformFunction  Transform)
inline

Set an IR transform (e.g.

pass manager pipeline) to run on each function when it is compiled.

Definition at line 115 of file LLJIT.h.


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