/llvm-project/libcxxabi/test/ |
H A D | unwind_06.pass.cpp | 21 // Compile with -Os to get compiler uses float registers to hold float variables 25 double (* volatile get)(int) = get_; variable 30 double a = get(0); in try1() 31 double b = get(1); in try1() 33 a += get(1) + b; in try1() 35 return get(0)+a+b; in try1() 39 double a = get(0); in try2() 40 double b = get(1); in try2() 41 double c = get(2); in try2() 43 a += get(1) + b + c; in try2() [all …]
|
/llvm-project/mlir/unittests/Dialect/Utils/ |
H A D | StructuredOpsUtilsTest.cpp | 26 auto mapA = AffineMapAttr::get(AffineMap::get(3, 0, {m, k}, &context)); in TEST() 27 auto mapB = AffineMapAttr::get(AffineMap::get(3, 0, {k, n}, &context)); in TEST() 28 auto mapC = AffineMapAttr::get(AffineMap::get(3, 0, {m, n}, &context)); in TEST() 29 auto maps = ArrayAttr::get(&context, {mapA, mapB, mapC}); in TEST() 39 auto mapA = AffineMapAttr::get(AffineMap::get(3, 0, {m, k}, &context)); in TEST() 40 auto mapB = AffineMapAttr::get(AffineMap::get(3, 0, {k, n}, &context)); in TEST() 41 auto mapC = AffineMapAttr::get(AffineMap::get(3, 0, {m, n}, &context)); in TEST() 42 auto maps = ArrayAttr::get(&context, {mapA, mapB, mapC}); in TEST() 52 auto mapA = AffineMapAttr::get(AffineMap::get(3, 0, {m, k}, &context)); in TEST() 53 auto mapB = AffineMapAttr::get(AffineMap::get(3, 0, {k, n}, &context)); in TEST() [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/ |
H A D | redundant-smartptr-get.cpp | 1 // RUN: %check_clang_tidy %s readability-redundant-smartptr-get %t 11 T* get() const; 19 T* get() const; 49 Bar* get(); 53 int* get(); 59 Bar* get(); in Positive() 62 Bar* get(); in Positive() 68 int* get(); in Positive() 70 T* get(); in Positive() 78 BarPtr().get() in Positive() [all...] |
H A D | redundant-smartptr-get-msvc.cpp | 1 // RUN: %check_clang_tidy %s readability-redundant-smartptr-get %t 15 T* get() const; 25 T* get() const; 38 (*up->get()).Do(); in Positive() 39 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant get() call in Positive() 40 // CHECK-MESSAGES: (*up->get()).Do(); in Positive() 45 bool bb = uu.get() == nullptr; in Positive() 46 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: redundant get() call in Positive() 47 // CHECK-MESSAGES: uu.get() == nullptr; in Positive() 50 if (up->get()); in Positive() [all …]
|
/llvm-project/flang/unittests/Optimizer/ |
H A D | FIRTypesTest.cpp | 28 mlir::Type noneTy = mlir::NoneType::get(&context); in TEST_F() 30 fir::SequenceType::get({fir::SequenceType::getUnknownExtent()}, noneTy); in TEST_F() 31 mlir::Type recTy = fir::RecordType::get(&context, "dt"); in TEST_F() 33 fir::SequenceType::get({fir::SequenceType::getUnknownExtent()}, recTy); in TEST_F() 36 mlir::Type ty = fir::ClassType::get(recTy); in TEST_F() 38 EXPECT_TRUE(fir::isPolymorphicType(fir::ReferenceType::get(ty))); in TEST_F() 41 ty = fir::ClassType::get(fir::SequenceType::get({10}, recTy)); in TEST_F() 45 ty = fir::ClassType::get(seqRecTy); in TEST_F() 49 ty = fir::ClassType::get(fi in TEST_F() [all...] |
/llvm-project/llvm/test/CodeGen/WebAssembly/ |
H A D | atomicrmw-uinc-udec-wrap.ll | 10 ; WASM32-NEXT: local.get 0 12 ; WASM32-NEXT: local.get 0 17 ; WASM32-NEXT: local.get 2 18 ; WASM32-NEXT: local.get 1 24 ; WASM32-NEXT: local.get 2 31 ; WASM64-NEXT: local.get 0 33 ; WASM64-NEXT: local.get 0 38 ; WASM64-NEXT: local.get 2 39 ; WASM64-NEXT: local.get 1 45 ; WASM64-NEXT: local.get 2 [all …]
|
H A D | vararg-frame.ll | 28 ; CHECK-NEXT: global.get __stack_pointer 33 ; CHECK-NEXT: local.get 1 34 ; CHECK-NEXT: local.get 0 36 ; CHECK-NEXT: local.get 1 38 ; CHECK-NEXT: local.get 1 54 ; CHECK-NEXT: global.get __stack_pointer 59 ; CHECK-NEXT: local.get 1 60 ; CHECK-NEXT: local.get 0 62 ; CHECK-NEXT: local.get 1 64 ; CHECK-NEXT: local.get 1 [all …]
|
H A D | i128.ll | 16 ; CHECK-NEXT: local.get $push8=, 0 17 ; CHECK-NEXT: local.get $push7=, 1 18 ; CHECK-NEXT: local.get $push6=, 3 22 ; CHECK-NEXT: local.get $push13=, 0 23 ; CHECK-NEXT: local.get $push10=, 2 24 ; CHECK-NEXT: local.get $push9=, 4 26 ; CHECK-NEXT: local.get $push12=, 3 27 ; CHECK-NEXT: local.get $push11=, 1 41 ; CHECK-NEXT: local.get $push7=, 0 42 ; CHECK-NEXT: local.get [all...] |
H A D | multivalue_libcall.ll | 13 ; MULTIVALUE-NEXT: local.get 0 14 ; MULTIVALUE-NEXT: local.get 1 15 ; MULTIVALUE-NEXT: local.get 2 16 ; MULTIVALUE-NEXT: local.get 3 24 ; NO_MULTIVALUE-NEXT: global.get __stack_pointer 29 ; NO_MULTIVALUE-NEXT: local.get 5 30 ; NO_MULTIVALUE-NEXT: local.get 1 31 ; NO_MULTIVALUE-NEXT: local.get 2 32 ; NO_MULTIVALUE-NEXT: local.get 3 33 ; NO_MULTIVALUE-NEXT: local.get [all...] |
H A D | fpclamptosat_vec.ll | 11 ; CHECK-NEXT: local.get 0 15 ; CHECK-NEXT: local.get 0 22 ; CHECK-NEXT: local.get 0 23 ; CHECK-NEXT: local.get 1 29 ; CHECK-NEXT: local.get 0 30 ; CHECK-NEXT: local.get 1 33 ; CHECK-NEXT: local.get 0 51 ; CHECK-NEXT: local.get 0 56 ; CHECK-NEXT: local.get 0 64 ; CHECK-NEXT: local.get [all...] |
H A D | simd-select.ll | 15 ; CHECK-NEXT: local.get 1 16 ; CHECK-NEXT: local.get 2 17 ; CHECK-NEXT: local.get 0 32 ; CHECK-NEXT: local.get 2 33 ; CHECK-NEXT: local.get 3 34 ; CHECK-NEXT: local.get 0 35 ; CHECK-NEXT: local.get 1 49 ; CHECK-NEXT: local.get 1 50 ; CHECK-NEXT: local.get 2 51 ; CHECK-NEXT: local.get 0 [all …]
|
H A D | libcalls.ll | 35 ; CHECK-NEXT: global.get $push18=, __stack_pointer 40 ; CHECK-NEXT: local.get $push40=, 6 43 ; CHECK-NEXT: local.get $push44=, 1 44 ; CHECK-NEXT: local.get $push43=, 2 45 ; CHECK-NEXT: local.get $push42=, 3 46 ; CHECK-NEXT: local.get $push41=, 4 48 ; CHECK-NEXT: local.get $push45=, 6 51 ; CHECK-NEXT: local.get $push46=, 6 53 ; CHECK-NEXT: local.get $push47=, 6 55 ; CHECK-NEXT: local.get [all...] |
H A D | simd-vector-trunc.ll | 13 ; CHECK-NEXT: local.get 0 17 ; CHECK-NEXT: local.get 1 18 ; CHECK-NEXT: local.get 8 21 ; CHECK-NEXT: local.get 2 22 ; CHECK-NEXT: local.get 8 24 ; CHECK-NEXT: local.get 3 25 ; CHECK-NEXT: local.get 8 29 ; CHECK-NEXT: local.get 4 30 ; CHECK-NEXT: local.get 8 32 ; CHECK-NEXT: local.get 5 [all …]
|
/llvm-project/clang/test/ExtractAPI/ |
H A D | objc_interface.m | 102 // RUN: FileCheck %s --input-file %t/output.symbols.json --check-prefix GET 104 // GET: "!testRelLabel": "memberOf $ c:objc(cs)Super(cm)getWithProperty: $ c:objc(cs)Super" 105 // GET-LABEL: "!testLabel": "c:objc(cs)Super(cm)getWithProperty:" 106 // GET: "accessLevel": "public", 107 // GET: "declarationFragments": [ 108 // GET-NEXT: { 109 // GET-NEXT: "kind": "text", 110 // GET-NEXT: "spelling": "+ (" 111 // GET-NEXT: }, 112 // GET-NEXT: { [all …]
|
/llvm-project/llvm/test/Analysis/CostModel/RISCV/ |
H A D | active_lane_mask.ll | 6 …t of 32 for instruction: %mask_nxv16i1_i64 = call <vscale x 16 x i1> @llvm.get.active.lane.mask.nx… 7 …ost of 16 for instruction: %mask_nxv8i1_i64 = call <vscale x 8 x i1> @llvm.get.active.lane.mask.nx… 8 …cost of 8 for instruction: %mask_nxv4i1_i64 = call <vscale x 4 x i1> @llvm.get.active.lane.mask.nx… 9 …cost of 4 for instruction: %mask_nxv2i1_i64 = call <vscale x 2 x i1> @llvm.get.active.lane.mask.nx… 10 …cost of 2 for instruction: %mask_nxv1i1_i64 = call <vscale x 1 x i1> @llvm.get.active.lane.mask.nx… 11 …t of 16 for instruction: %mask_nxv16i1_i32 = call <vscale x 16 x i1> @llvm.get.active.lane.mask.nx… 12 …cost of 8 for instruction: %mask_nxv8i1_i32 = call <vscale x 8 x i1> @llvm.get.active.lane.mask.nx… 13 …cost of 4 for instruction: %mask_nxv4i1_i32 = call <vscale x 4 x i1> @llvm.get.active.lane.mask.nx… 14 …cost of 2 for instruction: %mask_nxv2i1_i32 = call <vscale x 2 x i1> @llvm.get.active.lane.mask.nx… 15 …cost of 2 for instruction: %mask_nxv1i1_i32 = call <vscale x 1 x i1> @llvm.get.active.lane.mask.nx… [all …]
|
/llvm-project/mlir/python/mlir/ |
H A D | ir.py | 26 return AffineMapAttr.get(x) 31 return IntegerSetAttr.get(x) 36 return BoolAttr.get(x, context=context) 41 return DictAttr.get(x, context=context) 46 return IntegerAttr.get(IndexType.get(context=context), x) 51 return IntegerAttr.get(IntegerType.get_signless(1, context=context), x) 56 return IntegerAttr.get(IntegerType.get_signless(8, context=context), x) 61 return IntegerAttr.get(IntegerType.get_signless(16, context=context), x) 66 return IntegerAttr.get(IntegerTyp [all...] |
/llvm-project/flang/unittests/Runtime/ |
H A D | CommandTest.cpp | 123 EXPECT_EQ(F(value.get(), length.get(), errmsg.get()), expectedStatus); in CheckValue() 124 CheckDescriptorEqStr(value.get(), expectedValueStr); in CheckValue() 125 CheckDescriptorEqInt(length.get(), expectedLength); in CheckValue() 126 CheckDescriptorEqStr(errmsg.get(), expectedErrMsg); in CheckValue() 194 RTNAME(GetCommandArgument)(n, value.get(), length.get(), err.get()), 0); in CheckMissingArgumentValue() 197 CheckDescriptorEqStr(value.get(), space in CheckMissingArgumentValue() [all...] |
/llvm-project/libcxx/test/std/utilities/memory/allocator.uses/allocator.uses.construction/ |
H A D | uses_allocator_construction_args.pass.cpp | 38 assert(std::get<1>(ret).get_data() == 12); in testOne() 42 assert(std::get<0>(ret).get_data() == 12); in testOne() 54 assert(std::get<1>(std::get<1>(ret)).get_data() == 12); in testOne() 55 assert(std::get<0>(std::get<2>(ret)).get_data() == 12); in testOne() 62 assert(std::get<1>(std::get<1>(ret)).get_data() == 12); in testOne() 63 assert(std::get<0>(std::get< in testOne() [all...] |
/llvm-project/llvm/unittests/IR/ |
H A D | ValueHandleTest.cpp | 27 : ConstantV(ConstantInt::get(Type::getInt32Ty(Context), 0)), in ValueHandle() 37 WeakVH WVH(BitcastV.get()); in TEST_F() 38 EXPECT_EQ(BitcastV.get(), WVH); in TEST_F() 47 WVH = BitcastV.get(); in TEST_F() 49 EXPECT_EQ(WVH, BitcastV.get()); in TEST_F() 55 WeakTrackingVH WVH(BitcastV.get()); in TEST_F() 56 EXPECT_EQ(BitcastV.get(), WVH); in TEST_F() 67 WeakTrackingVH BitcastWVH(BitcastV.get()); in TEST_F() 71 EXPECT_TRUE(BitcastV.get() == BitcastWVH); in TEST_F() 72 EXPECT_TRUE(BitcastWVH == BitcastV.get()); in TEST_F() [all …]
|
H A D | ValueMapTest.cpp | 30 : ConstantV(ConstantInt::get(Type::getInt32Ty(Context), 0)), in ValueMapTest() 48 VM[this->BitcastV.get()] = 7; in TYPED_TEST() 49 EXPECT_EQ(7, VM.lookup(this->BitcastV.get())); in TYPED_TEST() 50 EXPECT_EQ(0u, VM.count(this->AddV.get())); in TYPED_TEST() 51 this->BitcastV->replaceAllUsesWith(this->AddV.get()); in TYPED_TEST() 52 EXPECT_EQ(7, VM.lookup(this->AddV.get())); in TYPED_TEST() 53 EXPECT_EQ(0u, VM.count(this->BitcastV.get())); in TYPED_TEST() 55 EXPECT_EQ(0u, VM.count(this->AddV.get())); in TYPED_TEST() 56 EXPECT_EQ(0u, VM.count(this->BitcastV.get())); in TYPED_TEST() 67 VM[this->BitcastV.get()] = 7; in TYPED_TEST() [all …]
|
H A D | ConstantsTest.cpp | 26 IntegerType *Int1 = IntegerType::get(Context, 1); in TEST() 27 Constant *One = ConstantInt::get(Int1, 1, true); in TEST() 28 Constant *Zero = ConstantInt::get(Int1, 0); in TEST() 29 Constant *NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST() 31 Constant *Poison = PoisonValue::get(Int1); in TEST() 99 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue()); in TEST() 100 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue()); in TEST() 102 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue()); in TEST() 107 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue()); in TEST() 112 Type *PtrTy = PointerType::get( in TEST() [all...] |
/llvm-project/clang/lib/Format/ |
H A D | FormatToken.h | 1040 kw_final = &IdentTable.get("final"); in AdditionalKeywords() 1041 kw_override = &IdentTable.get("override"); in AdditionalKeywords() 1042 kw_in = &IdentTable.get("in"); in AdditionalKeywords() 1043 kw_of = &IdentTable.get("of"); in AdditionalKeywords() 1044 kw_CF_CLOSED_ENUM = &IdentTable.get("CF_CLOSED_ENUM"); in AdditionalKeywords() 1045 kw_CF_ENUM = &IdentTable.get("CF_ENUM"); in AdditionalKeywords() 1046 kw_CF_OPTIONS = &IdentTable.get("CF_OPTIONS"); in AdditionalKeywords() 1047 kw_NS_CLOSED_ENUM = &IdentTable.get("NS_CLOSED_ENUM"); in AdditionalKeywords() 1048 kw_NS_ENUM = &IdentTable.get("NS_ENUM"); in AdditionalKeywords() 1049 kw_NS_ERROR_ENUM = &IdentTable.get("NS_ERROR_ENU in AdditionalKeywords() [all...] |
/llvm-project/mlir/test/python/ir/ |
H A D | affine_map.py | 32 d0 = AffineDimExpr.get(0) 33 d1 = AffineDimExpr.get(1) 34 c2 = AffineConstantExpr.get(2) 37 map0 = AffineMap.get(2, 3, []) 41 map1 = AffineMap.get(2, 3, [d1, c2]) 45 map2 = AffineMap.get(0, 0, [c2]) 49 map3 = AffineMap.get(2, 0, [d0, d1]) 53 map4 = AffineMap.get(2, 0, [d1]) 60 assert map1 == AffineMap.get(2, 3, [d1, c2]) 61 assert AffineMap.get(0, 0, []) == AffineMap.get_empty() [all …]
|
H A D | affine_expr.py | 75 a2 = AffineConstantExpr.get(42) 89 d11 = AffineDimExpr.get(1) 90 d2 = AffineDimExpr.get(2) 111 s11 = AffineSymbolExpr.get(1) 112 s2 = AffineSymbolExpr.get(2) 132 d1 = AffineDimExpr.get(1) 133 d2 = AffineDimExpr.get(2) 159 d1 = AffineDimExpr.get(1) 160 c2 = AffineConstantExpr.get(2) 187 d1 = AffineDimExpr.get(1) [all …]
|
/llvm-project/mlir/unittests/IR/ |
H A D | AttributeTest.cpp | 27 RankedTensorType shape = RankedTensorType::get({2, 1}, eltType); in testSplat() 30 DenseElementsAttr splat = DenseElementsAttr::get(shape, splatElt); in testSplat() 34 DenseElementsAttr::get(shape, llvm::ArrayRef({splatElt, splatElt})); in testSplat() 44 IntegerType boolTy = IntegerType::get(&context, 1); in TEST() 45 RankedTensorType shape = RankedTensorType::get({2, 2}, boolTy); in TEST() 49 DenseElementsAttr trueSplat = DenseElementsAttr::get(shape, true); in TEST() 52 DenseElementsAttr falseSplat = DenseElementsAttr::get(shape, false); in TEST() 58 auto detectedSplat = DenseElementsAttr::get(shape, {true, true, true, true}); in TEST() 61 detectedSplat = DenseElementsAttr::get(shape, {false, false, false, false}); in TEST() 66 IntegerType boolTy = IntegerType::get( in TEST() [all...] |