Home
last modified time | relevance | path

Searched refs:SmartScopedWriter (Results 1 – 3 of 3) sorted by relevance

/openbsd/gnu/llvm/llvm/include/llvm/Support/
H A DRWMutex.h178 using SmartScopedWriter = std::lock_guard<SmartRWMutex<mt_only>>; variable
180 template <bool mt_only> struct SmartScopedWriter { struct
183 explicit SmartScopedWriter(SmartRWMutex<mt_only> &m) : mutex(m) { in SmartScopedWriter() argument
187 ~SmartScopedWriter() { mutex.unlock(); } in ~SmartScopedWriter() argument
190 typedef SmartScopedWriter<false> ScopedWriter;
/openbsd/gnu/llvm/llvm/lib/IR/
H A DPassRegistry.cpp50 sys::SmartScopedWriter<true> Guard(Lock); in registerPass()
90 sys::SmartScopedWriter<true> Guard(Lock); in registerAnalysisGroup()
111 sys::SmartScopedWriter<true> Guard(Lock); in addRegistrationListener()
116 sys::SmartScopedWriter<true> Guard(Lock); in removeRegistrationListener()
/openbsd/gnu/llvm/lldb/source/Utility/
H A DConstString.cpp112 llvm::sys::SmartScopedWriter<false> wlock(m_string_pools[h].m_mutex); in GetConstCStringWithStringRef()
129 llvm::sys::SmartScopedWriter<false> wlock(m_string_pools[h].m_mutex); in GetConstCStringAndSetMangledCounterPart()
145 llvm::sys::SmartScopedWriter<false> wlock(m_string_pools[h].m_mutex); in GetConstCStringAndSetMangledCounterPart()