LLVM 20.0.0git
|
#include "llvm/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.h"
Public Member Functions | |
~ExecutorSharedMemoryMapperService () | |
Expected< std::pair< ExecutorAddr, std::string > > | reserve (uint64_t Size) |
Expected< ExecutorAddr > | initialize (ExecutorAddr Reservation, tpctypes::SharedMemoryFinalizeRequest &FR) |
Error | deinitialize (const std::vector< ExecutorAddr > &Bases) |
Error | release (const std::vector< ExecutorAddr > &Bases) |
Error | shutdown () override |
void | addBootstrapSymbols (StringMap< ExecutorAddr > &M) override |
Public Member Functions inherited from llvm::orc::ExecutorBootstrapService | |
virtual | ~ExecutorBootstrapService () |
virtual void | addBootstrapSymbols (StringMap< ExecutorAddr > &BootstrapSymbols)=0 |
virtual Error | shutdown ()=0 |
Definition at line 27 of file ExecutorSharedMemoryMapperService.h.
|
inline |
Definition at line 30 of file ExecutorSharedMemoryMapperService.h.
|
overridevirtual |
Implements llvm::orc::ExecutorBootstrapService.
Definition at line 311 of file ExecutorSharedMemoryMapperService.cpp.
References llvm::orc::rt::ExecutorSharedMemoryMapperServiceDeinitializeWrapperName, llvm::orc::rt::ExecutorSharedMemoryMapperServiceInitializeWrapperName, llvm::orc::rt::ExecutorSharedMemoryMapperServiceInstanceName, llvm::orc::rt::ExecutorSharedMemoryMapperServiceReleaseWrapperName, llvm::orc::rt::ExecutorSharedMemoryMapperServiceReserveWrapperName, and llvm::orc::ExecutorAddr::fromPtr().
Error llvm::orc::rt_bootstrap::ExecutorSharedMemoryMapperService::deinitialize | ( | const std::vector< ExecutorAddr > & | Bases | ) |
Definition at line 206 of file ExecutorSharedMemoryMapperService.cpp.
References llvm::sampleprof::Base, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase(), llvm::find(), llvm::joinErrors(), llvm::reverse(), llvm::orc::shared::runDeallocActions(), and llvm::Error::success().
Referenced by release().
Expected< ExecutorAddr > llvm::orc::rt_bootstrap::ExecutorSharedMemoryMapperService::initialize | ( | ExecutorAddr | Reservation, |
tpctypes::SharedMemoryFinalizeRequest & | FR | ||
) |
Definition at line 141 of file ExecutorSharedMemoryMapperService.cpp.
References llvm::orc::tpctypes::SharedMemoryFinalizeRequest::Actions, llvm::errnoAsErrorCode(), llvm::errorCodeToError(), llvm::orc::Exec, llvm::inconvertibleErrorCode(), llvm::sys::Memory::InvalidateInstructionCache(), llvm::mapWindowsError(), llvm::orc::Read, llvm::orc::shared::runFinalizeActions(), llvm::orc::tpctypes::SharedMemoryFinalizeRequest::Segments, llvm::orc::ExecutorAddr::toPtr(), and llvm::orc::Write.
Error llvm::orc::rt_bootstrap::ExecutorSharedMemoryMapperService::release | ( | const std::vector< ExecutorAddr > & | Bases | ) |
Definition at line 235 of file ExecutorSharedMemoryMapperService.cpp.
References llvm::sampleprof::Base, deinitialize(), E, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase(), llvm::errnoAsErrorCode(), llvm::errorCodeToError(), llvm::inconvertibleErrorCode(), llvm::joinErrors(), llvm::mapWindowsError(), Size, and llvm::Error::success().
Expected< std::pair< ExecutorAddr, std::string > > llvm::orc::rt_bootstrap::ExecutorSharedMemoryMapperService::reserve | ( | uint64_t | Size | ) |
Definition at line 53 of file ExecutorSharedMemoryMapperService.cpp.
References Addr, llvm::Data, llvm::errnoAsErrorCode(), llvm::errorCodeToError(), llvm::orc::ExecutorAddr::fromPtr(), llvm::sys::Process::getProcessId(), llvm::inconvertibleErrorCode(), llvm::mapWindowsError(), and Size.
|
overridevirtual |
Implements llvm::orc::ExecutorBootstrapService.
Definition at line 299 of file ExecutorSharedMemoryMapperService.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::empty(), llvm::orc::ExecutorAddr::fromPtr(), llvm::release, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size(), and llvm::Error::success().