/llvm-project/libc/test/src/pthread/ |
H A D | pthread_condattr_test.cpp | 32 clockid_t clock = 7; in TEST() local 37 ASSERT_EQ(LIBC_NAMESPACE::pthread_condattr_getclock(&cond, &clock), 0); in TEST() 38 ASSERT_EQ(clock, CLOCK_REALTIME); in TEST() 48 clockid_t clock = 7; in TEST() local 55 ASSERT_EQ(LIBC_NAMESPACE::pthread_condattr_getclock(&cond, &clock), 0); in TEST() 56 ASSERT_EQ(clock, CLOCK_MONOTONIC); in TEST() 69 clockid_t clock = 7; in TEST() local 74 ASSERT_EQ(LIBC_NAMESPACE::pthread_condattr_setclock(&cond, clock), EINVAL); in TEST() 75 ASSERT_EQ(LIBC_NAMESPACE::pthread_condattr_getclock(&cond, &clock), 0); in TEST() 76 ASSERT_EQ(clock, CLOCK_REALTIME); in TEST()
|
/llvm-project/libc/src/pthread/ |
H A D | pthread_condattr_setclock.cpp | 22 (pthread_condattr_t * attr, clockid_t clock)) { 24 if (clock != CLOCK_MONOTONIC && clock != CLOCK_REALTIME) 27 attr->clock = clock;
|
/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl_mutex.cpp | 193 thr->clock.Acquire(s->clock); in MutexPostLock() 194 thr->clock.Acquire(s->read_clock); in MutexPostLock() 242 thr->clock.ReleaseStore(&s->clock); in MutexUnlock() 303 thr->clock.Acquire(s->clock); in MutexPostReadLock() 345 thr->clock.Release(&s->read_clock); in MutexReadUnlock() 384 thr->clock.Release(&s->read_clock); in MutexReadOrWriteUnlock() 394 thr->clock.ReleaseStore(&s->clock); in MutexReadOrWriteUnlock() 450 if (!s->clock) in Acquire() 452 thr->clock.Acquire(s->clock); in Acquire() 460 for (auto &slot : ctx->slots) thr->clock.Set(slot.sid, slot.epoch()); in AcquireGlobal() [all …]
|
H A D | tsan_interface_atomic.cpp | 237 thr->clock.ReleaseAcquire(&s->clock); in AtomicLoad() 239 thr->clock.Release(&s->clock); in AtomicLoad() 241 thr->clock.Acquire(s->clock); in AtomicLoad() 279 thr->clock.Acquire(s->clock); in AtomicStore() 281 // of the value and the clock we acquire. in AtomicStore() 311 // so must reset the clock [all...] |
H A D | tsan_sync.cpp | 40 Free(clock); in Reset() 177 if (s->clock) { in ResetClocks() 178 InternalFree(s->clock, &cache); in ResetClocks() 179 s->clock = nullptr; in ResetClocks()
|
H A D | tsan_rtl_thread.cpp | 125 thr->clock.ReleaseStore(&arg.sync); in ThreadCreate() 158 thr->clock.Acquire(thr->tctx->sync); in ThreadStart() 235 thr->clock.ReleaseStore(&thr->tctx->sync); in ThreadFinish() 303 thr->clock.Acquire(arg.sync); in ThreadJoin()
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | TUScheduler.h | 75 using clock = std::chrono::steady_clock; member 78 clock::duration Min = /*zero*/ {}; 80 clock::duration Max = /*zero*/ {}; 86 clock::duration compute(llvm::ArrayRef<clock::duration> History) const; 88 static DebouncePolicy fixed(clock::duration);
|
/llvm-project/libc/src/time/gpu/ |
H A D | CMakeLists.txt | 2 clock 4 clock.cpp 6 ../clock.h
|
/llvm-project/libcxx/modules/std/ |
H A D | chrono.inc | 80 // [time.clock.system], class system_clock 90 // [time.clock.utc], class utc_clock 101 // [time.clock.tai], class tai_clock 107 // [time.clock.gps], class gps_clock 116 // [time.clock.file], type file_clock 122 // [time.clock.steady], class steady_clock 126 // [time.clock.hires], class high_resolution_clock 129 // [time.clock.local], local time 135 // [time.clock.cast], time_point conversions
|
/llvm-project/polly/lib/External/isl/imath/ |
H A D | imtimer.c | 172 start = clock(); in get_multiply_time() 174 end = clock(); in get_multiply_time() 189 start = clock(); in get_exptmod_time() 192 end = clock(); in get_exptmod_time()
|
/llvm-project/libc/benchmarks/gpu/ |
H A D | CMakeLists.txt | 14 if(NOT libc.src.time.clock IN_LIST TARGET_LLVMLIBC_ENTRYPOINTS) 15 message(FATAL_ERROR "target does not support clock") 65 libc.src.time.clock
|
H A D | LibcGpuBenchmark.cpp | 189 const clock_t start = static_cast<double>(clock()); 197 const clock_t end = clock();
|
/llvm-project/libc/src/time/linux/ |
H A D | CMakeLists.txt | 15 clock 17 clock.cpp 19 ../clock.h
|
/llvm-project/libc/test/src/time/ |
H A D | clock_test.cpp | 1 //===-- Unittests for clock -----------------------------------------------===// 10 #include "src/time/clock.h" 14 clock_t c1 = LIBC_NAMESPACE::clock(); in TEST() 17 clock_t c2 = LIBC_NAMESPACE::clock(); in TEST()
|
/llvm-project/llvm/test/CodeGen/NVPTX/ |
H A D | intrinsics.ll | 112 ; reading clock() or clock64() should not be CSE'd as each read may return 116 ; CHECK: mov.u32 %r{{.*}}, %clock; 117 %a = tail call i32 @llvm.nvvm.read.ptx.sreg.clock() 118 ; CHECK: mov.u32 %r{{.*}}, %clock; 119 %b = tail call i32 @llvm.nvvm.read.ptx.sreg.clock() 187 declare i32 @llvm.nvvm.read.ptx.sreg.clock()
|
/llvm-project/libcxx/include/__chrono/ |
H A D | convert_to_tm.h | 128 if constexpr (same_as<typename _ChronoT::clock, chrono::system_clock>) in __convert_to_tm() 132 else if constexpr (same_as<typename _ChronoT::clock, chrono::utc_clock>) in __convert_to_tm() 136 else if constexpr (same_as<typename _ChronoT::clock, chrono::file_clock>) in __convert_to_tm() 137 return std::__convert_to_tm<_Tm>(_ChronoT::clock::to_sys(__value)); in __convert_to_tm() 138 else if constexpr (same_as<typename _ChronoT::clock, chrono::local_t>) in __convert_to_tm() 141 static_assert(sizeof(_ChronoT) == 0, "TODO: Add the missing clock specialization"); in __convert_to_tm()
|
/llvm-project/libc/test/UnitTest/ |
H A D | LibcTest.cpp | 26 #include "src/time/clock.h" in clock() function 27 extern "C" clock_t clock() noexcept { return LIBC_NAMESPACE::clock(); } 161 [[maybe_unused]] const uint64_t start_time = clock(); in runTests() 167 [[maybe_unused]] const uint64_t end_time = clock(); in runTests()
|
/llvm-project/libcxx/docs/Status/ |
H A D | Cxx20.rst |
|
/llvm-project/libc/src/time/ |
H A D | CMakeLists.txt | 158 clock 161 .${LIBC_TARGET_OS}.clock
|
/llvm-project/llvm/test/CodeGen/PowerPC/ |
H A D | 2012-11-16-mischedcall.ll | 9 declare void @clock() nounwind 17 tail call void @clock() nounwind
|
H A D | s000-alias-misched.ll | 25 %call1 = tail call i64 @clock() nounwind 77 %call11 = tail call i64 @clock() nounwind 86 declare i64 @clock() nounwind
|
/llvm-project/lldb/examples/summaries/cocoa/ |
H A D | metrics.py | 26 self.enter_time = time.clock() 29 self.exit_time = time.clock()
|
/llvm-project/libcxx/include/ |
H A D | ctime | 33 clock_t clock(); 74 using ::clock _LIBCPP_USING_IF_EXISTS;
|
/llvm-project/polly/lib/External/isl/imath/examples/ |
H A D | pi.c | 77 start = clock(); in main() 99 end = clock(); in main()
|
/llvm-project/libc/include/llvm-libc-types/ |
H A D | pthread_condattr_t.h | 14 clockid_t clock; member
|