| /llvm-project-15.0.7/clang/test/OpenMP/ |
| H A D | begin_declare_variant_messages.c | 15 #pragma omp end declare variant 26 #pragma omp end declare variant 28 #pragma omp end declare variant 30 #pragma omp end declare variant 32 #pragma omp end declare variant 34 #pragma omp end declare variant 36 #pragma omp end declare variant 38 #pragma omp end declare variant 40 #pragma omp end declare variant 42 #pragma omp end declare variant [all …]
|
| H A D | declare_variant_messages.cpp | 13 #pragma omp declare variant // expected-error {{expected '(' after 'declare variant'}} 20 #pragma omp declare variant(foofoo <int>) match // expected-error {{expected '(' after 'match'}} 54 #pragma omp declare variant // expected-error {{expected '(' after 'declare variant'}} 62 #pragma omp declare variant(foofoo <T>) match // expected-error {{expected '(' after 'match'}} 103 #pragma omp declare variant(foo) match(implementation = {vendor(score(foo) :llvm)}) 104 #pragma omp declare variant(foo) match(implementation = {vendor(score(foo()) :llvm)}) 106 #pragma omp declare variant(foo) match(user = {condition(foo)}) 107 #pragma omp declare variant(foo) match(user = {condition(foo())}) 123 #pragma omp declare variant(foo) match(user = {condition(constexpr_fn(1))}) 128 #pragma omp declare variant(foo) match(user = {condition(constexpr_fn(1))}) [all …]
|
| H A D | declare_variant_messages.c | 59 #pragma omp declare variant(foo) match(construct={teams,parallel,for,simd}) 116 #pragma omp declare variant (self) \ 177 #pragma omp declare variant(foo) match(device = {isa("foo")}) 179 #pragma omp declare variant(foo) match(device = {isa(foo)}) 181 #pragma omp declare variant(foo) match(device = {kind(fpga), isa(bar)}) 192 #pragma omp end declare variant 195 #pragma omp begin declare variant match(device={isa(sse2020), arch(ppc)}) 196 #pragma omp end declare variant 208 #pragma omp end declare variant 211 #pragma omp begin declare variant match(user = {condition(1)}) [all …]
|
| H A D | declare_variant_ast_print.cpp | 26 #pragma omp declare variant(foofoo <int>) match(xxx = {}) 27 #pragma omp declare variant(foofoo <int>) match(xxx = {vvv}) 41 #pragma omp declare variant(foofoo <T>) match(xxx = {}) 42 #pragma omp declare variant(foofoo <T>) match(xxx = {vvv}) 80 #pragma omp declare variant(h_ref <C>) match(xxx = {}) 95 #pragma omp declare variant(h_ref <double>) match(xxx = {}) 110 #pragma omp declare variant(fn) match(xxx = {}) 122 #pragma omp declare variant(fn_deduced_variant) match(xxx = {}) 165 #pragma omp declare variant(SpecialFuncs::baz) match(xxx = {}) 166 #pragma omp declare variant(SpecialFuncs::bar) match(xxx = {}) [all …]
|
| H A D | declare_variant_clauses_messages.cpp | 12 #pragma omp declare variant(foo_v1) append_args(interop(target)) \ 108 #pragma omp declare variant(foo_v1) \ 113 #pragma omp declare variant(foo_v1) \ 118 #pragma omp declare variant(foo_v1) \ 123 #pragma omp declare variant(foo_v3) \ 128 #pragma omp declare variant(foo_v3) \ 132 #pragma omp declare variant(foo_v3) \ 136 #pragma omp declare variant(foo_v1) 139 #pragma omp declare variant(foo_v1) other 151 #pragma omp declare variant(foo_v4) \ [all …]
|
| H A D | declare_variant_ast_print.c | 9 #pragma omp declare variant(foo) match(construct={target}) 10 #pragma omp declare variant(foo) match(construct={teams}) 11 #pragma omp declare variant(foo) match(construct={parallel}) 12 #pragma omp declare variant(foo) match(construct={for}) 13 #pragma omp declare variant(foo) match(construct={simd}) 15 #pragma omp declare variant(foo) match(xxx={}, yyy={ccc}) 16 #pragma omp declare variant(foo) match(xxx={vvv}) 18 #pragma omp declare variant(foo) match(implementation={vendor(llvm), xxx}) 21 #pragma omp declare variant(foo) match(device={kind(host)}) 22 #pragma omp declare variant(foo) match(device={kind(nohost), xxx}) [all …]
|
| H A D | declare_variant_mixed_codegen.cpp | 38 #pragma omp declare variant(foo) match(implementation = {vendor(llvm)}, device={kind(cpu)}) 42 #pragma omp declare variant(bazzz) match(implementation = {vendor(llvm)}, device={kind(host)}) 46 #pragma omp declare variant(test) match(implementation = {vendor(llvm)}, device={kind(cpu)}) 51 #pragma omp declare variant(stat_unused_) match(implementation = {vendor(llvm)}, device={kind(cpu)}) 56 #pragma omp declare variant(stat_used_) match(implementation = {vendor(llvm)}, device={kind(host)}) 71 #pragma omp declare variant(SpecialFuncs::method_) \ 74 #pragma omp declare variant(SpecialFuncs::method_) \ 87 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 90 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 114 #pragma omp declare variant(prio4) match(implementation = {vendor(score(5): llvm)}) [all …]
|
| H A D | declare_variant_implementation_vendor_codegen.cpp | 27 #pragma omp declare variant(foo) match(implementation = {vendor(llvm)}) 31 #pragma omp declare variant(bazzz) match(implementation = {vendor(llvm)}) 35 #pragma omp declare variant(test) match(implementation = {vendor(llvm)}) 39 #pragma omp declare variant(stat_unused_) match(implementation = {vendor(llvm)}) 43 #pragma omp declare variant(stat_used_) match(implementation = {vendor(llvm)}) 58 #pragma omp declare variant(SpecialFuncs::method_) \ 61 #pragma omp declare variant(SpecialFuncs::method_) \ 74 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 77 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 93 #pragma omp declare variant(prio) match(implementation = {vendor(llvm)}) [all …]
|
| H A D | declare_variant_device_kind_codegen.cpp | 122 #pragma omp declare variant(foo) match(device = {kind(CORRECT)}) 126 #pragma omp declare variant(bazzz) match(device = {kind(CORRECT)}) 130 #pragma omp declare variant(test) match(device = {kind(CORRECT)}) 153 #pragma omp declare variant(SpecialFuncs::method_) \ 156 #pragma omp declare variant(SpecialFuncs::method_) \ 169 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 172 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 188 #pragma omp declare variant(prio) match(device = {kind(SUBSET)}) 189 #pragma omp declare variant(prio1) match(device = {kind(CORRECT)}) 196 #pragma omp declare variant(prio4) match(device = {kind(SUBSET)}) [all …]
|
| H A D | nvptx_declare_variant_implementation_vendor_codegen.cpp | 35 #pragma omp declare variant(foo) match(implementation = {vendor(llvm)}) 38 #pragma omp declare variant(bazzz) match(implementation = {vendor(llvm)}) 41 #pragma omp declare variant(test) match(implementation = {vendor(llvm)}) 72 #pragma omp declare variant(SpecialFuncs::method_) \ 75 #pragma omp declare variant(SpecialFuncs::method_) \ 88 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 91 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 117 #pragma omp declare variant(prio) match(implementation = {vendor(llvm)}) 118 #pragma omp declare variant(prio1) match(implementation = {vendor(score(1) \ 122 #pragma omp declare variant(prio4) match(implementation = {vendor(score(3) \ [all …]
|
| H A D | nvptx_declare_variant_device_kind_codegen.cpp | 59 #pragma omp declare variant(foo) match(device = {kind(CORRECT)}) 62 #pragma omp declare variant(bazzz) match(device = {kind(CORRECT)}) 65 #pragma omp declare variant(test) match(device = {kind(CORRECT)}) 95 #pragma omp declare variant(SpecialFuncs::method_) \ 98 #pragma omp declare variant(SpecialFuncs::method_) \ 111 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 114 #pragma omp declare variant(SpecSpecialFuncs::method_) \ 140 #pragma omp declare variant(prio) match(device = {kind(SUBSET)}) 141 #pragma omp declare variant(prio1) match(device = {kind(CORRECT)}) 144 #pragma omp declare variant(prio4) match(device = {kind(SUBSET)}) [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/ |
| H A D | copy.pass.cpp | 106 using V = std::variant<int, long>; in test_copy_ctor_sfinae() 110 using V = std::variant<int, NoCopy>; in test_copy_ctor_sfinae() 125 using V = std::variant<int, long>; in test_copy_ctor_sfinae() 134 using V = std::variant<int, TCopy>; in test_copy_ctor_sfinae() 147 std::variant<int> v2 = v; in test_copy_ctor_basic() 153 std::variant<int, long> v2 = v; in test_copy_ctor_basic() 160 std::variant<NonT> v2(v); in test_copy_ctor_basic() 167 std::variant<int, NonT> v2(v); in test_copy_ctor_basic() 177 constexpr std::variant<int> v2 = v; in test_copy_ctor_basic() 266 std::variant<int, double> v1(3); in main() [all …]
|
| H A D | move.pass.cpp | 108 using V = std::variant<int, long>; in test_move_noexcept() 112 using V = std::variant<int, MoveOnly>; in test_move_noexcept() 116 using V = std::variant<int, MoveOnlyNT>; in test_move_noexcept() 127 using V = std::variant<int, long>; in test_move_ctor_sfinae() 131 using V = std::variant<int, MoveOnly>; in test_move_ctor_sfinae() 139 using V = std::variant<int, NoCopy>; in test_move_ctor_sfinae() 146 using V = std::variant<int, long>; in test_move_ctor_sfinae() 150 using V = std::variant<int, NTMove>; in test_move_ctor_sfinae() 155 using V = std::variant<int, TMove>; in test_move_ctor_sfinae() 171 std::variant<int> v2 = std::move(v); in test_move_ctor_basic() [all …]
|
| H A D | T.pass.cpp | 48 using V = std::variant<Dummy, NoThrowT>; in test_T_ctor_noexcept() 52 using V = std::variant<Dummy, ThrowsT>; in test_T_ctor_noexcept() 59 using V = std::variant<long, long long>; in test_T_ctor_sfinae() 67 using V = std::variant<std::string, void *>; in test_T_ctor_sfinae() 72 using V = std::variant<std::string, float>; in test_T_ctor_sfinae() 93 using V = std::variant<X>; in test_T_ctor_sfinae() 110 using V = std::variant<int, int &&>; in test_T_ctor_sfinae() 114 using V = std::variant<int, const int &>; in test_T_ctor_sfinae() 122 constexpr std::variant<int> v(42); in test_T_ctor_basic() 127 constexpr std::variant<int, long> v(42l); in test_T_ctor_basic() [all …]
|
| H A D | conv.pass.cpp | 25 static_assert(!std::is_constructible<std::variant<int, int>, int>::value, ""); in main() 26 static_assert(!std::is_constructible<std::variant<long, long long>, int>::value, ""); in main() 27 …static_assert(std::is_constructible<std::variant<char>, int>::value == VariantAllowsNarrowingConve… in main() 29 …static_assert(std::is_constructible<std::variant<std::string, float>, int>::value == VariantAllows… in main() 31 static_assert(!std::is_constructible<std::variant<std::string, bool>, int>::value, ""); in main() 33 static_assert(!std::is_constructible<std::variant<int, bool>, decltype("meow")>::value, ""); in main() 34 static_assert(!std::is_constructible<std::variant<int, const bool>, decltype("meow")>::value, ""); in main() 35 …static_assert(!std::is_constructible<std::variant<int, const volatile bool>, decltype("meow")>::va… in main() 37 static_assert(!std::is_constructible<std::variant<bool>, std::true_type>::value, ""); in main() 38 static_assert(!std::is_constructible<std::variant<bool>, std::unique_ptr<char> >::value, ""); in main() [all …]
|
| H A D | default.pass.cpp | 43 using V = std::variant<std::monostate, int>; in test_default_ctor_sfinae() 47 using V = std::variant<NonDefaultConstructible, int>; in test_default_ctor_sfinae() 52 using V = std::variant<int &, int>; in test_default_ctor_sfinae() 60 using V = std::variant<int>; in test_default_ctor_noexcept() 64 using V = std::variant<NotNoexcept>; in test_default_ctor_noexcept() 71 using V = std::variant<DefaultCtorThrows, int>; in test_default_ctor_throws() 85 std::variant<int> v; in test_default_ctor_basic() 90 std::variant<int, long> v; in test_default_ctor_basic() 95 std::variant<int, NonDefaultConstructible> v; in test_default_ctor_basic() 100 using V = std::variant<int, long>; in test_default_ctor_basic() [all …]
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | ast-dump-openmp-declare-variant-extensions.c | 19 #pragma omp declare variant(picked1) match(implementation={extension(match_any)}, device={kind(cpu,… 22 #pragma omp declare variant(picked2) match(implementation={extension(match_none)}, device={kind(gpu… 49 #pragma omp declare variant(not_picked6) match(implementation={extension(match_any)}) 52 #pragma omp declare variant(picked6) match(implementation={extension(match_all)}) 55 #pragma omp declare variant(picked7) match(implementation={extension(match_none)}) 58 #pragma omp begin declare variant match(implementation={extension(match_any)}, device={kind(cpu, gp… 60 #pragma omp end declare variant 63 #pragma omp begin declare variant match(implementation={extension(match_none)}, device={kind(fpga, … 65 #pragma omp end declare variant 67 #pragma omp begin declare variant match(implementation={extension(match_none)}, device={kind(cpu)}) [all …]
|
| H A D | ast-dump-openmp-begin-declare-variant_nested.c | 9 #pragma omp begin declare variant match(user = {condition(1)}, device = {kind(cpu)}, implementation… 11 #pragma omp begin declare variant match(device = {kind(any)}, implementation = {dynamic_allocators}) 18 #pragma omp end declare variant 19 #pragma omp end declare variant 20 #pragma omp end declare variant 31 #pragma omp begin declare variant match(device = {isa("sse")}) 32 #pragma omp declare variant(test) match(device = {isa(sse)}) 34 #pragma omp end declare variant 36 #pragma omp begin declare variant match(device = {isa("sse")}) 37 #pragma omp declare variant(test) match(device = {isa("sse2")}) [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.assign/ |
| H A D | conv.pass.cpp | 26 static_assert(!std::is_assignable<std::variant<int, int>, int>::value, ""); in main() 27 static_assert(!std::is_assignable<std::variant<long, long long>, int>::value, ""); in main() 28 …static_assert(std::is_assignable<std::variant<char>, int>::value == VariantAllowsNarrowingConversi… in main() 30 …static_assert(std::is_assignable<std::variant<std::string, float>, int>::value == VariantAllowsNar… in main() 32 static_assert(!std::is_assignable<std::variant<std::string, bool>, int>::value, ""); in main() 34 static_assert(!std::is_assignable<std::variant<int, bool>, decltype("meow")>::value, ""); in main() 35 static_assert(!std::is_assignable<std::variant<int, const bool>, decltype("meow")>::value, ""); in main() 36 …static_assert(!std::is_assignable<std::variant<int, const volatile bool>, decltype("meow")>::value… in main() 38 static_assert(!std::is_assignable<std::variant<bool>, std::true_type>::value, ""); in main() 39 static_assert(!std::is_assignable<std::variant<bool>, std::unique_ptr<char> >::value, ""); in main() [all …]
|
| H A D | T.pass.cpp | 111 using V = std::variant<Dummy, NoThrowT>; in test_T_assignment_noexcept() 126 using V = std::variant<long, long long>; in test_T_assignment_sfinae() 159 using V = std::variant<X>; in test_T_assignment_sfinae() 165 using V = std::variant<int, int &&>; in test_T_assignment_sfinae() 169 using V = std::variant<int, const int &>; in test_T_assignment_sfinae() 177 std::variant<int> v(43); in test_T_assignment_basic() 183 std::variant<int, long> v(43l); in test_T_assignment_basic() 193 std::variant<unsigned, long> v; in test_T_assignment_basic() 203 std::variant<std::string, bool> v = true; in test_T_assignment_basic() 263 using V = std::variant<ThrowsCtorT>; in test_T_assignment_performs_assignment() [all …]
|
| H A D | move.pass.cpp | 144 using V = std::variant<int>; in test_move_assignment_noexcept() 148 using V = std::variant<MoveOnly>; in test_move_assignment_noexcept() 152 using V = std::variant<int, long>; in test_move_assignment_noexcept() 160 using V = std::variant<MoveOnlyNT>; in test_move_assignment_noexcept() 171 using V = std::variant<int, long>; in test_move_assignment_sfinae() 200 using V = std::variant<int, long>; in test_move_assignment_sfinae() 248 using V = std::variant<int, MET>; in test_move_assignment_non_empty_empty() 274 using V = std::variant<int, MET>; in test_move_assignment_empty_non_empty() 300 using V = std::variant<int>; in test_move_assignment_same_index() 351 using V = std::variant<int>; in test_move_assignment_same_index() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.visit/ |
| H A D | visit_return_type.pass.cpp | 44 using V = std::variant<int>; in test_call_operator_forwarding() 113 using V = std::variant<int>; in test_argument_forwarding() 127 using V = std::variant<int &>; in test_argument_forwarding() 193 using V = std::variant<int>; in test_return_type() 240 using V = std::variant<int>; in test_constexpr_void() 283 using V = std::variant<int>; in test_constexpr_int() 396 std::variant<A> v; in test_caller_accepts_nonconst() 402 std::variant<int> v = 101; in test_constexpr_explicit_side_effect() 435 using std::variant<int, long, double>::variant; in test_derived_from_variant() 461 using std::variant<int, long, double>::variant; in test_derived_from_variant() [all …]
|
| H A D | visit.pass.cpp | 43 using V = std::variant<int>; in test_call_operator_forwarding() 111 using V = std::variant<int>; in test_argument_forwarding() 125 using V = std::variant<int &>; in test_argument_forwarding() 190 using V = std::variant<int>; in test_return_type() 237 using V = std::variant<int>; in test_constexpr() 247 using V1 = std::variant<int>; in test_constexpr() 256 using V1 = std::variant<int>; in test_constexpr() 343 std::variant<A> v; in test_caller_accepts_nonconst() 374 using std::variant<int, long, double>::variant; in test_derived_from_variant() 390 using std::variant<int, long, double>::variant; in test_derived_from_variant() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.get/ |
| H A D | get_index.pass.cpp | 69 using V = std::variant<int &>; in test_const_lvalue_get() 76 using V = std::variant<int &&>; in test_const_lvalue_get() 83 using V = std::variant<const int &&>; in test_const_lvalue_get() 109 using V = std::variant<int &>; in test_lvalue_get() 116 using V = std::variant<const int &>; in test_lvalue_get() 123 using V = std::variant<int &&>; in test_lvalue_get() 156 using V = std::variant<int &>; in test_rvalue_get() 170 using V = std::variant<int &&>; in test_rvalue_get() 205 using V = std::variant<int &>; in test_const_rvalue_get() 219 using V = std::variant<int &&>; in test_const_rvalue_get() [all …]
|
| H A D | get_type.pass.cpp | 63 using V = std::variant<int &>; in test_const_lvalue_get() 70 using V = std::variant<int &&>; in test_const_lvalue_get() 77 using V = std::variant<const int &&>; in test_const_lvalue_get() 103 using V = std::variant<int &>; in test_lvalue_get() 110 using V = std::variant<const int &>; in test_lvalue_get() 117 using V = std::variant<int &&>; in test_lvalue_get() 151 using V = std::variant<int &>; in test_rvalue_get() 166 using V = std::variant<int &&>; in test_rvalue_get() 203 using V = std::variant<int &>; in test_const_rvalue_get() 218 using V = std::variant<int &&>; in test_const_rvalue_get() [all …]
|