14#ifndef LLVM_EXECUTIONENGINE_ORC_COMPILEONDEMANDLAYER_H
15#define LLVM_EXECUTIONENGINE_ORC_COMPILEONDEMANDLAYER_H
59 std::function<std::unique_ptr<IndirectStubsManager>()>;
70 void emit(std::unique_ptr<MaterializationResponsibility> R,
74 struct PerDylibResources {
77 std::unique_ptr<IndirectStubsManager> ISMgr)
78 : ImplD(ImplD), ISMgr(
std::
move(ISMgr)) {}
79 JITDylib &getImplDylib() {
return ImplD; }
80 IndirectStubsManager &getISManager() {
return *ISMgr; }
84 std::unique_ptr<IndirectStubsManager> ISMgr;
87 using PerDylibResourcesMap = std::map<const JITDylib *, PerDylibResources>;
89 PerDylibResources &getPerDylibResources(JITDylib &TargetD);
91 mutable std::mutex CODLayerMutex;
94 LazyCallThroughManager &LCTMgr;
96 PerDylibResourcesMap DylibResources;
97 ImplSymbolMap *AliaseeImpls =
nullptr;
This file implements a class to represent arbitrary precision integral constant values and operations...
This file contains the simple types necessary to represent the attributes associated with functions a...
This file contains the declarations for the subclasses of Constant, which represent the different fla...
Module.h This file contains the declarations for the Module class.
std::function< std::unique_ptr< IndirectStubsManager >()> IndirectStubsManagerBuilder
Builder for IndirectStubsManagers.
void emit(std::unique_ptr< MaterializationResponsibility > R, ThreadSafeModule TSM) override
Emits the given module.
void setImplMap(ImplSymbolMap *Imp)
Sets the ImplSymbolMap.
An ExecutionSession represents a running JIT program.
Interface for layers that accept LLVM IR.
IRLayer(ExecutionSession &ES, const IRSymbolMapper::ManglingOptions *&MO)
Represents a JIT'd dynamic library.
Manages a set of 'lazy call-through' trampolines.
An LLVM Module together with a shared ThreadSafeContext.
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.