Home
last modified time | relevance | path

Searched refs:Mu (Results 1 – 25 of 34) sorted by relevance

12

/llvm-project/compiler-rt/lib/gwp_asan/tests/
H A Dmutex_test.cpp21 Mutex Mu; in TEST() local
23 ASSERT_TRUE(Mu.tryLock()); in TEST()
24 ASSERT_FALSE(Mu.tryLock()); in TEST()
25 Mu.unlock(); in TEST()
27 Mu.lock(); in TEST()
28 Mu.unlock(); in TEST()
31 ASSERT_TRUE(Mu.tryLock()); in TEST()
32 Mu.unlock(); in TEST()
36 Mutex Mu; in TEST() local
37 { ScopedLock L(Mu); } in TEST()
[all …]
/llvm-project/clang-tools-extra/clangd/unittests/
H A DLSPClient.cpp40 std::unique_lock<std::mutex> Lock(Mu); in take()
62 std::lock_guard<std::mutex> Lock(Mu); in set()
86 std::lock_guard<std::mutex> Lock(Mu); in addCallSlot()
94 std::lock_guard<std::mutex> Lock(Mu); in enqueue()
102 std::lock_guard<std::mutex> Lock(Mu); in takeNotifications()
109 std::lock_guard<std::mutex> Lock(Mu); in expectCall()
116 std::lock_guard<std::mutex> Lock(Mu); in takeCallParams()
127 std::lock_guard<std::mutex> Lock(Mu); in reply()
140 std::lock_guard<std::mutex> Lock(Mu); in notify()
147 std::lock_guard<std::mutex> Lock(Mu); in call()
[all …]
H A DClangdLSPServerTests.cpp385 std::mutex Mu; in TEST_F()
389 std::unique_lock<std::mutex> Lock(Mu); in TEST_F()
408 std::unique_lock<std::mutex> Lock(Mu); in TEST_F()
414 std::lock_guard<std::mutex> Lock(Mu); in TEST_F()
429 std::lock_guard<std::mutex> Lock(Mu); in TEST_F()
444 std::lock_guard<std::mutex> Lock(Mu); in TEST_F()
451 std::lock_guard<std::mutex> Lock(Mu); in TEST_F()
367 std::mutex Mu; TEST_F() member in clang::clangd::__anond30aa7b20111::TEST_F::AsyncCounter
/llvm-project/clang-tools-extra/clangd/index/
H A DBackgroundQueue.cpp26 std::unique_lock<std::mutex> Lock(Mu); in work()
48 std::unique_lock<std::mutex> Lock(Mu); in work()
70 std::lock_guard<std::mutex> QueueLock(Mu); in stop()
91 std::lock_guard<std::mutex> Lock(Mu); in push()
104 std::lock_guard<std::mutex> Lock(Mu); in append()
118 std::lock_guard<std::mutex> Lock(Mu); in boost()
138 std::unique_lock<std::mutex> Lock(Mu); in blockUntilIdleForTest()
H A DBackgroundRebuild.cpp55 std::lock_guard<std::mutex> Lock(Mu); in startLoading()
61 std::lock_guard<std::mutex> Lock(Mu); in loadedShard()
77 std::lock_guard<std::mutex> Lock(Mu); in shutdown()
85 std::lock_guard<std::mutex> Lock(Mu); in maybeRebuild()
100 std::lock_guard<std::mutex> Lock(Mu); in maybeRebuild()
H A DProjectAware.cpp67 mutable std::mutex Mu;
78 std::lock_guard<std::mutex> Lock(Mu); in estimateMemoryUsage()
140 std::lock_guard<std::mutex> Lock(Mu);
63 mutable std::mutex Mu; global() member in clang::clangd::__anon94045d3c0111::ProjectAwareIndex
H A DBackgroundRebuild.h82 std::mutex Mu; variable
/llvm-project/compiler-rt/lib/gwp_asan/
H A Dmutex.h32 explicit ScopedLock(Mutex &Mx) : Mu(Mx) { Mu.lock(); } in ScopedLock()
33 ~ScopedLock() { Mu.unlock(); } in ~ScopedLock()
38 Mutex &Mu;
/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonPatternsV65.td14 IntRegs:$Rt, ModRegs:$Mu, RC:$Vv),
24 IntRegs:$Rt, ModRegs:$Mu, RC:$Vv),
34 IntRegs:$Rt, ModRegs:$Mu, RC:$Vv),
48 RC2:$Vq, IntRegs:$Rt, ModRegs:$Mu,
59 RC2:$Vq, IntRegs:$Rt, ModRegs:$Mu,
70 RC2:$Vq, IntRegs:$Rt, ModRegs:$Mu,
/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/
H A Dmutex_fuchsia.cpp14 void Mutex::lock() __TA_NO_THREAD_SAFETY_ANALYSIS { sync_mutex_lock(&Mu); } in lock()
17 return sync_mutex_trylock(&Mu) == ZX_OK; in tryLock()
20 void Mutex::unlock() __TA_NO_THREAD_SAFETY_ANALYSIS { sync_mutex_unlock(&Mu); } in unlock()
H A Dmutex_posix.cpp16 int Status = pthread_mutex_lock(&Mu); in lock()
22 bool Mutex::tryLock() { return pthread_mutex_trylock(&Mu) == 0; } in tryLock()
25 int Status = pthread_mutex_unlock(&Mu); in unlock()
H A Dmutex_fuchsia.h18 sync_mutex_t Mu = {};
H A Dmutex_posix.h18 pthread_mutex_t Mu = PTHREAD_MUTEX_INITIALIZER;
/llvm-project/clang-tools-extra/clangd/support/
H A DThreading.h102 mutable std::mutex Mu; variable
149 std::unique_ptr<std::mutex> Mu; variable
152 Memoize() : Mu(std::make_unique<std::mutex>()) {} in Memoize()
157 std::lock_guard<std::mutex> Lock(*Mu); in get()
165 std::lock_guard<std::mutex> Lock(*Mu); in get()
H A DTrace.cpp83 std::lock_guard<std::mutex> Lock(Mu); in jsonEvent()
170 std::lock_guard<std::mutex> Lock(Mu); in captureThreadMetadata()
189 std::mutex Mu; member in clang::clangd::trace::__anondc7550a90111::JSONTracer
215 std::lock_guard<std::mutex> Lock(Mu); in record()
251 std::mutex Mu; member in clang::clangd::trace::__anondc7550a90111::CSVMetricTracer
H A DLogger.cpp36 static std::mutex Mu; in logImpl() local
37 std::lock_guard<std::mutex> Guard(Mu); in logImpl()
H A DThreading.cpp30 std::lock_guard<std::mutex> Lock(Mu); in notify()
39 std::unique_lock<std::mutex> Lock(Mu); in wait()
H A DFileCache.h69 mutable std::mutex Mu; variable
/llvm-project/clang/test/AST/Interp/
H A Dspaceship.cpp
/llvm-project/clang/test/CXX/class/class.compare/class.spaceship/
H A Dp1.cpp168 enum Result { False, True, Mu }; enumerator
171 if (R == Mu) throw "should not ask this question"; in toBool()
186 …template<typename T> constexpr auto cmp(Result equal, Result less = Mu, Result reverse_less = Mu) { in cmp()
187 return Cmp<T>{equal, less} <=> Cmp<T>{Mu, reverse_less}; in cmp()
/llvm-project/clang/lib/Headers/
H A Dhvx_hexagon_protos.h3996 C Intrinsic Prototype: void Q6_vgather_ARMVh(HVX_Vector* Rs, Word32 Rt, Word32 Mu, HVX_Vector Vv)
4001 #define Q6_vgather_ARMVh(Rs,Rt,Mu,Vv) __BUILTIN_VECTOR_WRAP(__builtin_HEXAGON_V6_vgathermh)(Rs,Rt,Mu,Vv) argument
4007 C Intrinsic Prototype: void Q6_vgather_AQRMVh(HVX_Vector* Rs, HVX_VectorPred Qs, Word32 Rt, Word32 Mu, HVX_Vector Vv)
4012 #define Q6_vgather_AQRMVh(Rs,Qs,Rt,Mu,Vv) __BUILTIN_VECTOR_WRAP(__builtin_HEXAGON_V6_vgathermhq)(Rs,__BUILTIN_VECTOR_WRAP(__builtin_HEXAGON_V6_vandvrt)((Qs),-1),Rt,Mu,Vv) argument
4018 C Intrinsic Prototype: void Q6_vgather_ARMWw(HVX_Vector* Rs, Word32 Rt, Word32 Mu, HVX_VectorPair Vvv)
4023 #define Q6_vgather_ARMWw(Rs,Rt,Mu,Vvv) __BUILTIN_VECTOR_WRAP(__builtin_HEXAGON_V6_vgathermhw)(Rs,Rt,Mu,Vvv) argument
4029 C Intrinsic Prototype: void Q6_vgather_AQRMWw(HVX_Vector* Rs, HVX_VectorPred Qs, Word32 Rt, Word32 Mu, HVX_VectorPai
4034 Q6_vgather_AQRMWw(Rs,Qs,Rt,Mu,Vvv) global() argument
4045 Q6_vgather_ARMVw(Rs,Rt,Mu,Vv) global() argument
4056 Q6_vgather_AQRMVw(Rs,Qs,Rt,Mu,Vv) global() argument
4210 Q6_vscatter_RMVhV(Rt,Mu,Vv,Vw) global() argument
4221 Q6_vscatteracc_RMVhV(Rt,Mu,Vv,Vw) global() argument
4232 Q6_vscatter_QRMVhV(Qs,Rt,Mu,Vv,Vw) global() argument
4243 Q6_vscatter_RMWwV(Rt,Mu,Vvv,Vw) global() argument
4254 Q6_vscatteracc_RMWwV(Rt,Mu,Vvv,Vw) global() argument
4265 Q6_vscatter_QRMWwV(Qs,Rt,Mu,Vvv,Vw) global() argument
4276 Q6_vscatter_RMVwV(Rt,Mu,Vv,Vw) global() argument
4287 Q6_vscatteracc_RMVwV(Rt,Mu,Vv,Vw) global() argument
4298 Q6_vscatter_QRMVwV(Qs,Rt,Mu,Vv,Vw) global() argument
[all...]
/llvm-project/clang-tools-extra/clangd/unittests/support/
H A DTestTracer.cpp19 std::lock_guard<std::mutex> Lock(Mu); in record()
25 std::lock_guard<std::mutex> Lock(Mu); in takeMetric()
H A DTestTracer.h40 std::mutex Mu;
/llvm-project/clang-tools-extra/clangd/
H A DGlobalCompilationDatabase.cpp126 std::mutex Mu;
174 std::lock_guard<std::mutex> Lock(Mu); in get()
474 std::mutex Mu;
489 std::unique_lock<std::mutex> Lock(Mu); in run()
525 std::lock_guard<std::mutex> Lock(Mu); in enqueue()
536 std::unique_lock<std::mutex> Lock(Mu); in blockUntilIdle()
543 std::lock_guard<std::mutex> Lock(Mu); in ~BroadcastThread()
124 std::mutex Mu; global() member in clang::clangd::DirectoryBasedGlobalCompilationDatabase::DirectoryCache
472 std::mutex Mu; global() member in clang::clangd::DirectoryBasedGlobalCompilationDatabase::BroadcastThread
H A DConfigProvider.cpp91 mutable std::mutex Mu; in fromAncestorRelativeYAMLFiles() member in clang::clangd::config::Provider::fromAncestorRelativeYAMLFiles::RelFileProvider
113 std::lock_guard<std::mutex> Lock(Mu); in fromAncestorRelativeYAMLFiles()

12