Home
last modified time | relevance | path

Searched refs:thread_local (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dcxx11-thread-local.cpp19 thread_local int a = f();
20 extern thread_local int b;
24 static thread_local int d = g();
29 thread_local int U::m = f();
39 static thread_local U u;
123 static thread_local int n = g(); in f()
242 static thread_local S s; in tls_dtor()
250 static thread_local T t; in tls_dtor()
287 thread_local int n; in PR15991()
293 static thread_local int n;
[all …]
H A Dcxx2a-thread-local-constinit.cpp18 extern thread_local int a;
19 extern thread_local constinit int b;
41 extern thread_local int c;
58 thread_local int c = 0;
66 extern thread_local constinit struct DestructedFwdDecl e3;
73 thread_local int d = d_init();
80 extern thread_local constinit Destructed e;
89 thread_local constinit Destructed e2;
91 thread_local constinit int f = 4;
102 thread_local constinit NotDestructed nd;
H A Dstatic-initializer-branch-weights.cpp24 thread_local S thread_local_global;
32 thread_local inline S thread_local_inline_global;
36 static thread_local S thread_local_member;
52 static thread_local inline S thread_local_inline_member;
65 static thread_local S static_thread_local; in f()
76 thread_local S A::thread_local_member;
101 static thread_local S thread_local_member;
109 static thread_local inline S thread_local_inline_member;
112 template<typename T> thread_local S B<T>::thread_local_member;
H A Dno_destroy.cpp11 [[clang::no_destroy]] thread_local NonTrivial nt2;
20 thread_local NonTrivial2 nt22;
27 thread_local NonTrivial2 nt22; in f()
35 [[clang::no_destroy]] thread_local NonTrivial2 nt22; in g()
43 [[clang::always_destroy]] thread_local NonTrivial nt4;
70 [[clang::no_destroy]] thread_local NonTrivial3 tlarr[10]; in i()
H A Dms-thread_local.cpp17 thread_local A a = A();
26 thread_local A b;
38 thread_local A &c = b;
39 thread_local A &d = c;
52 thread_local int e = 2;
H A Dtls-init-funcs.cpp21 thread_local A a;
23 extern thread_local int ext;
27 thread_local int vt = 5;
32 thread_local int loc; in inl()
H A Dalways_destroy.cpp10 thread_local NonTrivial nt2;
19 [[clang::always_destroy]] thread_local NonTrivial2 nt22;
25 [[clang::always_destroy]] thread_local NonTrivial2 nt22; in f()
31 [[clang::no_destroy]] thread_local NonTrivial nt4;
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcxx11-thread-local.cpp4 static thread_local int a;
6 thread_local int c; // expected-error {{'thread_local' is only allowed on variable declarations}}
7 static thread_local int d; // expected-note {{here}}
10 thread_local int S::a;
12 thread_local int S::c; // expected-error {{non-static data member defined out-of-line}}
15 thread_local int x[3];
16 thread_local int y[3];
17 thread_local int z[3]; // expected-note {{previous}}
20 thread_local int x; in f()
21 static thread_local int y; in f()
[all …]
H A Dattr-require-constant-initialization.cpp130 ATTR static thread_local const int &tl_glvalue_init;
131 …ATTR static thread_local const int &tl_temp_init; // expected-note {{required by 'require_constant…
138 thread_local const int &TT1::tl_glvalue_init = glvalue_int;
139 thread_local const int &TT1::tl_temp_init = 42; // expected-error {{variable does not have a consta…
174 ATTR thread_local LitType tls = 42; in test_basic_start_static_2_2()
221 ATTR thread_local NonLit nl_ctor_tl = {};
233 ATTR thread_local NonLit nl_ctor_tl = {}; // expected-error {{variable does not have a constant ini…
256 ATTR thread_local int tl_local = 42; in test_basic_start_static_2_3()
H A Dno_destroy.cpp14 thread_local SecretDestructor sd2;
17 thread_local SecretDestructor sd4; in locals()
30 [[clang::always_destroy]] thread_local SecretDestructor sd7; // expected-error{{private}}
57 thread_local SecretDestructor arr3[10]; in local_arrays()
H A Dconstant-expression-cxx2b.cpp17thread_local const int m = n; // expected-note {{control flows through the definition of a thread_… in g()
40thread_local const int m = n; // expected-note {{control flows through the definition of a thread_… in i()
56thread_local const int m = n; // cxx2b-warning {{definition of a thread_local variable in a conste… in k()
76thread_local const int m = n; // expected-note {{control flows through the definition of a thread_… in k_evaluated()
92thread_local constexpr int m = 42; // expected-note {{control flows through the definition of … in thread_local_constexpr()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cert/
H A Dstatic-object-exception.cpp113 thread_local S s3;
116 thread_local T t3; // ok
117 thread_local U u3;
120 thread_local V v3("v");
123 thread_local W w3;
134 thread_local S s3; // ok in f()
166 thread_local S s3;
169 thread_local T t3; // ok
170 thread_local U u3;
173 thread_local V v3("v");
[all …]
/llvm-project-15.0.7/clang/test/OpenMP/
H A Dnvptx_prohibit_thread_local.cpp4 thread_local const int prohobit_ns_scope = 0;
5 thread_local int prohobit_ns_scope2 = 0;
6 thread_local const int allow_ns_scope = 0;
9 static const thread_local int prohibit_static_member;
10 static thread_local int prohibit_static_member2;
14 static const thread_local int allow_static_member;
19 thread_local const int prohibit_local = 0; in foo()
21 thread_local int prohibit_local2; in foo()
24 void bar() { thread_local int allow_local; } in bar()
/llvm-project-15.0.7/clang/test/SemaSYCL/
H A Dprohibit-thread-local.cpp3 thread_local const int prohobit_ns_scope = 0;
4 thread_local int prohobit_ns_scope2 = 0;
5 thread_local const int allow_ns_scope = 0;
8 static const thread_local int prohibit_static_member;
9 static thread_local int prohibit_static_member2;
13 static const thread_local int allow_static_member;
18 thread_local const int prohibit_local = 0; in foo()
20 thread_local int prohibit_local2; in foo()
23 void bar() { thread_local int allow_local; } in bar()
/llvm-project-15.0.7/llvm/test/Assembler/
H A Dtls-models.ll4 ; CHECK: @a = thread_local global i32 0
5 ; CHECK: @b = thread_local(localdynamic) global i32 0
6 ; CHECK: @c = thread_local(initialexec) global i32 0
7 ; CHECK: @d = thread_local(localexec) global i32 0
9 @a = thread_local global i32 0
10 @b = thread_local(localdynamic) global i32 0
11 @c = thread_local(initialexec) global i32 0
12 @d = thread_local(localexec) global i32 0
/llvm-project-15.0.7/clang/test/Modules/
H A Dinitializers.cpp69 thread_local int c = non_trivial();
70 inline thread_local int d = non_trivial();
74 template<typename U> thread_local int g = non_trivial();
75 template<typename U> inline thread_local int h = non_trivial();
82 static thread_local int c;
83 static inline thread_local int d = non_trivial();
87 template<typename U> static thread_local int g;
88 template<typename U> static inline thread_local int h = non_trivial();
94 template<typename T> thread_local int X<T>::c = non_trivial();
96 template<typename T> template<typename U> thread_local int X<T>::g = non_trivial();
/llvm-project-15.0.7/libcxxabi/test/
H A Dthread_local_destruction_order.pass.cpp35 thread_local OrderChecker checker{ID}; in ~CreatesThreadLocalInDestructor()
43 thread_local CreatesThreadLocalInDestructor<2> creates_tl2; in thread_fn()
44 thread_local OrderChecker fn_thread_local{1}; in thread_fn()
45 thread_local CreatesThreadLocalInDestructor<0> creates_tl0; in thread_fn()
54 thread_local OrderChecker fn_thread_local{4}; in main()
55 thread_local CreatesThreadLocalInDestructor<3> creates_tl; in main()
/llvm-project-15.0.7/lldb/test/API/lang/cpp/thread_local/
H A Dmain.cpp2 thread_local int tl_global_int = 123;
3 thread_local int *tl_global_ptr = &storage;
6 thread_local int tl_local_int = 321; in main()
7 thread_local int *tl_local_ptr = nullptr; in main()
/llvm-project-15.0.7/llvm/test/Linker/
H A Dalias-threadlocal.ll4 ; Verify that linking GlobalAliases preserves the thread_local attribute
6 ; CHECK: @tlsvar1 = thread_local global i32 0, align 4
7 ; CHECK: @tlsvar2 = hidden thread_local alias i32, ptr @tlsvar1
9 @tlsvar2 = external thread_local global i32, align 4
/llvm-project-15.0.7/llvm/test/Bitcode/
H A Dglobal-variables.3.2.ll32 @initialexec.var = thread_local(initialexec) global i32 0, align 4
33 ; CHECK: @initialexec.var = thread_local(initialexec) global i32 0, align 4
35 @localdynamic.var = thread_local(localdynamic) constant i32 0, align 4
36 ; CHECK: @localdynamic.var = thread_local(localdynamic) constant i32 0, align 4
38 @localexec.var = thread_local(localexec) constant i32 0, align 4
39 ; CHECK: @localexec.var = thread_local(localexec) constant i32 0, align 4
/llvm-project-15.0.7/llvm/test/CodeGen/Mips/
H A Dtls-models.ll4 @external_gd = external thread_local global i32
5 @internal_gd = internal thread_local global i32 42
7 @external_ld = external thread_local(localdynamic) global i32
8 @internal_ld = internal thread_local(localdynamic) global i32 42
10 @external_ie = external thread_local(initialexec) global i32
11 @internal_ie = internal thread_local(initialexec) global i32 42
13 @external_le = external thread_local(localexec) global i32
14 @internal_le = internal thread_local(localexec) global i32 42
/llvm-project-15.0.7/llvm/test/CodeGen/Hexagon/
H A Dtls_static.ll3 @dst_le = dso_local thread_local global i32 0, align 4
4 @src_le = dso_local thread_local global i32 0, align 4
16 @dst_ie = external thread_local global i32
17 @src_ie = external thread_local global i32
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Daix-tls-variables-ppc32.ll46 @tls_global_int_external_val_initialized = thread_local global i32 1, align 4
57 @tls_global_int_external_zero_initialized = thread_local global i32 0, align 4
81 @tls_global_int_local_val_initialized = internal thread_local global i32 2, align 4
89 @tls_global_int_local_zero_initialized = internal thread_local global i32 0, align 4
113 @tls_global_int_weak_zero_initialized = weak thread_local global i32 0, align 4
121 @tls_global_int_common_zero_initialized = common thread_local global i32 0, align 4
145 @tls_global_int_weak_val_initialized = weak thread_local global i32 1, align 4
153 @tls_global_int_external_uninitialized = external thread_local global i32, align 4
172 @tls_global_double_external_uninitialized = external thread_local global i64, align 8
235 @tls_global_long_long_weak_val_initialized = weak thread_local global i64 1, align 8
[all …]
/llvm-project-15.0.7/clang/test/PCH/
H A Dthread-local.cpp7 extern thread_local int a;
15 thread_local int b; // expected-error {{thread-local declaration of 'b' with dynamic initialization…
17 thread_local int c; // expected-error {{thread-local declaration of 'c' follows non-thread-local de…
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dtlv-2.ll3 @b = thread_local global i32 5, align 4
4 @a = thread_local global i32 0, align 4
5 @c = internal thread_local global i32 0, align 4
6 @d = internal thread_local global i32 5, align 4

12345678910>>...15