Home
last modified time | relevance | path

Searched full:variant (Results 1 – 25 of 1611) sorted by relevance

12345678910>>...65

/llvm-project/clang/test/OpenMP/
H A Dbegin_declare_variant_messages.c11 …gma omp end declare variant // expected-error {{'#pragma omp end declare variant' with no matching…
13 …gma omp end declare variant // expected-error {{'#pragma omp end declare variant' with no matching…
14 #pragma omp begin variant // expected-error {{expected an OpenMP directive}}
15 …gma omp end declare variant // expected-error {{'#pragma omp end declare variant' with no matching…
16 #pragma omp variant begin // expected-error {{expected an OpenMP directive}}
17 #pragma omp declare variant end // expected-error {{function declaration is expected after 'declare…
18variant // omp50-error {{expected 'match' clause on 'omp declare variant' directive}} omp51-error …
19 #pragma omp end declare variant
21 …gma omp end declare variant // expected-error {{'#pragma omp end declare variant' with no matching…
22 …gma omp end declare variant // expected-error {{'#pragma omp end declare variant' with no matching…
[all …]
H A Ddeclare_variant_messages.c11 #pragma omp declare variant // expected-error {{expected '(' after 'declare variant'}}
12 #pragma omp declare variant( // expected-error {{expected expression}} expected-error {{expected ')…
13variant(foo // expected-error {{expected ')'}} omp50-error {{expected 'match' clause on 'omp decla…
14variant(x) // expected-error {{use of undeclared identifier 'x'}} omp50-error {{expected 'match' c…
15variant(foo) // omp50-error {{expected 'match' clause on 'omp declare variant' directive}} omp51-e…
16variant(foo) // omp50-error {{expected 'match' clause on 'omp declare variant' directive}} omp51-e…
17variant(foo) xxx // omp50-error {{expected 'match' clause on 'omp declare variant' directive}} omp…
18 #pragma omp declare variant(foo) match // expected-error {{expected '(' after 'match'}}
19 #pragma omp declare variant(foo) match( // expected-error {{expected ')'}} expected-warning {{expec…
20 #pragma omp declare variant(foo) match() // expected-warning {{expected identifier or string litera…
[all …]
H A Ddeclare_variant_messages.cpp16 #pragma omp declare variant // expected-error {{expected '(' after 'declare variant'}}
17 #pragma omp declare variant( // expected-error {{expected expression}} expected-error {{expected ')…
18variant(foo // expected-error {{expected ')'}} omp50-error {{expected 'match' clause on 'omp decla…
19variant(x) // expected-error {{use of undeclared identifier 'x'}} omp50-error {{expected 'match' c…
20variant(foo) // omp50-error {{expected 'match' clause on 'omp declare variant' directive}} omp51-e…
21variant(foofoo <int>) // omp50-error {{expected 'match' clause on 'omp declare variant' directive}…
22variant(foofoo <int>) xxx // omp50-error {{expected 'match' clause on 'omp declare variant' direct…
23 #pragma omp declare variant(foofoo <int>) match // expected-error {{expected '(' after 'match'}}
24 #pragma omp declare variant(foofoo <int>) match( // expected-error {{expected ')'}} expected-warnin…
25 #pragma omp declare variant(foofoo <int>) match() // expected-warning {{expected identifier or stri…
[all …]
H A Ddeclare_variant_clauses_messages.cpp12 #pragma omp declare variant(foo_v1) append_args(interop(target)) \
27 …// expected-error@+1 {{variant in '#pragma omp declare variant' with type 'void (A::*)(float *, fl…
28 #pragma omp declare variant(memberfoo_v0) match(construct={dispatch}) \
31 …// expected-error@+1 {{variant in '#pragma omp declare variant' with type 'void (A::*)(float *, fl…
32 #pragma omp declare variant(memberfoo_v1) match(construct={dispatch}) \
39 …// expected-error@+1 {{variant in '#pragma omp declare variant' with type 'void (float *, float *,…
40 #pragma omp declare variant(smemberfoo_v0) match(construct={dispatch}) \
43 …// expected-error@+1 {{variant in '#pragma omp declare variant' with type 'void (float *, float *,…
44 #pragma omp declare variant(smemberfoo_v1) match(construct={dispatch}) \
51 …// expected-error@+1 {{variant in '#pragma omp declare variant' with type 'void (A::*)(float *, fl…
[all …]
H A Ddeclare_variant_ast_print.cpp20 // CHECK: #pragma omp declare variant(foofoo<int>) match(construct={target})
21 // CHECK-NEXT: #pragma omp declare variant(foofoo<int>) match(construct={simd})
22 // CHECK-NEXT: #pragma omp declare variant(foofoo<int>) match(implementation={vendor(score(5): ibm)…
23 // CHECK-NEXT: #pragma omp declare variant(foofoo<int>) match(implementation={vendor(unknown)})
24 // CHECK-NEXT: #pragma omp declare variant(foofoo<int>) match(implementation={vendor(score(0): llvm…
26 #pragma omp declare variant(foofoo <int>) match(xxx = {})
27 #pragma omp declare variant(foofoo <int>) match(xxx = {vvv})
28 #pragma omp declare variant(foofoo <int>) match(implementation = {vendor(score(0): "llvm"), xxx}, d…
29 #pragma omp declare variant(foofoo <int>) match(implementation = {vendor("unknown")})
30 #pragma omp declare variant(foofoo <int>) match(implementation = {vendor(score(5): ibm)}, device = …
[all …]
H A Ddeclare_variant_ast_print.c9 #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})
14 #pragma omp declare variant(foo) match(construct={target,teams,parallel,for,simd})
15 #pragma omp declare variant(foo) match(xxx={}, yyy={ccc})
16 #pragma omp declare variant(foo) match(xxx={vvv})
17 #pragma omp declare variant(foo) match(implementation={vendor(score(0):llvm)}, device={kind(fpga)})
18 #pragma omp declare variant(foo) match(implementation={vendor(llvm), xxx})
[all …]
/llvm-project/llvm/test/MC/AMDGPU/
H A Dgfx11_unsupported_sdwa.s5 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported
8 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported
11 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported
14 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported
17 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported
20 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported
23 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported
26 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported
29 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported
32 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant o
[all...]
H A Dgfx10_unsupported_e64_dpp.s6 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant of this instruction is not supported
9 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant of this instruction is not supported
12 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant of this instruction is not supported
15 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant of this instruction is not supported
18 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant of this instruction is not supported
21 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant of this instruction is not supported
24 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant of this instruction is not supported
27 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant of this instruction is not supported
30 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant of this instruction is not supported
33 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: e64_dpp variant o
[all...]
H A Dgfx10_unsupported_dpp.s6 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
9 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
12 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
15 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
18 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
21 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
24 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
27 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
30 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
33 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant o
[all...]
H A Dgfx11_unsupported_dpp.s5 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
8 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
11 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
14 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
17 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
20 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
23 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
26 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
29 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant of this instruction is not supported
32 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: dpp variant o
[all...]
/llvm-project/clang/test/Analysis/
H A Dstd-variant-checker.cpp14 void changeVariantType(std::variant<int, char> &v) { in changeVariantType()
18 void changesToInt(std::variant<int, char> &v);
19 void changesToInt(std::variant<int, char> *v);
21 void cannotChangePtr(const std::variant<int, char> &v);
22 void cannotChangePtr(const std::variant<int, char> *v);
26 void swap(std::variant<int, char> &v1, std::variant<int, char> &v2) { in swap()
27 std::variant<int, char> tmp = v1; in swap()
32 void cantDo(const std::variant<int, char>& v) { in cantDo()
33 std::variant<int, char> vtmp = v; in cantDo()
39 void changeVariantPtr(std::variant<int, char> *v) { in changeVariantPtr()
[all …]
/llvm-project/clang/docs/DataFlowAnalysisIntroImages/
H A DCFGJoinRule.svg84variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
98variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
114variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
123variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
129variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
131variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
135variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
139variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
152variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
153variant:normal;font-weight:normal;font-stretch:normal;font-size:4.9389px;font-family:sans-serif;-i…
[all …]
/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
H A Dmove.pass.cpp11 // <variant>
13 // template <class ...Types> class variant;
15 // constexpr variant(variant&&) noexcept(see below);
20 #include <variant>
81 // Don't throw from the copy constructor since variant's assignment in MakeEmptyT()
92 template <class Variant>
93 void makeEmpty(Variant& v) { in makeEmpty()
94 Variant v2(std::in_place_type<MakeEmptyT>); in makeEmpty()
106 using V = std::variant<int, long>; in test_move_noexcept()
110 using V = std::variant<int, MoveOnly>; in test_move_noexcept()
[all …]
H A Dcopy.pass.cpp11 // <variant>
13 // template <class ...Types> class variant;
15 // constexpr variant(variant const&);
19 #include <variant>
79 // Don't throw from the copy constructor since variant's assignment in MakeEmptyT()
90 template <class Variant>
91 void makeEmpty(Variant& v) { in makeEmpty()
92 Variant v2(std::in_place_type<MakeEmptyT>); in makeEmpty()
104 using V = std::variant<int, long>; in test_copy_ctor_sfinae()
108 using V = std::variant<int, NoCopy>; in test_copy_ctor_sfinae()
[all …]
H A DT.pass.cpp11 // <variant>
13 // template <class ...Types> class variant;
15 // template <class T> constexpr variant(T&&) noexcept(see below);
20 #include <variant>
53 using V = std::variant<Dummy, NoThrowT>; in test_T_ctor_noexcept()
57 using V = std::variant<Dummy, ThrowsT>; in test_T_ctor_noexcept()
64 using V = std::variant<long, long long>; in test_T_ctor_sfinae()
68 using V = std::variant<std::string, std::string>; in test_T_ctor_sfinae()
72 using V = std::variant<std::string, void*>; in test_T_ctor_sfinae()
76 using V = std::variant<std::string, float>; in test_T_ctor_sfinae()
[all …]
H A Dconv.pass.cpp11 // <variant>
13 // template <class ...Types> class variant;
15 // template <class T> constexpr variant(T&&) noexcept(see below);
17 #include <variant>
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, ""); in main()
29 static_assert(!std::is_constructible<std::variant<std::string, float>, int>::value, ""); in main()
30 static_assert(!std::is_constructible<std::variant<std::string, double>, int>::value, ""); in main()
31 static_assert(!std::is_constructible<std::variant<std::string, bool>, int>::value, ""); in main()
[all …]
/llvm-project/clang/test/Driver/
H A Dclang-cc1as-target-variant.s3 // RUN: %clang -target x86_64-apple-ios13.1-macabi -darwin-target-variant x86_64-apple-macos10.15 -…
9 // RUN: %clang -target x86_64-apple-ios-macabi -mmacos-version-min=10.15 -darwin-target-variant x86…
10 // RUN: | FileCheck --check-prefix=CHECK-VARIANT-SDK-INFO %s
12 // RUN: %clang -target x86_64-apple-macos -mmacos-version-min=10.15 -darwin-target-variant x86_64-a…
13 // RUN: | FileCheck --check-prefix=CHECK-VARIANT-SDK-INFO-INV %s
17 // CHECK-SAME: "-darwin-target-variant-triple" "x86_64-apple-macos10.15"
23 // CHECK-VARIANT-SDK-INFO: "-cc1as"
24 // CHECK-VARIANT-SDK-INFO-SAME: "-triple" "x86_64-apple-ios13.1.0-macabi"
25 // CHECK-VARIANT-SDK-INFO-SAME: "-darwin-target-variant-triple" "x86_64-apple-macos"
26 // CHECK-VARIANT-SDK-INFO-SAME: "-target-sdk-version=13.1"
[all …]
H A Ddarwin-target-variant.c2 // RUN: -darwin-target-variant x86_64-apple-ios13.1-macabi -darwin-target-variant x86_64h-apple-i…
5 // RUN: %clang -target x86_64-apple-macos10.15 -darwin-target-variant i386-apple-ios13.1-macabi \
8 // RUN: %clang -target x86_64-apple-macos10.15 -darwin-target-variant x86_64-apple-ios13.1-macabi \
9 // RUN: -darwin-target-variant x86_64-apple-ios13.1-macabi -c %s -### 2>&1 | FileCheck --check-pr…
11 // RUN: not %clang -target x86_64-apple-macos10.15 -darwin-target-variant x86_64-apple-ios13.1 \
15 // RUN: -darwin-target-variant x86_64-apple-macos10.15 \
19 // CHECK-SAME: "-darwin-target-variant-triple" "x86_64-apple-ios13.1-macabi"
21 // CHECK-SAME: "-darwin-target-variant-triple" "x86_64h-apple-ios13.1-macabi"
23 // CHECK-NOT: target-variant-triple
26 // INVERTED-SAME: "-darwin-target-variant-triple" "x86_64-apple-macos10.15"
[all …]
/llvm-project/libcxx/test/std/utilities/variant/variant.visit/
H A Dvisit_return_type.pass.cpp11 // <variant>
21 #include <variant>
31 { // test call operator forwarding - no variant in test_call_operator_forwarding()
41 { // test call operator forwarding - single variant, single arg in test_call_operator_forwarding()
42 using V = std::variant<int>; in test_call_operator_forwarding()
53 { // test call operator forwarding - single variant, multi arg in test_call_operator_forwarding()
54 using V = std::variant<int, long, double>; in test_call_operator_forwarding()
65 { // test call operator forwarding - multi variant, multi arg in test_call_operator_forwarding()
66 using V = std::variant<int, long, double>; in test_call_operator_forwarding()
67 using V2 = std::variant<int *, std::string>; in test_call_operator_forwarding()
[all …]
H A Dvisit.pass.cpp11 // <variant>
21 #include <variant>
30 { // test call operator forwarding - no variant in test_call_operator_forwarding()
40 { // test call operator forwarding - single variant, single arg in test_call_operator_forwarding()
41 using V = std::variant<int>; in test_call_operator_forwarding()
52 { // test call operator forwarding - single variant, multi arg in test_call_operator_forwarding()
53 using V = std::variant<int, long, double>; in test_call_operator_forwarding()
64 { // test call operator forwarding - multi variant, multi arg in test_call_operator_forwarding()
65 using V = std::variant<int, long, double>; in test_call_operator_forwarding()
66 using V2 = std::variant<in in test_call_operator_forwarding()
[all...]
/llvm-project/libcxx/include/
H A Dvariant14 variant synopsis
18 // 20.7.2, class template variant
20 class variant {
24 constexpr variant() noexcept(see below);
25 constexpr variant(const variant&);
26 constexpr variant(variant&&) noexcept(see below);
28 template <class T> constexpr variant(T&&) noexcept(see below);
31 constexpr explicit variant(in_place_type_
[all...]
/llvm-project/libcxx/test/std/utilities/variant/variant.relops/
H A Drelops.pass.cpp11 // <variant>
15 // operator==(variant<Types...> const&, variant<Types...> const&) noexcept;
19 // operator!=(variant<Types...> const&, variant<Types...> const&) noexcept;
23 // operator<(variant<Types...> const&, variant<Types...> const&) noexcept;
27 // operator>(variant<Types...> const&, variant<Types...> const&) noexcept;
31 // operator<=(variant<Types...> const&, variant<Types...> const&) noexcept;
35 // operator>=(variant<Types...> const&, variant<Types...> const&) noexcept;
40 #include <variant>
75 template <class Variant> void makeEmpty(Variant &v) { in makeEmpty()
76 Variant v2(std::in_place_type<MakeEmptyT>); in makeEmpty()
[all …]
/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
H A Dconv.pass.cpp11 // <variant>
13 // template <class ...Types> class variant;
16 // variant& operator=(T&&) noexcept(see below);
18 #include <variant>
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, ""); in main()
30 static_assert(!std::is_assignable<std::variant<std::string, float>, int>::value, ""); in main()
31 static_assert(!std::is_assignable<std::variant<std::string, double>, int>::value, ""); in main()
32 static_assert(!std::is_assignable<std::variant<std::string, bool>, int>::value, ""); in main()
[all …]
H A Dmove.pass.cpp11 // <variant>
13 // template <class ...Types> class variant;
15 // constexpr variant& operator=(variant&&) noexcept(see below);
21 #include <variant>
137 using V = std::variant<int>; in test_move_assignment_noexcept()
141 using V = std::variant<MoveOnly>; in test_move_assignment_noexcept()
145 using V = std::variant<int, long>; in test_move_assignment_noexcept()
149 using V = std::variant<int, MoveOnly>; in test_move_assignment_noexcept()
153 using V = std::variant<MoveOnlyNT>; in test_move_assignment_noexcept()
157 using V = std::variant<MoveOnlyOddNothrow>; in test_move_assignment_noexcept()
[all …]
/llvm-project/clang/test/Preprocessor/
H A Dis_target_variant.c4 // RUN: %clang_cc1 -fsyntax-only -triple arm64-apple-macos12 -darwin-target-variant-triple arm64-ap…
13 // Target variant is a darwin.
15 #error "mismatching variant os"
18 // Target variant is not macOS...
20 #error "mismatching variant os"
25 #error "mismatching variant os"
28 // Zippered builds also set the target variant environment to macabi.
33 #error "mismatching variant environment"
38 // In non-zippered builds, even for catalyst, no target variant is set.
42 #error "mismatching variant os"
[all …]

12345678910>>...65