14 #ifndef LLVM_EXECUTIONENGINE_ORC_LLJIT_H 15 #define LLVM_EXECUTIONENGINE_ORC_LLJIT_H 34 Create(std::unique_ptr<ExecutionSession>
ES,
81 LLJIT(std::unique_ptr<ExecutionSession> ES, std::unique_ptr<TargetMachine> TM,
92 std::unique_ptr<ExecutionSession>
ES;
95 std::unique_ptr<TargetMachine>
TM;
110 Create(std::unique_ptr<ExecutionSession>
ES,
116 TransformLayer.setTransform(std::move(Transform));
120 Error addLazyIRModule(
VSO &V, std::unique_ptr<Module> M);
124 return addLazyIRModule(
Main, std::move(M));
128 LLLazyJIT(std::unique_ptr<ExecutionSession> ES,
130 std::unique_ptr<JITCompileCallbackManager> CCMgr,
131 std::function<std::unique_ptr<IndirectStubsManager>()> ISMBuilder);
133 std::unique_ptr<JITCompileCallbackManager> CCMgr;
134 std::function<std::unique_ptr<IndirectStubsManager>()> ISMBuilder;
143 #endif // LLVM_EXECUTIONENGINE_ORC_LLJIT_H ExecutionSession & getExecutionSession()
Returns a reference to the ExecutionSession for this JIT instance.
A parsed version of the target data layout string in and methods for querying it. ...
Error addIRModule(std::unique_ptr< Module > M)
Adds an IR module to the Main VSO.
Compute iterated dominance frontiers using a linear time algorithm.
Error defineAbsolute(StringRef Name, JITEvaluatedSymbol Address)
Convenience method for defining an absolute symbol.
A Module instance is used to store all the information related to an LLVM module. ...
A symbol table that supports asynchoronous symbol queries.
uint64_t VModuleKey
VModuleKey provides a unique identifier (allocated and managed by ExecutionSessions) for a module add...
Error runConstructors()
Runs all not-yet-run static constructors.
CtorDtorRunner2 DtorRunner
IRCompileLayer2 CompileLayer
Tagged union holding either a T or a Error.
RTDyldObjectLinkingLayer2 ObjLinkingLayer
std::shared_ptr< RuntimeDyld::MemoryManager > getMemoryManager(VModuleKey K)
VSO & getMainVSO()
Returns a reference to the VSO representing the JIT'd main program.
This is an important class for using LLVM in a threaded context.
Error runDestructors()
Runs all not-yet-run static destructors.
Expected< JITEvaluatedSymbol > lookup(StringRef UnmangledName)
Look up a symbol in the main VSO based on its IR symbol name.
std::string mangle(StringRef UnmangledName)
LLJIT(std::unique_ptr< ExecutionSession > ES, std::unique_ptr< TargetMachine > TM, DataLayout DL)
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 n...
CtorDtorRunner2 CtorRunner
void setLazyCompileTransform(IRTransformLayer2::TransformFunction Transform)
Set an IR transform (e.g.
std::unique_ptr< ExecutionSession > ES
void recordCtorDtors(Module &M)
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 the...
std::unique_ptr< TargetMachine > TM
A pre-fabricated ORC JIT stack that can serve as an alternative to MCJIT.
An ExecutionSession represents a running JIT program.
An extended version of LLJIT that supports lazy function-at-a-time compilation of LLVM IR...
Represents a symbol that has been evaluated to an address already.
static Expected< std::unique_ptr< LLJIT > > Create(std::unique_ptr< ExecutionSession > ES, std::unique_ptr< TargetMachine > TM, DataLayout DL)
Create an LLJIT instance.
Error applyDataLayout(Module &M)
Lightweight error class with error context and mandatory checking.
Error addLazyIRModule(std::unique_ptr< Module > M)
Add a module to be lazily compiled to the main VSO.
print Print MemDeps of function
StringRef - Represent a constant reference to a string, i.e.
Expected< JITEvaluatedSymbol > lookup(VSO &V, StringRef UnmangledName)
Look up a symbol in VSO V based on its IR symbol name.
Error addIRModule(VSO &V, std::unique_ptr< Module > M)
Adds an IR module to the given VSO.