Home
last modified time | relevance | path

Searched refs:SmartScopedReader (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DRWMutex.h167 using SmartScopedReader = const std::shared_lock<SmartRWMutex<mt_only>>; variable
169 template <bool mt_only> struct SmartScopedReader { struct
172 explicit SmartScopedReader(SmartRWMutex<mt_only> &m) : mutex(m) { in SmartScopedReader() function
176 ~SmartScopedReader() { mutex.unlock_shared(); } in ~SmartScopedReader() argument
179 typedef SmartScopedReader<false> ScopedReader;
/llvm-project-15.0.7/llvm/lib/IR/
H A DPassRegistry.cpp36 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo()
41 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo()
66 sys::SmartScopedReader<true> Guard(Lock); in enumerateWith()
/llvm-project-15.0.7/lldb/source/Utility/
H A DConstString.cpp83 llvm::sys::SmartScopedReader<false> rlock(m_string_pools[h].m_mutex); in GetMangledCounterpart()
106 llvm::sys::SmartScopedReader<false> rlock(m_string_pools[h].m_mutex); in GetConstCStringWithStringRef()
165 llvm::sys::SmartScopedReader<false> rlock(pool.m_mutex); in GetMemoryStats()
/llvm-project-15.0.7/mlir/lib/Support/
H A DTypeID.cpp60 llvm::sys::SmartScopedReader<true> guard(mutex); in lookupOrInsert()
H A DStorageUniquer.cpp155 llvm::sys::SmartScopedReader<true> typeLock(shard.mutex); in getOrCreate()
204 llvm::sys::SmartScopedReader<true> lock(shard->mutex); in getShardFor()
H A DTiming.cpp90 llvm::sys::SmartScopedReader<true> contextLock(impl.identifierMutex); in get()
/llvm-project-15.0.7/mlir/lib/IR/
H A DMLIRContext.cpp668 llvm::sys::SmartScopedReader<true> contextLock(ctxImpl.operationInfoMutex); in OperationName()