LLVM API Documentation
Helper class for helping synchronize access to the global address map table. Access to this class should be serialized under a mutex. More...
#include <ExecutionEngine.h>
Classes | |
struct | AddressMapConfig |
Public Types | |
typedef ValueMap< const GlobalValue *, void *, AddressMapConfig > | GlobalAddressMapTy |
Public Member Functions | |
ExecutionEngineState (ExecutionEngine &EE) | |
GlobalAddressMapTy & | getGlobalAddressMap () |
std::map< void *, AssertingVH < const GlobalValue > > & | getGlobalAddressReverseMap () |
void * | RemoveMapping (const GlobalValue *ToUnmap) |
Erase an entry from the mapping table. |
Helper class for helping synchronize access to the global address map table. Access to this class should be serialized under a mutex.
Definition at line 59 of file ExecutionEngine/ExecutionEngine.h.
typedef ValueMap<const GlobalValue *, void *, AddressMapConfig> llvm::ExecutionEngineState::GlobalAddressMapTy |
Definition at line 70 of file ExecutionEngine/ExecutionEngine.h.
Definition at line 1267 of file ExecutionEngine.cpp.
Definition at line 88 of file ExecutionEngine/ExecutionEngine.h.
Referenced by llvm::ExecutionEngine::addGlobalMapping(), llvm::ExecutionEngine::clearAllGlobalMappings(), llvm::ExecutionEngine::getGlobalValueAtAddress(), llvm::ExecutionEngine::getPointerToGlobal(), llvm::ExecutionEngine::getPointerToGlobalIfAvailable(), and llvm::ExecutionEngine::updateGlobalMapping().
std::map<void*, AssertingVH<const GlobalValue> >& llvm::ExecutionEngineState::getGlobalAddressReverseMap | ( | ) | [inline] |
Definition at line 93 of file ExecutionEngine/ExecutionEngine.h.
Referenced by llvm::ExecutionEngine::addGlobalMapping(), llvm::ExecutionEngine::clearAllGlobalMappings(), llvm::ExecutionEngine::getGlobalValueAtAddress(), and llvm::ExecutionEngine::updateGlobalMapping().
void * ExecutionEngineState::RemoveMapping | ( | const GlobalValue * | ToUnmap | ) |
Erase an entry from the mapping table.
ToUnmap
was happed to. Definition at line 150 of file ExecutionEngine.cpp.
References llvm::ValueMap< KeyT, ValueT, Config >::end(), llvm::ValueMap< KeyT, ValueT, Config >::erase(), llvm::ValueMap< KeyT, ValueT, Config >::find(), I, and llvm::ValueMapIterator< DenseMapT, KeyT >::ValueTypeProxy::second.
Referenced by llvm::ExecutionEngine::clearGlobalMappingsFromModule(), and llvm::ExecutionEngine::updateGlobalMapping().