LLVM 20.0.0git
|
An LLVMContext together with an associated mutex that can be used to lock the context to prevent concurrent access by other threads. More...
#include "llvm/ExecutionEngine/Orc/ThreadSafeModule.h"
Classes | |
class | Lock |
Public Member Functions | |
ThreadSafeContext ()=default | |
Construct a null context. | |
ThreadSafeContext (std::unique_ptr< LLVMContext > NewCtx) | |
Construct a ThreadSafeContext from the given LLVMContext. | |
LLVMContext * | getContext () |
Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed. | |
const LLVMContext * | getContext () const |
Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed. | |
Lock | getLock () const |
An LLVMContext together with an associated mutex that can be used to lock the context to prevent concurrent access by other threads.
Definition at line 29 of file ThreadSafeModule.h.
|
default |
Construct a null context.
|
inline |
Construct a ThreadSafeContext from the given LLVMContext.
Definition at line 53 of file ThreadSafeModule.h.
References assert().
|
inline |
Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed.
Definition at line 61 of file ThreadSafeModule.h.
Referenced by llvm::orc::cloneToNewContext(), llvm::orc::IRSpeculationLayer::emit(), and llvm::orc::ThreadSafeModule::operator bool().
|
inline |
Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed.
Definition at line 65 of file ThreadSafeModule.h.
|
inline |
Definition at line 67 of file ThreadSafeModule.h.
References assert().
Referenced by llvm::orc::ThreadSafeModule::consumingModuleDo(), llvm::orc::ThreadSafeModule::operator=(), llvm::orc::ThreadSafeModule::withModuleDo(), and llvm::orc::ThreadSafeModule::~ThreadSafeModule().