Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DRWMutex.h184 using SmartScopedWriter = std::lock_guard<SmartRWMutex<mt_only>>; variable
186 template <bool mt_only> struct SmartScopedWriter { struct
189 explicit SmartScopedWriter(SmartRWMutex<mt_only> &m) : mutex(m) { in SmartScopedWriter() argument
193 ~SmartScopedWriter() { mutex.unlock(); } in ~SmartScopedWriter() argument
196 typedef SmartScopedWriter<false> ScopedWriter;
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/mlir/lib/Support/
H A DTypeID.cpp65 llvm::sys::SmartScopedWriter<true> guard(mutex); in lookupOrInsert()
H A DStorageUniquer.cpp163 llvm::sys::SmartScopedWriter<true> typeLock(shard.mutex); in getOrCreate()
175 llvm::sys::SmartScopedWriter<true> lock(shard.mutex); in mutate()
H A DTiming.cpp99 llvm::sys::SmartScopedWriter<true> contextLock(impl.identifierMutex); in get()