LLVM
15.0.0git
|
Simple page-based allocator. More...
#include "llvm/ExecutionEngine/Orc/TargetProcess/SimpleExecutorMemoryManager.h"
Public Member Functions | |
virtual | ~SimpleExecutorMemoryManager () |
Expected< ExecutorAddr > | allocate (uint64_t Size) |
Error | finalize (tpctypes::FinalizeRequest &FR) |
Error | deallocate (const std::vector< ExecutorAddr > &Bases) |
Error | shutdown () override |
void | addBootstrapSymbols (StringMap< ExecutorAddr > &M) override |
![]() | |
virtual | ~ExecutorBootstrapService () |
Simple page-based allocator.
Definition at line 32 of file SimpleExecutorMemoryManager.h.
|
virtual |
Definition at line 20 of file SimpleExecutorMemoryManager.cpp.
References assert(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::empty().
|
overridevirtual |
Implements llvm::orc::ExecutorBootstrapService.
Definition at line 199 of file SimpleExecutorMemoryManager.cpp.
References llvm::orc::ExecutorAddr::fromPtr(), M, llvm::orc::rt::SimpleExecutorMemoryManagerDeallocateWrapperName, llvm::orc::rt::SimpleExecutorMemoryManagerFinalizeWrapperName, llvm::orc::rt::SimpleExecutorMemoryManagerInstanceName, and llvm::orc::rt::SimpleExecutorMemoryManagerReserveWrapperName.
Expected< ExecutorAddr > llvm::orc::rt_bootstrap::SimpleExecutorMemoryManager::allocate | ( | uint64_t | Size | ) |
Definition at line 24 of file SimpleExecutorMemoryManager.cpp.
References llvm::sys::Memory::allocateMappedMemory(), assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::count(), llvm::errorCodeToError(), llvm::orc::ExecutorAddr::fromPtr(), llvm::Lock, llvm::sys::Memory::MF_READ, and llvm::sys::Memory::MF_WRITE.
Error llvm::orc::rt_bootstrap::SimpleExecutorMemoryManager::deallocate | ( | const std::vector< ExecutorAddr > & | Bases | ) |
Definition at line 150 of file SimpleExecutorMemoryManager.cpp.
Error llvm::orc::rt_bootstrap::SimpleExecutorMemoryManager::finalize | ( | tpctypes::FinalizeRequest & | FR | ) |
Definition at line 36 of file SimpleExecutorMemoryManager.cpp.
References llvm::orc::tpctypes::FinalizeRequest::Actions, llvm::sampleprof::Base, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), llvm::formatv(), I, llvm::inconvertibleErrorCode(), llvm::Lock, llvm::min(), move, llvm::orc::tpctypes::FinalizeRequest::Segments, and llvm::Error::success().
|
overridevirtual |
Implements llvm::orc::ExecutorBootstrapService.
Definition at line 185 of file SimpleExecutorMemoryManager.cpp.
References llvm::Lock, and move.