| /llvm-project-15.0.7/clang/test/Analysis/Inputs/ |
| H A D | system-header-simulator-for-pthread-lock.h | 8 } pthread_mutex_t; typedef 22 typedef pthread_mutex_t lck_mtx_t; 25 extern void fake_system_function_that_takes_a_mutex(pthread_mutex_t *mtx); 27 extern int pthread_mutex_lock(pthread_mutex_t *); 28 extern int pthread_mutex_unlock(pthread_mutex_t *); 29 extern int pthread_mutex_trylock(pthread_mutex_t *); 30 extern int pthread_mutex_destroy(pthread_mutex_t *); 31 extern int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr);
|
| /llvm-project-15.0.7/polly/test/CodeGen/ |
| H A D | PHIInExit.ll | 7 %union.pthread_mutex_t = type { %struct..0__pthread_mutex_s } 15 … = weak alias i32 (%union.pthread_mutex_t*), i32 (%union.pthread_mutex_t*)* @pthread_mutex_lock ; … 16 …= weak alias i32 (%union.pthread_mutex_t*), i32 (%union.pthread_mutex_t*)* @pthread_mutex_trylock … 17 …= weak alias i32 (%union.pthread_mutex_t*), i32 (%union.pthread_mutex_t*)* @pthread_mutex_unlock ;… 18 …pthread_mutex_t*, %union.pthread_mutexattr_t*), i32 (%union.pthread_mutex_t*, %union.pthread_mutex… 69 define i32 @pthread_mutex_lock(%union.pthread_mutex_t*) { 73 define i32 @pthread_mutex_trylock(%union.pthread_mutex_t*) { 77 define i32 @pthread_mutex_unlock(%union.pthread_mutex_t*) { 81 define i32 @pthread_mutex_init(%union.pthread_mutex_t*, %union.pthread_mutexattr_t*) {
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Generic/ |
| H A D | 2009-03-17-LSR-APInt.ll | 31 %struct.pthread_mutex_t = type { %struct..0__pthread_mutex_s } 41 … weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ;… 42 …eak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock … 43 …weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock … 44 …ruct.pthread_mutex_t*, %struct.Alignment*), i32 (%struct.pthread_mutex_t*, %struct.Alignment*)* @p… 89 define i32 @pthread_mutex_lock(%struct.pthread_mutex_t*) addrspace(0) { 93 define i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*) addrspace(0) { 97 define i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*) addrspace(0) { 101 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.Alignment*) addrspace(0) {
|
| /llvm-project-15.0.7/clang/test/Modules/ |
| H A D | merge-name-for-linkage.cpp | 4 typedef union {} pthread_mutex_t; typedef 5 typedef pthread_mutex_t pthread_mutex_t; typedef 7 pthread_mutex_t x; 9 pthread_mutex_t y;
|
| H A D | merge-anon-in-extern_c.cpp | 10 typedef union { bool b; } pthread_mutex_t; typedef 15 typedef union { bool b; } pthread_mutex_t; typedef 18 const pthread_mutex_t *m;
|
| /llvm-project-15.0.7/llvm/test/Transforms/NewGVN/ |
| H A D | 2009-03-10-PREOnVoid.ll | 12 …%struct.pthread_mutex_t = type { i32, i32, %struct._pthread_descr_struct*, i32, %llvm.dbg.anchor.t… 25 … weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ;… 26 …eak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock … 27 …weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock … 28 ….pthread_mutex_t*, %struct.__sched_param*), i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)… 76 define i32 @pthread_mutex_lock(%struct.pthread_mutex_t*) { 80 define i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*) { 84 define i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*) { 88 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.__sched_param*) {
|
| /llvm-project-15.0.7/llvm/test/Transforms/GVN/ |
| H A D | 2009-03-10-PREOnVoid.ll | 12 …%struct.pthread_mutex_t = type { i32, i32, %struct._pthread_descr_struct*, i32, %llvm.dbg.anchor.t… 25 … weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_lock ;… 26 …eak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_trylock … 27 …weak alias i32 (%struct.pthread_mutex_t*), i32 (%struct.pthread_mutex_t*)* @pthread_mutex_unlock … 28 ….pthread_mutex_t*, %struct.__sched_param*), i32 (%struct.pthread_mutex_t*, %struct.__sched_param*)… 76 define i32 @pthread_mutex_lock(%struct.pthread_mutex_t*) { 80 define i32 @pthread_mutex_trylock(%struct.pthread_mutex_t*) { 84 define i32 @pthread_mutex_unlock(%struct.pthread_mutex_t*) { 88 define i32 @pthread_mutex_init(%struct.pthread_mutex_t*, %struct.__sched_param*) {
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/tests/rtl/ |
| H A D | tsan_posix_util.h | 53 pthread_mutex_t *mutex, const pthread_mutexattr_t *attr); 54 extern "C" int __interceptor_pthread_mutex_lock(pthread_mutex_t *mutex); 55 extern "C" int __interceptor_pthread_mutex_unlock(pthread_mutex_t *mutex); 56 extern "C" int __interceptor_pthread_mutex_destroy(pthread_mutex_t *mutex); 57 extern "C" int __interceptor_pthread_mutex_trylock(pthread_mutex_t *mutex); 73 pthread_mutex_t *mutex);
|
| H A D | tsan_posix.cpp | 20 pthread_mutex_t *mtx; 23 thread_key(pthread_key_t key, pthread_mutex_t *mtx, int val, int *cnt) in thread_key() 57 pthread_mutex_t mtx; in TEST() 105 pthread_mutex_t m;
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | PThreadMutex.h | 38 Locker(pthread_mutex_t *mutex, const char *function, const char *file, 49 Locker(pthread_mutex_t *mutex) : m_pMutex(mutex) { Lock(); } 66 void Reset(pthread_mutex_t *pMutex = NULL) { 71 pthread_mutex_t *m_pMutex; 109 pthread_mutex_t *Mutex() { return &m_mutex; } in Mutex() 116 pthread_mutex_t m_mutex;
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/ |
| H A D | non-copyable-objects.c | 5 typedef int pthread_mutex_t; typedef 10 void h(pthread_mutex_t m); 34 pthread_mutex_t m; // ok in func() 40 pthread_mutex_t *m1 = &m; // ok in func()
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/ |
| H A D | mutex_lock_destroyed.cpp | 13 pthread_mutex_t *m = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t)); in main()
|
| H A D | race_on_mutex2.c | 5 pthread_mutex_lock((pthread_mutex_t*)x); in Thread() 6 pthread_mutex_unlock((pthread_mutex_t*)x); in Thread() 13 pthread_mutex_t Mtx; in main()
|
| H A D | suppressions_mutex.cpp | 4 void __attribute__((noinline)) suppress_this(pthread_mutex_t *mu) { in suppress_this() 9 pthread_mutex_t mu; in main()
|
| H A D | bench_local_mutex.cpp | 9 pthread_mutex_t *mtx; 20 mtx = (pthread_mutex_t*)malloc(bench_nthread * kStride * sizeof(*mtx)); in bench()
|
| H A D | mutexset8.cpp | 5 pthread_mutex_t *mtx; 30 mtx = new pthread_mutex_t; in main()
|
| H A D | mutexset7.cpp | 15 pthread_mutex_t *mtx = new pthread_mutex_t; in Thread2()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
| H A D | pthread_mutex.cpp | 13 extern "C" int __pthread_mutex_lock(pthread_mutex_t *__mutex); 14 extern "C" int __pthread_mutex_unlock(pthread_mutex_t *__mutex); 22 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | pthreadlock.c | 7 pthread_mutex_t mtx1, mtx2; 8 pthread_mutex_t *pmtx; 224 void escape_mutex(pthread_mutex_t *m); 226 pthread_mutex_t local_mtx; in ok30() 236 pthread_mutex_t local_mtx; in ok31() 329 bad11_sub(pthread_mutex_t *lock) in bad11_sub() 517 void nocrash1(pthread_mutex_t *mutex) { in nocrash1()
|
| H A D | std-c-library-functions-POSIX.c | 290 } pthread_mutex_t; typedef 294 int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr); 295 int pthread_mutex_destroy(pthread_mutex_t *mutex); 296 int pthread_mutex_lock(pthread_mutex_t *mutex); 297 int pthread_mutex_trylock(pthread_mutex_t *mutex); 298 int pthread_mutex_unlock(pthread_mutex_t *mutex);
|
| /llvm-project-15.0.7/libc/test/integration/src/pthread/ |
| H A D | pthread_mutex_test.cpp | 24 pthread_mutex_t mutex; 73 pthread_mutex_t start_lock, step_lock; 133 static pthread_mutex_t multiple_waiter_lock; 134 static pthread_mutex_t counter_lock;
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/symbolizer/ |
| H A D | sanitizer_wrappers.cpp | 170 int(pthread_cond_t *, pthread_mutex_t *)) 171 LLVM_SYMBOLIZER_INTERCEPTOR1(pthread_mutex_lock, int(pthread_mutex_t *)) 172 LLVM_SYMBOLIZER_INTERCEPTOR1(pthread_mutex_unlock, int(pthread_mutex_t *)) 173 LLVM_SYMBOLIZER_INTERCEPTOR1(pthread_mutex_destroy, int(pthread_mutex_t *)) 175 int(pthread_mutex_t *,
|
| /llvm-project-15.0.7/libc/src/pthread/ |
| H A D | pthread_mutex_init.cpp | 20 static_assert(sizeof(Mutex) <= sizeof(pthread_mutex_t), 25 (pthread_mutex_t * m,
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/dd/ |
| H A D | dd_interceptors.cpp | 43 INTERCEPTOR(int, pthread_mutex_destroy, pthread_mutex_t *m) { in INTERCEPTOR() 49 INTERCEPTOR(int, pthread_mutex_lock, pthread_mutex_t *m) { in INTERCEPTOR() 57 INTERCEPTOR(int, pthread_mutex_trylock, pthread_mutex_t *m) { in INTERCEPTOR() 65 INTERCEPTOR(int, pthread_mutex_unlock, pthread_mutex_t *m) { in INTERCEPTOR() 183 INTERCEPTOR(int, pthread_cond_wait, pthread_cond_t *c, pthread_mutex_t *m) { in INTERCEPTOR() 193 INTERCEPTOR(int, pthread_cond_timedwait, pthread_cond_t *c, pthread_mutex_t *m, in INTERCEPTOR()
|
| /llvm-project-15.0.7/compiler-rt/lib/safestack/ |
| H A D | safestack_util.h | 38 explicit MutexLock(pthread_mutex_t &mutex) : mutex_(&mutex) { in MutexLock() 44 pthread_mutex_t *mutex_ = nullptr;
|