Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DRWMutex.h187 using SmartScopedWriter = std::lock_guard<SmartRWMutex<mt_only>>; variable
189 template <bool mt_only> struct SmartScopedWriter { struct
192 explicit SmartScopedWriter(SmartRWMutex<mt_only> &m) : mutex(m) { in SmartScopedWriter() argument
196 ~SmartScopedWriter() { mutex.unlock(); } in ~SmartScopedWriter() argument
199 typedef SmartScopedWriter<false> ScopedWriter;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DPassRegistry.cpp50 sys::SmartScopedWriter<true> Guard(Lock); in registerPass()
72 sys::SmartScopedWriter<true> Guard(Lock); in addRegistrationListener()
77 sys::SmartScopedWriter<true> Guard(Lock); in removeRegistrationListener()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DConstString.cpp113 llvm::sys::SmartScopedWriter<false> wlock(pool.m_mutex); in GetConstCStringWithStringRef()
131 llvm::sys::SmartScopedWriter<false> wlock(pool.m_mutex); in GetConstCStringAndSetMangledCounterPart()
148 llvm::sys::SmartScopedWriter<false> wlock(pool.m_mutex); in GetConstCStringAndSetMangledCounterPart()