| /llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
| H A D | forward_as_tuple.pass.cpp | 22 template <class Tuple> 24 test0(const Tuple&) in test0() argument 29 template <class Tuple> 31 test1a(const Tuple& t) in test1a() 38 template <class Tuple> 40 test1b(const Tuple& t) in test1b() 47 template <class Tuple> 49 test2a(const Tuple& t) in test2a() 59 template <class Tuple> 61 test3(const Tuple&) in test3() argument [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.assign/ |
| H A D | array.extension.pass.cpp | 50 typedef std::tuple<NothrowAssignableFrom<int>> Tuple; in main() typedef 55 typedef std::tuple<PotentiallyThrowingAssignableFrom<int>> Tuple; in main() typedef 57 static_assert(std::is_assignable<Tuple&, Array const&>::value, ""); in main() 71 typedef std::tuple<NothrowAssignableFrom<int>> Tuple; in main() typedef 73 static_assert(std::is_nothrow_assignable<Tuple&, Array&&>::value, ""); in main() 76 typedef std::tuple<PotentiallyThrowingAssignableFrom<int>> Tuple; in main() typedef 78 static_assert(std::is_assignable<Tuple&, Array&&>::value, ""); in main() 79 static_assert(!std::is_nothrow_assignable<Tuple&, Array&&>::value, ""); in main() 84 typedef std::tuple<NothrowAssignableFrom<int>> Tuple; in main() typedef 86 static_assert(std::is_nothrow_assignable<Tuple&, Array&>::value, ""); in main() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/ |
| H A D | make_from_tuple.pass.cpp | 24 template <class Tuple> 29 Tuple args; 42 Tuple<std::decay_t<Types>...> args; 57 template <class Tuple> 71 bool do_forwarding_test(Tuple&& tup) { in do_forwarding_test() 170 Tuple tup; ((void)tup); in test_noexcept() 177 Tuple tup; ((void)tup); in test_noexcept() 184 Tuple tup; ((void)tup); in test_noexcept() 189 Tuple tup; ((void)tup); in test_noexcept() 194 Tuple tup; ((void)tup); in test_noexcept() [all …]
|
| H A D | apply.pass.cpp | 95 template <class Tuple> 99 Tuple args; 130 template <class ...ExpectArgs, class Tuple> 131 void check_apply_quals_and_types(Tuple&& t) { in check_apply_quals_and_types() 136 auto ret = std::apply(obj, std::forward<Tuple>(t)); in check_apply_quals_and_types() 142 auto ret = std::apply(cobj, std::forward<Tuple>(t)); in check_apply_quals_and_types() 148 auto ret = std::apply(std::move(obj), std::forward<Tuple>(t)); in check_apply_quals_and_types() 154 auto ret = std::apply(std::move(cobj), std::forward<Tuple>(t)); in check_apply_quals_and_types()
|
| /llvm-project-15.0.7/libcxx/test/std/concepts/concepts.lang/concept.assignable/ |
| H A D | assignable_from.compile.pass.cpp | 78 struct Tuple { struct 79 Tuple& operator=(const Tuple&); 80 const Tuple& operator=(const Tuple&) const; 82 static_assert(!std::assignable_from<Tuple, const Tuple&>); 83 static_assert( std::assignable_from<Tuple&, const Tuple&>); 84 static_assert(!std::assignable_from<Tuple&&, const Tuple&>); 85 static_assert(!std::assignable_from<const Tuple, const Tuple&>); 86 static_assert( std::assignable_from<const Tuple&, const Tuple&>); 87 static_assert(!std::assignable_from<const Tuple&&, const Tuple&>);
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
| H A D | tuple_size_v.pass.cpp | 21 template <class Tuple, int Expect> 24 static_assert(std::tuple_size_v<Tuple> == Expect, ""); in test() 25 static_assert(std::tuple_size_v<Tuple> == std::tuple_size<Tuple>::value, ""); in test() 26 static_assert(std::tuple_size_v<Tuple const> == std::tuple_size<Tuple>::value, ""); in test() 27 static_assert(std::tuple_size_v<Tuple volatile> == std::tuple_size<Tuple>::value, ""); in test() 28 static_assert(std::tuple_size_v<Tuple const volatile> == std::tuple_size<Tuple>::value, ""); in test()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/ |
| H A D | const_pair.pass.cpp | 65 typedef std::tuple<NothrowCopyAssignable, long> Tuple; in main() typedef 67 static_assert(std::is_nothrow_assignable<Tuple&, Pair const&>::value, ""); in main() 68 static_assert(std::is_nothrow_assignable<Tuple&, Pair&>::value, ""); in main() 69 static_assert(std::is_nothrow_assignable<Tuple&, Pair const&&>::value, ""); in main() 72 typedef std::tuple<PotentiallyThrowingCopyAssignable, long> Tuple; in main() typedef 74 static_assert(std::is_assignable<Tuple&, Pair const&>::value, ""); in main() 75 static_assert(!std::is_nothrow_assignable<Tuple&, Pair const&>::value, ""); in main() 77 static_assert(std::is_assignable<Tuple&, Pair&>::value, ""); in main() 78 static_assert(!std::is_nothrow_assignable<Tuple&, Pair&>::value, ""); in main() 80 static_assert(std::is_assignable<Tuple&, Pair const&&>::value, ""); in main() [all …]
|
| H A D | move_pair.pass.cpp | 114 typedef std::tuple<NothrowMoveAssignable, long> Tuple; in main() typedef 116 static_assert(std::is_nothrow_assignable<Tuple&, Pair&&>::value, ""); in main() 117 static_assert(!std::is_assignable<Tuple&, Pair const&&>::value, ""); in main() 120 typedef std::tuple<PotentiallyThrowingMoveAssignable, long> Tuple; in main() typedef 122 static_assert(std::is_assignable<Tuple&, Pair&&>::value, ""); in main() 123 static_assert(!std::is_nothrow_assignable<Tuple&, Pair&&>::value, ""); in main() 124 static_assert(!std::is_assignable<Tuple&, Pair const&&>::value, ""); in main()
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/ |
| H A D | p12.cpp | 6 template<class ...> struct Tuple { }; struct 7 template<class ... Types> int &g(Tuple<Types ...>); // #1 8 template<class T1, class ... Types> float &g(Tuple<T1, Types ...>); // #2 9 template<class T1, class ... Types> double &g(Tuple<T1, Types& ...>); // #3 12 int &ir1 = g(Tuple<>()); in test_g() 13 float &fr1 = g(Tuple<int, float>()); in test_g() 14 double &dr1 = g(Tuple<int, float&>()); in test_g() 15 double &dr2 = g(Tuple<int>()); in test_g()
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.variadic/ |
| H A D | p1.cpp | 3 template<class ...Types> struct Tuple; 5 Tuple<> *t0; 6 Tuple<int> *t1; 7 Tuple<int, char> *t2a; 8 Tuple<int, float> *t2b = t2a; // expected-error{{cannot initialize a variable of type 'Tuple<int, f… 9 Tuple<int, float, double> *t3;
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_fdr_log_writer.h | 25 template <class Tuple, 38 template <class Tuple, 41 Tuple>::type>::value, 43 static void serializeTo(char *, Tuple &&) {} in serializeTo() 48 template <class Tuple, size_t Index> struct AggregateSizesImpl { 50 sizeof(typename std::tuple_element<Index, Tuple>::type) + 51 AggregateSizesImpl<Tuple, Index - 1>::value; 54 template <class Tuple> struct AggregateSizesImpl<Tuple, 0> { 56 sizeof(typename std::tuple_element<0, Tuple>::type); 59 template <class Tuple> struct AggregateSizes { [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
| H A D | UTypes.pass.cpp | 44 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_sfinae_missing_elements() typedef 47 Tuple, in test_sfinae_missing_elements() 52 Tuple, in test_sfinae_missing_elements() 57 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_sfinae_missing_elements() typedef 60 Tuple, in test_sfinae_missing_elements() 65 Tuple, in test_sfinae_missing_elements() 71 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_sfinae_missing_elements() typedef 72 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_sfinae_missing_elements() 81 MoveOnly, Tuple, MoveOnly, MoveOnly in test_sfinae_missing_elements()
|
| H A D | PR22806_constrain_tuple_like_ctor.pass.cpp | 29 template <class Tuple, class = uncvref_t<Tuple>> 32 template <class Tuple, class ...Args> 33 struct IsTuple<Tuple, std::tuple<Args...>> : std::true_type {}; 42 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type> 43 explicit ConstructibleFromTupleAndInt(Tuple&&) : state(FromTuple) {} in ConstructibleFromTupleAndInt() 55 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type> 56 ConvertibleFromTupleAndInt(Tuple&&) : state(FromTuple) {} in ConvertibleFromTupleAndInt()
|
| H A D | alloc_UTypes.pass.cpp | 49 typedef std::tuple<MoveOnly, MoveOnly, BadDefault> Tuple; in test_uses_allocator_sfinae_evaluation() typedef 52 Tuple, in test_uses_allocator_sfinae_evaluation() 57 Tuple, in test_uses_allocator_sfinae_evaluation() 62 typedef std::tuple<MoveOnly, MoveOnly, BadDefault, BadDefault> Tuple; in test_uses_allocator_sfinae_evaluation() typedef 65 Tuple, in test_uses_allocator_sfinae_evaluation() 70 Tuple, in test_uses_allocator_sfinae_evaluation()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | DenseMapInfo.h | 243 using Tuple = std::tuple<Ts...>; 245 static inline Tuple getEmptyKey() { 246 return Tuple(DenseMapInfo<Ts>::getEmptyKey()...); 249 static inline Tuple getTombstoneKey() { 250 return Tuple(DenseMapInfo<Ts>::getTombstoneKey()...); 255 using EltType = typename std::tuple_element<I, Tuple>::type; 263 static unsigned getHashValueImpl(const Tuple &, std::true_type) { 273 static bool isEqualImpl(const Tuple &lhs, const Tuple &rhs, std::false_type) { 274 using EltType = typename std::tuple_element<I, Tuple>::type; 281 static bool isEqualImpl(const Tuple &, const Tuple &, std::true_type) { [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/orc/ |
| H A D | stl_extras.h | 23 template <typename F, typename Tuple, std::size_t... I> 24 decltype(auto) apply_tuple_impl(F &&f, Tuple &&t, std::index_sequence<I...>) { in decltype() 25 return std::forward<F>(f)(std::get<I>(std::forward<Tuple>(t))...); in decltype() 35 template <typename F, typename Tuple> 36 decltype(auto) apply_tuple(F &&f, Tuple &&t) { in decltype() 38 std::tuple_size<typename std::decay<Tuple>::type>::value>; in decltype() 40 return detail::apply_tuple_impl(std::forward<F>(f), std::forward<Tuple>(t), in decltype()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ProfileSummary.cpp | 181 static bool getOptionalVal(MDTuple *Tuple, unsigned &Idx, const char *Key, in getOptionalVal() argument 183 if (getVal(dyn_cast<MDTuple>(Tuple->getOperand(Idx)), Key, Value)) { in getOptionalVal() 188 return Idx < Tuple->getNumOperands(); in getOptionalVal() 195 MDTuple *Tuple = dyn_cast_or_null<MDTuple>(MD); in getFromMD() local 196 if (!Tuple || Tuple->getNumOperands() < 8 || Tuple->getNumOperands() > 10) in getFromMD() 200 auto &FormatMD = Tuple->getOperand(I++); in getFromMD() 216 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "TotalCount", in getFromMD() 221 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "MaxInternalCount", in getFromMD() 227 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "NumCounts", in getFromMD() 230 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(I++)), "NumFunctions", in getFromMD() [all …]
|
| /llvm-project-15.0.7/mlir/test/mlir-pdll/Parser/ |
| H A D | constraint.pdll | 4 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Tuple<>> 10 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Tuple<>> Code< /* Native Code */ > 30 // CHECK: `-UserConstraintDecl {{.*}} Name<Foo> ResultType<Tuple<result1: Value, result2: Attr>> 40 // CHECK: `-TupleExpr {{.*}} Type<Tuple<result1: Value, result2: Attr>> 42 // CHECK: | `-TupleExpr {{.*}} Type<Tuple<Value, Attr>> 44 // CHECK: `-TupleExpr {{.*}} Type<Tuple<Value, Attr>> 50 // CHECK: |-UserConstraintDecl {{.*}} Name<Bar> ResultType<Tuple<>> 55 // CHECK: `-UserConstraintDecl {{.*}} Name<Bar> ResultType<Tuple<>> 59 // CHECK: `-UserConstraintDecl {{.*}} Name<Bar> ResultType<Tuple<>> 69 // CHECK: UserConstraintDecl {{.*}} Name<<anonymous_constraint_0>> ResultType<Tuple<>>
|
| H A D | rewrite.pdll | 4 // CHECK: `-UserRewriteDecl {{.*}} Name<Foo> ResultType<Tuple<>> 10 // CHECK: `-UserRewriteDecl {{.*}} Name<Foo> ResultType<Tuple<>> Code< /* Native Code */ > 31 // CHECK: `-UserRewriteDecl {{.*}} Name<Foo> ResultType<Tuple<result1: Value, result2: Attr>> 41 // CHECK: `-TupleExpr {{.*}} Type<Tuple<result1: Value, result2: Attr>> 43 // CHECK: | `-TupleExpr {{.*}} Type<Tuple<Value, Attr>> 45 // CHECK: `-TupleExpr {{.*}} Type<Tuple<Value, Attr>> 53 // CHECK: UserRewriteDecl {{.*}} Name<<anonymous_rewrite_0>> ResultType<Tuple<>>
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | ReverseIterationTest.cpp | 49 for (auto Tuple : zip(Map, IterKeys)) in TEST() local 50 ASSERT_EQ(std::get<0>(Tuple).first, std::get<1>(Tuple)); in TEST() 103 for (auto Tuple : zip(Map, Keys)) in TEST() local 104 ASSERT_EQ(std::get<0>(Tuple).second, std::get<1>(Tuple)->value); in TEST()
|
| /llvm-project-15.0.7/llvm/tools/llvm-jitlistener/ |
| H A D | llvm-jitlistener.cpp | 165 Triple Tuple(TheModule->getTargetTriple()); in InitEE() local 166 if (Tuple.getTriple().empty()) in InitEE() 167 Tuple.setTriple(sys::getProcessTriple()); in InitEE() 169 if (Tuple.isOSWindows() && !Tuple.isOSBinFormatELF()) { in InitEE() 170 Tuple.setObjectFormat(Triple::ELF); in InitEE() 171 TheModule->setTargetTriple(Tuple.getTriple()); in InitEE()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/ |
| H A D | is_nothrow_constructible.pass.cpp | 95 struct Tuple { struct 96 Tuple(Empty&&) noexcept {} in Tuple() argument 112 test_is_nothrow_constructible<Tuple &&, Empty> (); // See bug #19616. in main() 114 static_assert(!std::is_constructible<Tuple&, Empty>::value, ""); in main() 115 test_is_not_nothrow_constructible<Tuple &, Empty> (); // See bug #19616. in main()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Generic/ |
| H A D | pr33094.ll | 9 %Tuple = type { i64 } 15 %e = extractvalue %Tuple select (i1 icmp eq 17 %Tuple { i64 33 }, %Tuple { i64 42 }), 0
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.in_range/ |
| H A D | in_range.pass.cpp | 26 struct Tuple { struct 30 constexpr Tuple() { in Tuple() argument 39 constexpr Tuple<T> tup; in test_in_range1() 50 constexpr Tuple<uint8_t> utup8; in test_in_range() 51 constexpr Tuple<int8_t> stup8; in test_in_range()
|
| /llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/internal/ |
| H A D | gmock-internal-utils.h | 462 template <typename F, typename Tuple, size_t... Idx> 463 auto ApplyImpl(F&& f, Tuple&& args, IndexSequence<Idx...>) -> decltype( 464 std::forward<F>(f)(std::get<Idx>(std::forward<Tuple>(args))...)) { 465 return std::forward<F>(f)(std::get<Idx>(std::forward<Tuple>(args))...); 469 template <typename F, typename Tuple> 470 auto Apply(F&& f, Tuple&& args) 471 -> decltype(ApplyImpl(std::forward<F>(f), std::forward<Tuple>(args), 472 MakeIndexSequence<std::tuple_size<Tuple>::value>())) { 473 return ApplyImpl(std::forward<F>(f), std::forward<Tuple>(args), 474 MakeIndexSequence<std::tuple_size<Tuple>::value>());
|