Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 160) sorted by relevance

1234567

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dspuriously-wake-up-functions.c22 struct timespec ts; variable
101 if (0 != cnd_timedwait(&condition_c, &lock, &ts)) in consume_list_element()
115 if (0 != cnd_timedwait(&condition_c, &lock, &ts)) in consume_list_element()
118 cnd_timedwait(&condition_c, &lock, &ts); in consume_list_element()
122 cnd_timedwait(&condition_c, &lock, &ts); in consume_list_element()
125 cnd_timedwait(&condition_c, &lock, &ts); in consume_list_element()
128 cnd_timedwait(&condition_c, &lock, &ts); in consume_list_element()
143 cnd_timedwait(&condition_c, &lock, &ts); in consume_list_element()
146 cnd_timedwait(&condition_c, &lock, &ts); in consume_list_element()
159 cnd_timedwait(&condition_c, &lock, &ts); in consume_list_element()
[all …]
/llvm-project-15.0.7/llvm/bindings/go/llvm/
H A Dstring.go54 ts := typeStringer{s: make(map[Type]string)}
55 return ts.typeString(t)
62 func (ts *typeStringer) typeString(t Type) string {
63 if s, ok := ts.s[t]; ok {
80 s += fmt.Sprintf("%v", ts.typeString(params[0]))
82 s += fmt.Sprintf(", %v", ts.typeString(params[i]))
85 s += fmt.Sprintf("):%v", ts.typeString(t.ReturnType()))
88 ts.s[t] = "%" + name
94 s += ts.typeString(etypes[0])
96 s += fmt.Sprintf(", %v", ts.typeString(etypes[i]))
[all …]
/llvm-project-15.0.7/llvm/utils/lit/lit/
H A Ddiscovery.py44 ts, relative = search(parent)
45 return (ts, relative + (base,))
91 ts, relative = search(item)
92 return ts, tuple(relative + tuple(components))
98 parent = ts.config
119 key = (ts, path_in_suite)
131 if ts is None:
139 return ts, getTestsInSuite(ts, path_in_suite, litConfig,
154 test = Test.Test(ts, path_in_suite, lc)
217 file_execpath = ts.getExecPath(subpath)
[all …]
/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A DDNBTimer.h93 static void OffsetTimeOfDay(struct timespec *ts,
96 if (ts == NULL)
102 TIMEVAL_TO_TIMESPEC(&now, ts);
106 ts->tv_nsec += nsec_offset;
108 ts->tv_sec = ts->tv_sec + ts->tv_nsec / 1000000000 + sec_offset;
110 ts->tv_nsec = ts->tv_nsec % 1000000000;
113 static bool TimeOfDayLaterThan(struct timespec &ts) { in TimeOfDayLaterThan() argument
116 if (now.tv_sec > ts.tv_sec) in TimeOfDayLaterThan()
118 else if (now.tv_sec < ts.tv_sec) in TimeOfDayLaterThan()
121 if (now.tv_nsec > ts.tv_nsec) in TimeOfDayLaterThan()
/llvm-project-15.0.7/compiler-rt/test/msan/Linux/
H A Dpoll.cpp16 struct timespec ts; in main() local
17 ts.tv_sec = 0; in main()
18 ts.tv_nsec = 1000; in main()
19 int res = ppoll(nullptr, 0, &ts, nullptr); in main()
23 __msan_poison(&ts.tv_sec, sizeof(ts.tv_sec)); in main()
24 ppoll(nullptr, 0, &ts, nullptr); in main()
35 ppoll(nullptr, 0, &ts, &sig); in main()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dfind-unexpanded-packs.cpp81 Ts ts; in PackInsideVarDeclaration() local
82 (void)ts; in PackInsideVarDeclaration()
91 Ts ts; in PackInsideVarDeclarationInvalid() local
92 (void)ts; in PackInsideVarDeclarationInvalid()
99 Ts ts(Ts); in PackInsideFunctionDeclaration() local
100 ts({}); in PackInsideFunctionDeclaration()
109 Ts ts(Ts); in PackInsideFunctionDeclarationInvalid() local
110 ts({}); in PackInsideFunctionDeclarationInvalid()
118 Ts ts; in PackInsideLocalClass() member in PackInsideLocalClass::__anon80cae35d0d02::Local
130 Ts ts; in PackInsideLocalClassInvalid() member in PackInsideLocalClassInvalid::__anon80cae35d0e02::Local
/llvm-project-15.0.7/libcxx/src/
H A Dcondition_variable.cpp62 __libcpp_timespec_t ts; in __do_timed_wait() local
64 typedef decltype(ts.tv_sec) ts_sec; in __do_timed_wait()
68 ts.tv_sec = static_cast<ts_sec>(s.count()); in __do_timed_wait()
69 ts.tv_nsec = static_cast<decltype(ts.tv_nsec)>((d - s).count()); in __do_timed_wait()
73 ts.tv_sec = ts_sec_max; in __do_timed_wait()
74 ts.tv_nsec = giga::num - 1; in __do_timed_wait()
76 int ec = __libcpp_condvar_timedwait(&__cv_, lk.mutex()->native_handle(), &ts); in __do_timed_wait()
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dgetcpuclockid.c12 struct timespec ts; in cpu_ns() local
15 res = clock_gettime(clk, &ts); in cpu_ns()
17 return ts.tv_nsec; in cpu_ns()
22 struct timespec ts; in th_cpu_ns() local
25 res = clock_gettime(clk, &ts); in th_cpu_ns()
27 return ts.tv_nsec; in th_cpu_ns()
/llvm-project-15.0.7/compiler-rt/test/tsan/Linux/
H A Dthread_timedjoin.c25 struct timespec ts; in main() local
26 clock_gettime(CLOCK_REALTIME, &ts); in main()
27 check(pthread_timedjoin_np(t, 0, &ts), ETIMEDOUT); in main()
29 clock_gettime(CLOCK_REALTIME, &ts); in main()
30 ts.tv_sec += 10000; in main()
31 check(pthread_timedjoin_np(t, 0, &ts), 0); in main()
H A Dclockwait_double_lock.c24 struct timespec ts; in main() local
25 clock_gettime(CLOCK_MONOTONIC, &ts); in main()
26 ts.tv_sec += 10; in main()
27 pthread_cond_clockwait(&cv, &mtx, CLOCK_MONOTONIC, &ts); in main()
/llvm-project-15.0.7/openmp/runtime/test/
H A Domp_my_sleep.h25 struct timespec ts; in my_sleep() local
26 ts.tv_sec = (time_t)sleeptime; in my_sleep()
27 ts.tv_nsec = (long)((sleeptime - (double)ts.tv_sec) * 1E9); in my_sleep()
28 nanosleep(&ts, NULL); in my_sleep()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dlambda-expressions.cpp195 template<typename...Ts> bool f(Ts &&...ts) { in f() argument
196 return g<Ts...>([&ts] { in f()
197 if (!ts) in f()
199 --ts; in f()
232 template<typename...Ts> void nested(Ts ...ts) { in nested() argument
237 return ts + [&] { return f(ts...); } (); in nested()
243 template<typename...Ts> void nested2(Ts ...ts) { // expected-note 2{{here}} in nested2() argument
245 f([&ts...] { return ts; } ()...); in nested2()
247 f([&ts] { return ts; } ()...); in nested2()
249 f([&ts...] { return (int)f(ts...); } ()); in nested2()
[all …]
H A Dcxx1y-generic-lambdas.cpp535 L(L, ts...); in fooV()
606 L(L, ts...); in fooV()
631 auto M = L(L, ts...); in fooV()
632 decltype(L(L, ts...)) (*fp)(decltype(L), decltype(ts) ...) = L; in fooV()
633 void (*fp2)(decltype(L), decltype(ts) ...) = L(L, ts...); in fooV()
652 auto M = L(L, ts...); in fooV()
653 decltype(L(L, ts...)) (*fp)(decltype(L), decltype(ts) ...) = L; in fooV()
654 fp(L, ts...); in fooV()
655 decltype(L(L, ts...)(L, ts...)) (*fp2)(decltype(L), decltype(ts) ...) = L(L, ts...); in fooV()
656 fp2 = fp(L, ts...); in fooV()
[all …]
H A Dmodules-ts.cppm1 // RUN: %clang_cc1 -std=c++1z -fmodules-ts -emit-module-interface %s -o %t.0.pcm -verify -DTEST…
2 // RUN: %clang_cc1 -std=c++1z -fmodules-ts -emit-module-interface %s -o %t.1.pcm -verify -DTEST…
3 // RUN: %clang_cc1 -std=c++1z -fmodules-ts -emit-module-interface %s -fmodule-file=%t.0.pcm -o …
4 // RUN: %clang_cc1 -std=c++1z -fmodules-ts -emit-module-interface %s -fmodule-file=%t.0.pcm -o …
13 // expected-note@modules-ts.cppm:* {{loaded from}}
21 // expected-note-re@modules-ts.cppm:1 {{'{{.*}}modules-ts.cppm' included multiple times, additional…
28 // expected-note-re@modules-ts.cppm:1 {{'{{.*}}modules-ts.cppm' included multiple times, additional…
H A Dwarn-large-by-value-copy.cpp43 void tf(TS<size> ts) {} // expected-warning {{ts' is a large (300 bytes) pass-by-value argument}} in tf() argument
46 TS<300> ts; in g() local
47 tf<300>(ts); // expected-note {{instantiation}} in g()
/llvm-project-15.0.7/flang/include/flang/Optimizer/Support/
H A DMatcher.h25 template<typename... Ts> auto match(Ts... ts) { in match()
26 return std::visit(matches{ts...}, static_cast<N*>(this)->matchee()); in match()
28 template<typename... Ts> auto match(Ts... ts) const { in match()
29 return std::visit(matches{ts...}, static_cast<N const*>(this)->matchee()); in match()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/
H A Dlast_write_time.pass.cpp129 ts.tv_sec = secs.count(); in ConvertToTimeSpec()
130 ts.tv_nsec = nsecs.count(); in ConvertToTimeSpec()
146 bool CompareTimeExact(TimeSpec ts, TimeSpec ts2) { in CompareTimeExact() argument
147 return ts2.tv_sec == ts.tv_sec && ts2.tv_nsec == ts.tv_nsec; in CompareTimeExact()
153 return CompareTimeExact(ts, ts2); in CompareTimeExact()
156 return CompareTimeExact(ft, ts); in CompareTimeExact()
291 TimeSpec ts = {}; in __anonc8913b790702() local
292 if (!ConvertToTimeSpec(ts, file_time_type::min())) in __anonc8913b790702()
295 if (!ConvertFromTimeSpec(min_val, ts)) in __anonc8913b790702()
354 TimeSpec ts = {}; in TimeIsRepresentableByFilesystem() local
[all …]
/llvm-project-15.0.7/mlir/test/Integration/Dialect/SparseTensor/CPU/
H A Dsparse_constant_to_sparse_tensor.mlir26 %ts = sparse_tensor.convert %ti : tensor<10x8xf64> to tensor<10x8xf64, #Tensor1>
29 %i0 = sparse_tensor.indices %ts, %c0 : tensor<10x8xf64, #Tensor1> to memref<?xindex>
34 %i1 = sparse_tensor.indices %ts, %c1 : tensor<10x8xf64, #Tensor1> to memref<?xindex>
39 %v = sparse_tensor.values %ts : tensor<10x8xf64, #Tensor1> to memref<?xf64>
44 bufferization.dealloc_tensor %ts : tensor<10x8xf64, #Tensor1>
/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A Dp8.cpp13 template<typename T> static constexpr T ts();
25 int (*ts)() = &S::ts; in f() local
35 template<typename T> constexpr T S::ts() { return T(); } in ts() function in S
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dtimers.cc99 double MakeTime(struct timespec const& ts) { in MakeTime() argument
100 return ts.tv_sec + (static_cast<double>(ts.tv_nsec) * 1e-9); in MakeTime()
176 struct timespec ts; in ThreadCPUUsage()
177 if (clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) == 0) return MakeTime(ts); in ThreadCPUUsage()
H A Dbenchmark_name.cc46 std::string join(char delimiter, const Ts&... ts) { in join() argument
48 s.reserve(sizeof...(Ts) + size_impl(ts...)); in join()
49 join_impl(s, delimiter, ts...); in join()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/
H A Dlit.local.cfg2 # this directory as unsupported. Otherwise add the required `-fcoroutines-ts`
4 if 'fcoroutines-ts' not in config.available_features:
7 config.test_format.addCompileFlags(config, '-fcoroutines-ts')
/llvm-project-15.0.7/lldb/unittests/SymbolFile/DWARF/
H A DDWARFASTParserClangTests.cpp279 TypeSystemClang ts; member
282 : ts("dummy ASTContext", HostInfoBase::GetTargetTriple()), parser(ts) {} in ExtractIntFromFormValueTest()
293 parser.ExtractIntFromFormValue(ts.GetType(qt), form_value); in Extract()
307 parser.ExtractIntFromFormValue(ts.GetType(qt), form_value); in ExtractS()
318 clang::ASTContext &ast = ts.getASTContext(); in TEST_F()
329 clang::ASTContext &ast = ts.getASTContext(); in TEST_F()
377 clang::ASTContext &ast = ts.getASTContext(); in TEST_F()
/llvm-project-15.0.7/lld/test/ELF/linkerscript/
H A Dmemory-nonalloc.test3 RUN: split-file %s %ts
4 RUN: llvm-mc -filetype=obj -triple=x86_64 %ts/s -o %t.o
10 RUN: ld.lld %t.o -T %ts/t --fatal-warnings -o /dev/null
15 RUN: ld.lld %t.o -T %ts/t2 -o /dev/null 2>&1 | FileCheck %s --check-prefix=WARN
/llvm-project-15.0.7/llvm/test/Transforms/ArgumentPromotion/
H A D2008-09-07-CGUpdate.ll4 define internal fastcc i32 @hash(i32* %ts, i32 %mod) nounwind {
9 define void @encode(i32* %m, i32* %ts, i32* %new) nounwind {
11 %0 = call fastcc i32 @hash( i32* %ts, i32 0 ) nounwind ; <i32> [#uses=0]

1234567