| /llvm-project-15.0.7/llvm/test/TableGen/ |
| H A D | math.td | 14 class Int<int value> { 18 def int2 : Int<2>; 19 def int1022 : Int<1022>; 20 def int1024 : Int<1024>; 32 def v1 : Int<!and(1025, 1)>; 36 def v1019 : Int<!sub(int1022.Value, 3)>; 40 def v1023 : Int<!or(int1022.Value, 1)>; 48 def v12 : Int<!mul(4, 3)>; 77 def v9 : Int<!xor(v7.Value, 0x0E)>; 85 def v925 : Int<!sub(v924.Value, -1)>; [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/ |
| H A D | p7-cxx14.cpp | 19 using Int = int; typedef 27 using Int = decltype(x3a); typedef 28 using Int = decltype(x3d); typedef 32 using Int = decltype(x4a); typedef 37 using Int = decltype(x5a); typedef 73 using Int = decltype(f1a()); typedef 74 using Int = decltype(f1d()); typedef 78 using Int = decltype(f2a(0)); typedef 79 using Int = decltype(f2d(0)); typedef 83 using Int = decltype(f3a(0)); typedef [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | IntervalIterator.h | 72 Int->Nodes.push_back(BB); in addNodeToInterval() 83 llvm::append_range(Int->Nodes, I->Nodes); in addNodeToInterval() 180 Interval *Int = new Interval(Header); in ProcessInterval() local 187 IntStack.push_back(std::make_pair(Int, succ_begin(Int))); in ProcessInterval() 199 void ProcessNode(Interval *Int, NodeTy *Node) { in ProcessNode() argument 200 assert(Int && "Null interval == bad!"); in ProcessNode() 210 Int->Successors.push_back(NodeHeader); in ProcessNode() 217 Int->Successors.push_back(NodeHeader); in ProcessNode() 224 addNodeToInterval(Int, Node); in ProcessNode() 227 if (Int->isSuccessor(NodeHeader)) { in ProcessNode() [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | cast.c | 20 typedef int Int; typedef 33 (void) (Int) v; in testBool() 45 void testInt(Int v) { in testInt() 47 (void) (Int) v; in testInt() 69 (void) (Int) v; in testLong() 83 (void) (Int) v; in testFloat() 95 (void) (Int) v; in testDouble() 107 (void) (Int) v; in testCI() 119 (void) (Int) v; in testCLong() 131 (void) (Int) v; in testCFloat() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | OpenCLBuiltins.td | 1431 def : Builtin<name, [Int, Int], Attr.Convergent>; 1619 …ltin<"write_imagei", [Void, ImageType<imgTy, aQual>, VectorType<Int, 2>, Int, VectorType<Int, 4>]>; 1625 def : Builtin<"write_imagei", [Void, ImageType<imgTy, aQual>, Int, Int, VectorType<Int, 4>]>; 1630 …ltin<"write_imagei", [Void, ImageType<imgTy, aQual>, VectorType<Int, 2>, Int, VectorType<Int, 4>]>; 1635 …ltin<"write_imagei", [Void, ImageType<imgTy, aQual>, VectorType<Int, 4>, Int, VectorType<Int, 4>]>; 1641 …ltin<"write_imagei", [Void, ImageType<imgTy, aQual>, VectorType<Int, 4>, Int, VectorType<Int, 4>]>; 1653 …def : Builtin<"read_imagei", [VectorType<Int, 4>, ImageType<imgTy, aQual>, VectorType<Int, 2>, Int… 1658 …def : Builtin<"read_imagei", [VectorType<Int, 4>, ImageType<imgTy, aQual>, VectorType<Int, 4>, Int… 1717 def : Builtin<name, [Int, Int], Attr.Convergent>; 1750 def : Builtin<"sub_group_non_uniform_all", [Int, Int]>; [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-rc/ |
| H A D | tokenizer.test | 5 ; CHECK: Int: 1; int value = 1 7 ; CHECK-NEXT: Int: 2; int value = 2 9 ; CHECK-NEXT: Int: 3214L; int value = 3214 11 ; CHECK-NEXT: Int: 0x120894; int value = 1181844 12 ; CHECK-NEXT: Int: 032173; int value = 13435 13 ; CHECK-NEXT: Int: 2; int value = 2 20 ; CHECK-NEXT: Int: 7; int value = 7 23 ; CHECK-NEXT: Int: 0xabcdef; int value = 11259375 24 ; CHECK-NEXT: Int: 0xABCDEFl; int value = 11259375 35 ; CHECK-NEXT: Int: 42; int value = 42 [all …]
|
| /llvm-project-15.0.7/llvm/unittests/BinaryFormat/ |
| H A D | MsgPackDocumentTest.cpp | 41 ASSERT_EQ(SI.getKind(), Type::Int); in TEST() 63 ASSERT_EQ(SI.getKind(), Type::Int); in TEST() 77 ASSERT_EQ(SI.getKind(), Type::Int); in TEST() 93 ASSERT_EQ(SI.getKind(), Type::Int); in TEST() 98 ASSERT_EQ(SI.getKind(), Type::Int); in TEST() 115 ASSERT_EQ(FooS.getKind(), Type::Int); in TEST() 118 ASSERT_EQ(BarS.getKind(), Type::Int); in TEST() 133 ASSERT_EQ(FooS.getKind(), Type::Int); in TEST() 136 ASSERT_EQ(BarS.getKind(), Type::Int); in TEST() 139 ASSERT_EQ(FozS.getKind(), Type::Int); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/opt-viewer/Inputs/suppress/ |
| H A D | s.opt.yaml | 13 - FuncType: '(Int, Int, @thin CountableRange<Int>.Type) -> CountableRange<Int>' 27 - FuncType: '(@in_guaranteed CountableRange<Int>) -> IndexingIterator<CountableRange<Int>>' 41 - FuncType: '(@inout IndexingIterator<CountableRange<Int>>) -> Optional<Int>' 69 - FuncType: '(Int, @guaranteed Array<Int>) -> Int' 131 - FuncType: '(Builtin.Word) -> (@owned Array<Int>, Builtin.RawPointer)' 145 - FuncType: '(@owned Array<Int>, @thin Array<Int>.Type) -> @owned Array<Int>'
|
| /llvm-project-15.0.7/flang/unittests/Runtime/ |
| H A D | Numeric.cpp | 16 template <int KIND> using Int = CppTypeFor<TypeCategory::Integer, KIND>; typedef 38 std::numeric_limits<Int<8>>::max()); in TEST() 40 std::numeric_limits<Int<8>>::max()); in TEST() 59 EXPECT_EQ(RTNAME(ModInteger1)(Int<1>{8}, Int<1>(5)), 3); in TEST() 60 EXPECT_EQ(RTNAME(ModInteger4)(Int<4>{-8}, Int<4>(5)), -3); in TEST() 61 EXPECT_EQ(RTNAME(ModInteger2)(Int<2>{8}, Int<2>(-5)), 3); in TEST() 62 EXPECT_EQ(RTNAME(ModInteger8)(Int<8>{-8}, Int<8>(-5)), -3); in TEST() 70 EXPECT_EQ(RTNAME(ModuloInteger1)(Int<1>{8}, Int<1>(5)), 3); in TEST() 71 EXPECT_EQ(RTNAME(ModuloInteger4)(Int<4>{-8}, Int<4>(5)), 2); in TEST() 72 EXPECT_EQ(RTNAME(ModuloInteger2)(Int<2>{8}, Int<2>(-5)), -2); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | clang-abi-compat.cpp | 78 template<int N> struct Int {}; struct 86 template <typename T> void test1(typename T::template Int<1> a) {} in test1() 87 template void test1<A>(typename A::template Int<1> a); 94 template <typename T> void test2(typename T::template Int<EnumVal> a) {} in test2() 95 template void test2<A>(typename A::template Int<4> a); 98 template <int X> void test3(typename A::template Int<X> a) {} in test3() 99 template void test3<3>(A::Int<3> a); 129 template <class T> void test7(typename T::template Int<sizeof(char)> a) {} in test7() 130 template void test7<A>(A::Int<1>);
|
| /llvm-project-15.0.7/clang/test/PCH/ |
| H A D | cxx-templates.cpp | 88 struct Int { struct 89 Int(int); 90 friend Int operator+(Int, Int); 92 Int &g(Int, int, double); 93 Int &test = NestedExpansion<char, char, char>().f(0, 1, 2, Int(3), 4, 5.0);
|
| /llvm-project-15.0.7/llvm/test/tools/opt-viewer/Inputs/unicode-function-name/ |
| H A D | s.swift | 3 func • (a: Int, b: Int) -> Int { in •() 8 func g(a: Int) -> Int{ in g()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SPIRV/ |
| H A D | AtomicCompareExchange.ll | 3 ; CHECK-SPIRV: %[[#Int:]] = OpTypeInt 32 0 4 ; CHECK-SPIRV-DAG: %[[#MemScope_Device:]] = OpConstant %[[#Int]] 1 5 ; CHECK-SPIRV-DAG: %[[#MemSemEqual_SeqCst:]] = OpConstant %[[#Int]] 16 6 ; CHECK-SPIRV-DAG: %[[#MemSemUnequal_Acquire:]] = OpConstant %[[#Int]] 2 7 ; CHECK-SPIRV-DAG: %[[#Constant_456:]] = OpConstant %[[#Int]] 456 8 ; CHECK-SPIRV-DAG: %[[#Constant_128:]] = OpConstant %[[#Int]] 128 10 ; CHECK-SPIRV-DAG: %[[#Struct:]] = OpTypeStruct %[[#Int]] %[[#Bool]] 17 ; CHECK-SPIRV: %[[#Value:]] = OpLoad %[[#Int]] %[[#Value_ptr]] 18 ; CHECK-SPIRV: %[[#Res:]] = OpAtomicCompareExchange %[[#Int]] %[[#Pointer]] %[[#MemScope_Device]] 47 ; CHECK-SPIRV: %[[#Res_1:]] = OpAtomicCompareExchange %[[#Int]] %[[#Ptr]] %[[#MemScope_Device]]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | AtomicOrdering.h | 44 template <typename Int> inline bool isValidAtomicOrderingCABI(Int I) { in isValidAtomicOrderingCABI() 45 return (Int)AtomicOrderingCABI::relaxed <= I && in isValidAtomicOrderingCABI() 46 I <= (Int)AtomicOrderingCABI::seq_cst; in isValidAtomicOrderingCABI() 75 template <typename Int> inline bool isValidAtomicOrdering(Int I) { in isValidAtomicOrdering() 76 return static_cast<Int>(AtomicOrdering::NotAtomic) <= I && in isValidAtomicOrdering() 77 I <= static_cast<Int>(AtomicOrdering::SequentiallyConsistent); in isValidAtomicOrdering()
|
| /llvm-project-15.0.7/clang/test/CXX/basic/basic.start/basic.start.main/ |
| H A D | p2.cpp | 24 typedef int Int; typedef 28 Int main(Int argc, Carp argv[]) { in main() 34 typedef int Int; typedef 38 Int main(Int argc, Carp argv[], Char *env[]) { in main()
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | find-unexpanded-packs.cpp | 136 template<typename T> using Int = int; typedef 140 (Int<Ts>(), ...); in HiddenPack() 141 (Int<Ts>{}, ...); in HiddenPack() 146 Int<Ts>(); in HiddenPack() 149 Int<Ts>{}; in HiddenPack() 163 Int<Ts>(); // expected-error {{unexpanded}} in HiddenPackInvalid() 164 Int<Ts>{}; // expected-error {{unexpanded}} in HiddenPackInvalid()
|
| H A D | temp_arg_template_cxx1z.cpp | 77 template<int> struct Int; 83 TInt<Int> ii; 89 TIntPtr<Int> ipi; // expected-error {{different template parameters}} 94 TAuto<Int> ai; // FIXME: ill-formed (?) 99 TAutoPtr<Int> api; // FIXME: ill-formed (?) 103 TDecltypeAuto<Int> dai; // FIXME: ill-formed (?)
|
| /llvm-project-15.0.7/clang/test/CXX/expr/expr.const/ |
| H A D | p3-0x.cpp | 69 using Int = A<E6>; typedef 70 using Int = A<EE::EE32>; // expected-error {{not implicitly convertible}} typedef 71 using Int = A<(int)EE::EE32>; typedef 72 using Int = A<200>; typedef 73 using Int = A<1000>; // expected-error {{template argument evaluates to 1000, which cannot be narro… typedef 74 using Int = A<-3>; // expected-error {{template argument evaluates to -3, which cannot be narrowed … typedef 95 using Int = A<1.0>; // expected-error {{conversion from 'double' to 'unsigned char' is not allowed … typedef
|
| /llvm-project-15.0.7/clang/include/clang/Serialization/ |
| H A D | ContinuousRangeMap.h | 36 template <typename Int, typename V, unsigned InitialCapacity> 39 using value_type = std::pair<Int, V>; 51 bool operator ()(const_reference L, Int R) const { in operator() 54 bool operator ()(Int L, const_reference R) const { in operator() 57 bool operator ()(Int L, Int R) const { in operator() 93 iterator find(Int K) { in find() 102 const_iterator find(Int K) const { in find()
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | annotate-tokens.c | 12 typedef int Int; typedef 15 (void)__builtin_va_arg(va, Int); in g() 16 (void)__builtin_types_compatible_p(Int, Int); in g() 36 __attribute__((unavailable)) Int __attribute__((unavailable)) test() __attribute__((unavailable));
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | template-default-param-through-using.cpp | 5 template<int I > struct Int; 12 using llvm::Int; 24 template<int I = 5> struct Int{}; struct 31 Int<> i;
|
| /llvm-project-15.0.7/clang/test/ASTMerge/struct/Inputs/ |
| H A D | struct1.c | 1 typedef int Int; typedef 6 Int field1; 14 Int field1; 61 Int i; 67 Int i;
|
| /llvm-project-15.0.7/clang/utils/TableGen/ |
| H A D | MveEmitter.cpp | 1544 const ACLEIntrinsic *Int; member 1573 if (Int.headerOnly()) in EmitBuiltinCG() 1579 OI.Int = ∬ in EmitBuiltinCG() 1645 const ACLEIntrinsic *Int = OI_prelim.Int; in EmitBuiltinCG() local 1650 OI.Int = OI_prelim.Int; in EmitBuiltinCG() 1717 if (Int.headerOnly()) in EmitBuiltinAliases() 1720 Int.polymorphic() ? StringTable.GetOrAddStringOffset(Int.shortName()) in EmitBuiltinAliases() 1740 if (Int.headerOnly()) in GroupSemaChecks() 1828 Polymorphic ? Int.shortName() : Int.fullName(); in EmitHeader() 1957 if (Int.polymorphic()) { in EmitBuiltinDef() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/ |
| H A D | MsgPackDocument.h | 55 int64_t Int; member 83 assert(getKind() == Type::Int); in getInt() 84 return Int; in getInt() 103 assert(getKind() == Type::Int); in getInt() 104 return Int; in getInt() 161 case Type::Int: 162 return Lhs.Int < Rhs.Int; 315 auto N = DocNode(&KindAndDocs[size_t(Type::Int)]); in getNode() 316 N.Int = V; in getNode() 322 auto N = DocNode(&KindAndDocs[size_t(Type::Int)]); in getNode() [all …]
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | SValTest.cpp | 208 QualType Int = Context.IntTy; variable 212 EXPECT_EQ(Int, X.getType(Context)); 216 EXPECT_EQ(Int, Y.getType(Context)); 221 EXPECT_EQ(Int, Z.getType(Context)); 239 QualType Int = Context.IntTy; variable 245 EXPECT_EQ(Int, APtrTy->getPointeeType()); 251 EXPECT_EQ(Int, BPtrTy->getPointeeType()); 257 EXPECT_EQ(Int, CPtrTy->getPointeeType()); 263 EXPECT_EQ(Int, DRefTy->getPointeeType()); 269 EXPECT_EQ(Int, EPtrTy->getPointeeType()); [all …]
|