Home
last modified time | relevance | path

Searched refs:clock (Results 1 – 25 of 105) sorted by relevance

12345

/llvm-project/libc/test/src/pthread/
H A Dpthread_condattr_test.cpp32 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 Dpthread_condattr_setclock.cpp22 (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 Dtsan_rtl_mutex.cpp193 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 Dtsan_interface_atomic.cpp237 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 Dtsan_sync.cpp40 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 Dtsan_rtl_thread.cpp125 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 DTUScheduler.h75 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 DCMakeLists.txt2 clock
4 clock.cpp
6 ../clock.h
/llvm-project/libcxx/modules/std/
H A Dchrono.inc80 // [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 Dimtimer.c172 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 DCMakeLists.txt14 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 DLibcGpuBenchmark.cpp189 const clock_t start = static_cast<double>(clock());
197 const clock_t end = clock();
/llvm-project/libc/src/time/linux/
H A DCMakeLists.txt15 clock
17 clock.cpp
19 ../clock.h
/llvm-project/libc/test/src/time/
H A Dclock_test.cpp1 //===-- 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 Dintrinsics.ll112 ; 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 Dconvert_to_tm.h128 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 DLibcTest.cpp26 #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 DCxx20.rst
/llvm-project/libc/src/time/
H A DCMakeLists.txt158 clock
161 .${LIBC_TARGET_OS}.clock
/llvm-project/llvm/test/CodeGen/PowerPC/
H A D2012-11-16-mischedcall.ll9 declare void @clock() nounwind
17 tail call void @clock() nounwind
H A Ds000-alias-misched.ll25 %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 Dmetrics.py26 self.enter_time = time.clock()
29 self.exit_time = time.clock()
/llvm-project/libcxx/include/
H A Dctime33 clock_t clock();
74 using ::clock _LIBCPP_USING_IF_EXISTS;
/llvm-project/polly/lib/External/isl/imath/examples/
H A Dpi.c77 start = clock(); in main()
99 end = clock(); in main()
/llvm-project/libc/include/llvm-libc-types/
H A Dpthread_condattr_t.h14 clockid_t clock; member

12345