LLVM
17.0.0git
|
#include "llvm/ExecutionEngine/Orc/EPCGenericJITLinkMemoryManager.h"
Classes | |
class | InFlightAlloc |
struct | SymbolAddrs |
Function addresses for memory access. More... | |
Public Member Functions | |
EPCGenericJITLinkMemoryManager (ExecutorProcessControl &EPC, SymbolAddrs SAs) | |
Create an EPCGenericJITLinkMemoryManager instance from a given set of function addrs. More... | |
void | allocate (const jitlink::JITLinkDylib *JD, jitlink::LinkGraph &G, OnAllocatedFunction OnAllocated) override |
Start the allocation process. More... | |
void | deallocate (std::vector< FinalizedAlloc > Allocs, OnDeallocatedFunction OnDeallocated) override |
Deallocate a list of allocation objects. More... | |
![]() | |
virtual | ~JITLinkMemoryManager () |
AllocResult | allocate (const JITLinkDylib *JD, LinkGraph &G) |
Convenience function for blocking allocation. More... | |
void | deallocate (FinalizedAlloc Alloc, OnDeallocatedFunction OnDeallocated) |
Convenience function for deallocation of a single alloc. More... | |
Error | deallocate (std::vector< FinalizedAlloc > Allocs) |
Convenience function for blocking deallocation. More... | |
Error | deallocate (FinalizedAlloc Alloc) |
Convenience function for blocking deallocation of a single alloc. More... | |
Additional Inherited Members | |
![]() | |
using | AllocResult = Expected< std::unique_ptr< InFlightAlloc > > |
Typedef for the argument to be passed to OnAllocatedFunction. More... | |
using | OnAllocatedFunction = unique_function< void(AllocResult)> |
Called when allocation has been completed. More... | |
using | OnDeallocatedFunction = unique_function< void(Error)> |
Called when deallocation has completed. More... | |
Definition at line 27 of file EPCGenericJITLinkMemoryManager.h.
|
inline |
Create an EPCGenericJITLinkMemoryManager instance from a given set of function addrs.
Definition at line 39 of file EPCGenericJITLinkMemoryManager.h.
|
overridevirtual |
Start the allocation process.
If the initial allocation is successful then the OnAllocated function will be called with a std::unique_ptr<InFlightAlloc> value. If the assocation is unsuccessful then the OnAllocated function will be called with an Error.
Implements llvm::jitlink::JITLinkMemoryManager.
Definition at line 100 of file EPCGenericJITLinkMemoryManager.cpp.
References llvm::ARCISD::BL, llvm::cantFail(), G, and move.
|
overridevirtual |
Deallocate a list of allocation objects.
Dealloc actions will be run in reverse order (from the end of the vector to the start).
Implements llvm::jitlink::JITLinkMemoryManager.
Definition at line 125 of file EPCGenericJITLinkMemoryManager.cpp.
References llvm::cantFail(), and move.