| /llvm-project/clang/test/CXX/temp/temp.decls/temp.variadic/ |
| H A D | p5.cpp | 13 template<typename... Types> 15 typedef pair<Types..., int> expand_with_pacs; // okay 16 …typedef pair<Types, int...> expand_no_packs; // expected-error{{pack expansion does not contain a… 17 …typedef pair<pair<Types..., int>..., int> expand_with_expanded_nested; // expected-error{{pack exp… 22 template<typename ...Types> 26 …typedef tuple<pair<Types, OtherTypes>...> type; // expected-error{{pack expansion contains paramet… 42 template<typename T, int N, typename ... Types> 44 …: public Types, public T // expected-error{{base type contains unexpanded parameter pack 'Types'}} 49 …typedef Types *types_pointer; // expected-error{{declaration type contains unexpanded parameter pa… 52 …typedef Types (^block_pointer_1)(int); // expected-error{{declaration type contains unexpanded par… [all …]
|
| H A D | injected-class-name.cpp | 7 template<typename T, typename ...Types> 15 template<typename T, typename ...Types> 16 void X0<T, Types...>::f0(T) { } in f0() 18 template<typename T, typename ...Types> 19 typename X0<T, Types...>::type X0<T, Types...>::f1(T) { } in f1() 21 template<typename T, typename ...Types> 22 struct X0<T, T, Types...> { 30 template<typename T, typename ...Types> 31 typename X0<T, T, Types...>::result X0<T, T, Types...>::f3() { return 0; } in f3() 33 template<typename T, typename ...Types> [all …]
|
| H A D | multi-level-substitution.cpp | 31 template<typename ...Types> 38 struct Inner<tuple<pair<Types, YTypes>...> > { 39 static const unsigned value = sizeof...(Types) - sizeof...(YTypes); 54 template<typename ...Types> 61 struct Inner<tuple<pair<Types, YTypes>...>, 62 unsigned_tuple<sizeof(Types) + sizeof(YTypes)...>> { 82 template<typename ...Types> 89 struct Inner<R(pair<Types, YTypes>...)> { 90 static const unsigned value = sizeof...(Types) - sizeof...(YTypes); 175 template<typename ...Types> [all …]
|
| H A D | sizeofpack.cpp | 19 template<typename T, typename... Types> 20 array<sizeof...(Types)> make_array1(Types&&... args); 28 template<typename T, typename... Types> 29 int make_array(array<sizeof...(Types)>&, Types... args); 41 template<typename T, typename... Types> 42 static array<sizeof...(Types)> make_array(Types ... args);
|
| /llvm-project/llvm/utils/ |
| H A D | llvm.grm | 200 Types 203 | Types OptAddrSpace ^ "*" 206 | Types "(" ^ ArgTypeListI ^ ")" OptFuncAttrs 208 | "[" ^ EUINT64VAL "x" Types ^ "]" 209 | "<" ^ EUINT64VAL "x" Types ^ ">" 216 ArgType ::= Types OptParamAttrs ; 218 ResultTypes ::= Types | void ; 224 TypeListI ::= Types | TypeListI ^ "," Types ; 226 ConstVal::= Types "[" ^ ConstVector ^ "]" 227 | Types "[" ^ "]" [all …]
|
| /llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalityPredicates.cpp | 30 [=](const LegalityQuery &Query) { return Query.Types[TypeIdx] == Type; }; in typeIs() 36 SmallVector<LLT, 4> Types = TypesInit; in typeInSet() local 38 return llvm::is_contained(Types, Query.Types[TypeIdx]); in typeInSet() 45 SmallVector<std::pair<LLT, LLT>, 4> Types = TypesInit; in typePairInSet() local 47 std::pair<LLT, LLT> Match = {Query.Types[TypeIdx0], Query.Types[TypeIdx1]}; in typePairInSet() 48 return llvm::is_contained(Types, Match); in typePairInSet() 55 SmallVector<std::tuple<LLT, LLT, LLT>, 4> Types = TypesInit; in typePairAndMemDescInSet() 58 Query.Types[TypeIdx in typePairAndMemDescInSet() [all...] |
| H A D | LegalizeMutations.cpp | 25 return std::make_pair(TypeIdx, Query.Types[FromTypeIdx]); in changeTo() 32 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 33 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementTo() 41 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 49 const LLT OldTy = Query.Types[TypeIdx]; in changeElementCountTo() 50 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementCountTo() 60 const LLT OldTy = Query.Types[TypeIdx]; in changeElementCountTo() 70 const LLT OldTy = Query.Types[TypeIdx]; in changeElementSizeTo() 71 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementSizeTo() 80 const LLT Ty = Query.Types[TypeIdx]; in widenScalarOrEltToNextPow2() [all …]
|
| /llvm-project/libc/config/linux/ |
| H A D | api.td | |
| /llvm-project/libcxx/test/libcxx/utilities/meta/stress_tests/ |
| H A D | stress_test_variant_overloads_impl.sh.cpp | 70 template <class ...Types> 71 using Apply = AllOverloads<Overload<Types, _Idx>...>; 74 template <class ...Types> 76 std::__make_indices_imp<sizeof...(Types), 0> >::template Apply<Types...>; 83 template <class... Types> struct Overload; 88 template <class Tp, class... Types> 89 struct Overload<Tp, Types...> : Overload<Types...> { 90 using Overload<Types...>::operator(); 94 template <class... Types> 95 using Overloads = Overload<Types...>; [all …]
|
| /llvm-project/clang/lib/AST/Interp/ |
| H A D | Opcodes.td | |
| /llvm-project/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/ |
| H A D | p12.cpp | 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 18 template<class ... Types> int &h(int (*)(Types ...)); // #1 19 template<class T1, class ... Types> float &h(int (*)(T1, Types ...)); // #2 20 template<class T1, class ... Types> double &h(int (*)(T1, Types& ...)); // #3
|
| /llvm-project/clang/test/CodeGenCXX/ |
| H A D | mangle-variadic-templates.cpp | 3 template<unsigned I, typename ...Types> 8 template<typename ...Types> struct tuple { }; 14 template<typename ...Types> 15 void f0(X<sizeof...(Types), Types&...>) { } in f0() argument 23 template<typename ...Types> void f1() {} in f1() 32 template<typename ...Types> void f2(Types...) {} in f2() argument 41 template<typename ...Types> void f3(const Types * argument [all...] |
| /llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | LegalizerInfo.h | 107 /// For efficiency, it doesn't make a copy of Types so care must be taken not 111 ArrayRef<LLT> Types; member 131 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types, in LegalityQuery() 133 : Opcode(Opcode), Types(Types), MMODescrs(MMODescrs) {} in LegalityQuery() 134 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types) in LegalityQuery() 135 : LegalityQuery(Opcode, Types, {}) {} in LegalityQuery() 267 return Query.Types[TypeIdx] != Type; in typeIsNot() 495 std::initializer_list<LLT> Types) { in actionFor() 497 return actionIf(Action, typeInSet(typeIdx(0), Types)); in actionFor() 487 actionFor(LegalizeAction Action,std::initializer_list<LLT> Types) actionFor() argument 494 actionFor(LegalizeAction Action,std::initializer_list<LLT> Types,LegalizeMutation Mutation) actionFor() argument 503 actionFor(LegalizeAction Action,std::initializer_list<std::pair<LLT,LLT>> Types) actionFor() argument 511 actionFor(LegalizeAction Action,std::initializer_list<std::pair<LLT,LLT>> Types,LegalizeMutation Mutation) actionFor() argument 521 actionForTypeWithAnyImm(LegalizeAction Action,std::initializer_list<LLT> Types) actionForTypeWithAnyImm() argument 528 actionForTypeWithAnyImm(LegalizeAction Action,std::initializer_list<std::pair<LLT,LLT>> Types) actionForTypeWithAnyImm() argument 538 actionForCartesianProduct(LegalizeAction Action,std::initializer_list<LLT> Types) actionForCartesianProduct() argument 599 legalFor(std::initializer_list<LLT> Types) legalFor() argument 604 legalFor(std::initializer_list<std::pair<LLT,LLT>> Types) legalFor() argument 609 legalForTypeWithAnyImm(std::initializer_list<LLT> Types) legalForTypeWithAnyImm() argument 615 legalForTypeWithAnyImm(std::initializer_list<std::pair<LLT,LLT>> Types) legalForTypeWithAnyImm() argument 631 legalForCartesianProduct(std::initializer_list<LLT> Types) legalForCartesianProduct() argument 691 lowerFor(std::initializer_list<LLT> Types) lowerFor() argument 696 lowerFor(std::initializer_list<LLT> Types,LegalizeMutation Mutation) lowerFor() argument 702 lowerFor(std::initializer_list<std::pair<LLT,LLT>> Types) lowerFor() argument 707 lowerFor(std::initializer_list<std::pair<LLT,LLT>> Types,LegalizeMutation Mutation) lowerFor() argument 744 libcallFor(std::initializer_list<LLT> Types) libcallFor() argument 748 libcallFor(std::initializer_list<std::pair<LLT,LLT>> Types) libcallFor() argument 752 libcallForCartesianProduct(std::initializer_list<LLT> Types) libcallForCartesianProduct() argument 782 narrowScalarFor(std::initializer_list<std::pair<LLT,LLT>> Types,LegalizeMutation Mutation) narrowScalarFor() argument 815 unsupportedFor(std::initializer_list<LLT> Types) unsupportedFor() argument 846 customFor(std::initializer_list<LLT> Types) customFor() argument 852 customFor(std::initializer_list<std::pair<LLT,LLT>> Types) customFor() argument 856 customForCartesianProduct(std::initializer_list<LLT> Types) customForCartesianProduct() argument [all...] |
| /llvm-project/libcxx/test/support/ |
| H A D | type_algorithms.h | 17 template <class... Types> 24 template <class... Types> 25 using concatenate_t = typename concatenate<Types...>::type; 28 template <class... Types, class Functor> 29 TEST_CONSTEXPR_CXX14 void for_each(type_list<Types...>, Functor f); 32 template <class... Types> 33 struct concatenate<type_list<Types...> > { 34 using type = type_list<Types...>; 47 template <class... Types> 48 TEST_CONSTEXPR_CXX14 void swallow(Types...) {} [all …]
|
| /llvm-project/clang/test/CXX/temp/temp.param/ |
| H A D | p11-0x.cpp | 15 template<typename T = int, typename ...Types> struct X2t; 16 template<typename T = int, typename ...Types> using A2t = X2t<T, Types...>; 26 template<typename ...Types, // expected-error{{template parameter pack must be the last template pa… 30 template<typename ...Types, // expected-error{{template parameter pack must be the last template pa… 51 template<typename... Types> struct X1t; 52 template<typename ...Types, typename T> struct X1t<T, Types...> { }; 61 template<typename ...Types, typename T> 62 void f1t(X1t<T, Types...>);
|
| /llvm-project/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/ |
| H A D | p13.cpp | 5 template<typename ...Types> 6 void f0(Types ...args); 8 template<typename ...Types> 9 void f1(const Types &...args); 17 template<typename ...Types> 19 template<Types ...Values> struct Inner; 37 template<typename ...Types> 39 Types ...members; // expected-error{{only function and template parameters can be parameter packs}} \
|
| /llvm-project/llvm/unittests/DebugInfo/CodeView/ |
| H A D | RandomAccessVisitorTest.cpp | 128 bool ValidateDatabaseRecord(LazyRandomTypeCollection &Types, uint32_t Index) { in ValidateDatabaseRecord() argument 130 if (!Types.contains(TI)) in ValidateDatabaseRecord() 132 if (GlobalState->TypeVector[Index] != Types.getType(TI)) in ValidateDatabaseRecord() 206 LazyRandomTypeCollection Types(GlobalState->TypeArray, in TEST_F() local 214 CVType T = Types.getType(TI); in TEST_F() 220 EXPECT_EQ(8u, Types.size()); in TEST_F() 222 EXPECT_TRUE(ValidateDatabaseRecord(Types, I)); in TEST_F() 238 LazyRandomTypeCollection Types(GlobalState->TypeArray, in TEST_F() local 243 CVType T = Types.getType(TI); in TEST_F() 249 EXPECT_EQ(8u, Types.size()); in TEST_F() [all …]
|
| /llvm-project/llvm/unittests/FuzzMutate/ |
| H A D | RandomIRBuilderTest.cpp | 102 std::array<Type *, 3> Types = {Type::getInt8Ty(Ctx), Type::getInt32Ty(Ctx), in TEST() local 104 RandomIRBuilder IB(Seed, Types); in TEST() 119 for (auto *T : Types) { in TEST() 180 std::array<Type *, 3> Types = {Type::getInt8Ty(Ctx), Type::getInt32Ty(Ctx), in TEST() local 182 RandomIRBuilder IB(Seed, Types); in TEST() 221 std::array<Type *, 1> Types = {Type::getInt8Ty(Ctx)}; in TEST() local 222 RandomIRBuilder IB(Seed, Types); in TEST() 251 std::array<Type *, 1> Types = {Type::getInt8Ty(Ctx)}; in TEST() local 252 RandomIRBuilder IB(Seed, Types); in TEST() 291 std::array<Type *, 2> Types in TEST() local 326 std::array<Type *, 8> Types = { TEST() local 372 std::array<Type *, 3> Types = {Type::getInt16Ty(Ctx), Type::getInt32Ty(Ctx), TEST() local 459 std::array<Type *, 3> Types = {Type::getInt1Ty(Ctx), Type::getInt32Ty(Ctx), TEST() local 502 std::array<Type *, 3> Types = {Type::getInt8Ty(Ctx), Type::getInt64Ty(Ctx), TEST() local [all...] |
| /llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64LegalizerInfo.cpp | 143 return Query.Types[0].getNumElements() <= 2; in AArch64LegalizerInfo() 148 return Query.Types[0].getNumElements() <= 4; in AArch64LegalizerInfo() 153 return Query.Types[0].getNumElements() <= 16; in AArch64LegalizerInfo() 169 return Query.Types[0].getNumElements() <= 2; in AArch64LegalizerInfo() 174 return Query.Types[0].getNumElements() <= 4; in AArch64LegalizerInfo() 179 return Query.Types[0].getNumElements() <= 16; in AArch64LegalizerInfo() 187 const auto &SrcTy = Query.Types[0]; in AArch64LegalizerInfo() 188 const auto &AmtTy = Query.Types[1]; in AArch64LegalizerInfo() 364 const LLT &ValTy = Query.Types[0]; in AArch64LegalizerInfo() 370 return HasRCPC3 && Query.Types[ in AArch64LegalizerInfo() [all...] |
| /llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | CVTypeVisitor.cpp | 82 Error visitTypeStream(const CVTypeArray &Types); 83 Error visitTypeStream(CVTypeRange Types); 84 Error visitTypeStream(TypeCollection &Types); 143 Error CVTypeVisitor::visitTypeStream(const CVTypeArray &Types) { in visitTypeStream() argument 144 for (auto I : Types) { in visitTypeStream() 151 Error CVTypeVisitor::visitTypeStream(CVTypeRange Types) { in visitTypeStream() argument 152 for (auto I : Types) { in visitTypeStream() 159 Error CVTypeVisitor::visitTypeStream(TypeCollection &Types) { in visitTypeStream() argument 160 std::optional<TypeIndex> I = Types.getFirst(); in visitTypeStream() 162 CVType Type = Types.getType(*I); in visitTypeStream() [all …]
|
| H A D | RecordName.cpp | 29 TypeCollection &Types; member in __anon36d9db6a0111::TypeNameComputer 36 explicit TypeNameComputer(TypeCollection &Types) : Types(Types) {} in TypeNameComputer() argument 86 Name.append(Types.getTypeName(Indices[I])); in visitKnownRecord() 102 Name.append(Types.getTypeName(Indices[I])); in visitKnownRecord() 141 StringRef Ret = Types.getTypeName(Proc.getReturnType()); in visitKnownRecord() 142 StringRef Params = Types.getTypeName(Proc.getArgumentList()); in visitKnownRecord() 149 StringRef Ret = Types.getTypeName(MF.getReturnType()); in visitKnownRecord() 150 StringRef Class = Types.getTypeName(MF.getClassType()); in visitKnownRecord() 151 StringRef Params = Types.getTypeName(MF.getArgumentList()); in visitKnownRecord() 171 StringRef Pointee = Types.getTypeName(Ptr.getReferentType()); in visitKnownRecord() [all …]
|
| /llvm-project/compiler-rt/lib/orc/ |
| H A D | debug.h | 27 bool debugTypeEnabled(const char *Type, const char *Types); 34 const char *Types = ::orc_rt::DebugTypes.load(std::memory_order_relaxed); \ 35 if (!Types) \ 36 Types = initializeDebug(); \ 37 if (Types == &DebugTypesNone) \ 39 if (Types == &DebugTypesAll || ::orc_rt::debugTypeEnabled(TYPE, Types)) { \
|
| /llvm-project/clang/test/SemaTemplate/ |
| H A D | aggregate-deduction-candidate.cpp | 308 template <typename... T> struct Types {}; struct 309 template <typename... T> struct F : Types<T...>, T... {}; // cxx20-note 12 {{candidate}} cxx17-note 16 {{candidate}} \ 317 F f1 = {Types<X, Y, Z>{}, {}, {}}; // cxx17-error {{no viable}} 318 F f2 = {Types<X, Y, Z>{}, X{}, Y{}}; // cxx17-error {{no viable}} 319 F f3 = {Types<X, Y, Z>{}, X{}, W{}}; // expected-error {{no viable}} 320 F f4 = {Types<X>{}, {}, {}}; // expected-error {{no viable}} 322 F f5(Types<X, Y, Z>{}, {}, {}); // cxx17-error {{no viable}} 323 F f6(Types<X, Y, Z>{}, X{}, Y{}); // cxx17-error {{no viable}} 324 F f7(Types<X, Y, Z>{}, X{}, W{}); // expected-error {{no viable}} 325 F f8(Types< [all...] |
| /llvm-project/libc/config/baremetal/ |
| H A D | api.td | |
| /llvm-project/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/ |
| H A D | p9-0x.cpp | 3 template<typename ...Types> struct tuple; 22 template<typename ...Types> 23 struct tuple_same_with_int<tuple<Types...>, tuple<Types..., int>> { 31 template<typename ... Types> struct UselessPartialSpec; 33 template<typename ... Types, // expected-note{{non-deducible template parameter 'Types'}} 35 …struct UselessPartialSpec<Types..., Tail>; // expected-error{{class template partial specializatio…
|