| /llvm-project-15.0.7/libcxx/test/libcxx/thread/ |
| H A D | semaphore.availability.verify.cpp | 23 std::counting_semaphore<20> sem(10); in main() local 24 sem.release(); // expected-error {{is unavailable}} in main() 25 sem.release(5); // expected-error {{is unavailable}} in main() 26 sem.acquire(); // expected-error {{is unavailable}} in main() 33 std::counting_semaphore<> sem(10); in main() local 34 sem.release(); // expected-error {{is unavailable}} in main() 35 sem.release(5); // expected-error {{is unavailable}} in main() 36 sem.acquire(); // expected-error {{is unavailable}} in main() 43 std::binary_semaphore sem(10); in main() local 44 sem.release(); // expected-error {{is unavailable}} in main() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/libdispatch/ |
| H A D | io.c | 11 dispatch_semaphore_t sem; variable 28 dispatch_semaphore_signal(sem); in test_dispatch_io_write() 33 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in test_dispatch_io_write() 49 dispatch_semaphore_signal(sem); in test_dispatch_write() 53 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in test_dispatch_write() 70 dispatch_semaphore_signal(sem); in test_dispatch_io_read() 75 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in test_dispatch_io_read() 90 dispatch_semaphore_signal(sem); in test_dispatch_read() 94 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in test_dispatch_read() 103 sem = dispatch_semaphore_create(0); in main()
|
| H A D | io-cleanup.c | 15 dispatch_semaphore_t sem = dispatch_semaphore_create(0); in main() local 23 dispatch_semaphore_signal(sem); in main() 28 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main() 33 dispatch_semaphore_signal(sem); in main() 38 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main() 44 dispatch_semaphore_signal(sem); in main() 50 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main()
|
| H A D | groups-leave.c | 8 dispatch_semaphore_t sem; variable 17 dispatch_semaphore_signal(sem); in callback() 26 sem = dispatch_semaphore_create(0); in main() 38 dispatch_semaphore_signal(sem); in main() 40 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main() 49 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main()
|
| H A D | fd.c | 14 dispatch_semaphore_t sem = dispatch_semaphore_create(0); in main() local 31 dispatch_semaphore_signal(sem); in main() 36 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main() 49 dispatch_semaphore_signal(sem); in main() 54 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main()
|
| H A D | io-barrier.c | 11 dispatch_semaphore_t sem; variable 20 sem = dispatch_semaphore_create(0); in main() 38 dispatch_semaphore_signal(sem); in main() 41 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main()
|
| H A D | io-barrier-race.c | 10 dispatch_semaphore_t sem; variable 21 sem = dispatch_semaphore_create(0); in main() 40 dispatch_semaphore_signal(sem); in main() 43 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main()
|
| H A D | io-race.c | 10 dispatch_semaphore_t sem; variable 21 sem = dispatch_semaphore_create(0); in main() 39 dispatch_semaphore_signal(sem); in main() 42 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main()
|
| H A D | semaphore-norace.c | 15 dispatch_semaphore_t sem = dispatch_semaphore_create(0); in main() local 19 dispatch_semaphore_signal(sem); in main() 22 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main()
|
| H A D | source-serial.c | 18 dispatch_semaphore_t sem = dispatch_semaphore_create(0); in main() local 24 dispatch_semaphore_signal(sem); in main() 30 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main()
|
| H A D | data.c | 15 dispatch_semaphore_t sem = dispatch_semaphore_create(0); in main() local 24 dispatch_semaphore_signal(sem); in main() 28 dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER); in main()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | Target.cpp | 101 if (sem == &llvm::APFloat::IEEEsingle()) { in complexReturnType() 105 } else if (sem == &llvm::APFloat::IEEEdouble()) { in complexReturnType() 134 if (sem == &llvm::APFloat::IEEEsingle()) { in complexArgumentType() 137 } else if (sem == &llvm::APFloat::IEEEdouble()) { in complexArgumentType() 141 } else if (sem == &llvm::APFloat::IEEEquad()) { in complexArgumentType() 158 if (sem == &llvm::APFloat::IEEEsingle()) { in complexReturnType() 167 } else if (sem == &llvm::APFloat::IEEEquad()) { in complexReturnType() 196 if (sem == &llvm::APFloat::IEEEsingle() || in complexArgumentType() 197 sem == &llvm::APFloat::IEEEdouble()) { in complexArgumentType() 210 if (sem == &llvm::APFloat::IEEEsingle() || in complexReturnType() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_mutex_test.cpp | 168 Semaphore *sem; member 174 data->sem->Wait(); in SemaphoreThread() 180 Semaphore sem; in TEST() local 181 sem.Post(1); in TEST() 182 sem.Wait(); in TEST() 183 sem.Post(3); in TEST() 184 sem.Wait(); in TEST() 185 sem.Wait(); in TEST() 186 sem.Wait(); in TEST() 188 SemaphoreData data = {&sem, false}; in TEST() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
| H A D | sem_init_glibc.cpp | 37 sem_t sem; in my_sem_init() local 38 memset(&sem, 0xAB, sizeof(sem)); in my_sem_init() 39 sem_init(&sem, priv, value); in my_sem_init() 41 char *p = (char *)&sem; in my_sem_init() 45 sem_destroy(&sem); in my_sem_init()
|
| /llvm-project-15.0.7/compiler-rt/test/msan/ |
| H A D | sem_getvalue.cpp | 8 sem_t sem; in main() local 9 int res = sem_init(&sem, 0, 42); in main() 13 res = sem_getvalue(&sem, &v); in main() 18 res = sem_destroy(&sem); in main()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | autoreleasewritechecker_test.m | 100 dispatch_semaphore_signal(sem); 103 dispatch_semaphore_wait(sem, 100); 113 dispatch_semaphore_signal(sem); 116 dispatch_semaphore_wait(sem, 100); 128 dispatch_semaphore_signal(sem); 131 dispatch_semaphore_wait(sem, 100); 141 dispatch_semaphore_signal(sem); 144 dispatch_semaphore_wait(sem, 100); 154 dispatch_semaphore_signal(sem); 165 dispatch_semaphore_wait(sem, 100); [all …]
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/postmortem/netbsd-core/ |
| H A D | 2lwp_process_SIGSEGV.c | 7 volatile int sem = 0; variable 11 sem = 1; in bar() 34 while (sem != 1) continue; in main()
|
| /llvm-project-15.0.7/clang/test/Rewriter/ |
| H A D | objc-synchronized-1.m | 8 void foo(id sem) 16 @synchronized ([sem self]) {
|
| H A D | rewrite-modern-synchronized.m | 15 void foo(id sem) 23 @synchronized ([sem self]) {
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | 2010-09-16-asmcrash.ll | 28 define void @_sem_timedwait(ptr noalias %sem) nounwind ssp { 33 %tmp4 = getelementptr inbounds %struct._sem, ptr %sem, i64 0, i32 1, i32 1
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Dialect/ |
| H A D | FIRAttr.cpp | 166 const llvm::fltSemantics &sem = kindMap.getFloatSemantics(kind); in parseFirRealAttr() local 167 unsigned int numBits = llvm::APFloat::semanticsSizeInBits(sem); in parseFirRealAttr() 169 value = llvm::APFloat(sem, bits); in parseFirRealAttr()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 604 (ins TYPE:$ty, ID:$ptr, ID:$sc, ID:$sem), 605 "$res = "#name#" $ty $ptr $sc $sem">; 608 (ins TYPE:$ty, ID:$ptr, ID:$sc, ID:$sem, ID:$val), 609 "$res = "#name#" $ty $ptr $sc $sem $val">; 614 "OpAtomicStore $ptr $sc $sem $val">; 616 (ins TYPE:$ty, ID:$ptr, ID:$sc, ID:$sem, ID:$val), 645 "OpAtomicFlagClear $ptr $sc $sem">; 657 "OpControlBarrier $exec $mem $sem">; 658 def OpMemoryBarrier: Op<225, (outs), (ins ID:$mem, ID:$sem), 659 "OpMemoryBarrier $mem $sem">; [all …]
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | Scalar.cpp | 42 Scalar::PromotionKey Scalar::GetFloatPromoKey(const llvm::fltSemantics &sem) { in GetFloatPromoKey() argument 47 if (entry.value() == &sem) in GetFloatPromoKey() 677 const llvm::fltSemantics &sem = in SetValueFromCString() local 681 APFloat f(sem); in SetValueFromCString()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | ConvertExpr.cpp | 7317 ConstituentSemantics sem) in ArrayExprLowering() argument 7319 stmtCtx{stmtCtx}, symMap{symMap}, semant{sem} {} 7324 ConstituentSemantics sem, in ArrayExprLowering() argument 7331 semant{sem} {
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 15701 const fltSemantics &sem = DAG.EVTToAPFloatSemantics(N0.getValueType()); in FoldIntToFPToInt() local 15705 if (APFloat::semanticsPrecision(sem) >= ActualSize) { in FoldIntToFPToInt()
|