Home
last modified time | relevance | path

Searched refs:apply (Results 1 – 25 of 598) sorted by relevance

12345678910>>...24

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/
H A DExpandAutoTypeTests.cpp40 EXPECT_EQ(apply("[[auto]] i = 0;"), "int i = 0;"); in TEST_F()
41 EXPECT_EQ(apply("au^to i = 0;"), "int i = 0;"); in TEST_F()
43 EXPECT_EQ(apply("^auto C = ns::Class::Nested();"), in TEST_F()
49 EXPECT_THAT(apply("au^to x = doesnt_exist(); // error-ok"), in TEST_F()
52 EXPECT_THAT(apply("au^to x = &ns::Func;"), in TEST_F()
57 EXPECT_EQ(apply("au^to x = inl_ns::Visible();"), in TEST_F()
63 EXPECT_EQ(apply(R"cpp(au^to x = "test";)cpp"), in TEST_F()
66 EXPECT_EQ(apply("ns::Class * foo() { au^to c = foo(); }"), in TEST_F()
72 EXPECT_EQ(apply("dec^ltype(auto) x = 10;"), "int x = 10;"); in TEST_F()
73 EXPECT_EQ(apply("decltype(au^to) x = 10;"), "int x = 10;"); in TEST_F()
[all …]
H A DExtractFunctionTests.cpp26 EXPECT_EQ(apply("for(;;) [[1+2; 1+2;]]"), "unavailable"); in TEST_F()
28 EXPECT_EQ(apply("int x = 0; [[x++;]]"), "unavailable"); in TEST_F()
32 EXPECT_THAT(apply("int [[x = 0]];"), "unavailable"); in TEST_F()
45 EXPECT_THAT(apply(" if(true) [[if (false) return;]] "), in TEST_F()
96 EXPECT_EQ(apply(ConstCheckInput), ConstCheckOutput); in TEST_F()
134 EXPECT_EQ(apply(MethodInput), MethodCheckOutput); in TEST_F()
168 EXPECT_EQ(apply(TemplateFailInput), "unavailable"); in TEST_F()
181 EXPECT_EQ(apply(MacroInput), MacroOutput); in TEST_F()
191 EXPECT_EQ(apply(CompoundFailInput), "unavailable"); in TEST_F()
264 EXPECT_EQ(apply(NestedOutOfLineSource, &EditedFiles), in TEST_F()
[all …]
H A DDefineInlineTests.cpp250 EXPECT_EQ(apply(Test), Expected); in TEST_F()
276 EXPECT_EQ(apply(Test), Expected); in TEST_F()
310 EXPECT_EQ(apply(Test), Expected); in TEST_F()
348 EXPECT_EQ(apply(Test), Expected); in TEST_F()
929 apply(R"cpp(#include "a.h" in TEST_F()
937 apply(R"cpp(#include "a.h" in TEST_F()
945 apply(R"cpp(#include "a.h" in TEST_F()
953 apply(R"cpp(#include "a.h" in TEST_F()
961 apply(R"cpp(#include "a.h" in TEST_F()
970 apply(R"cpp(#include "a.h" in TEST_F()
[all …]
H A DMemberwiseConstructorTests.cpp47 EXPECT_EQ(apply("struct ^S{Move M; Copy C; int I; int J=4;};"), in TEST_F()
84 EXPECT_THAT(apply(With("Immovable")), Fail); in TEST_F()
85 EXPECT_THAT(apply(With("MoveOnly")), Move); in TEST_F()
86 EXPECT_THAT(apply(With("CopyOnly")), CopyRef); in TEST_F()
87 EXPECT_THAT(apply(With("CopyTrivial")), Copy); in TEST_F()
88 EXPECT_THAT(apply(With("int")), Copy); in TEST_F()
89 EXPECT_THAT(apply(With("IntAlias")), Copy); in TEST_F()
90 EXPECT_THAT(apply(With("Immovable*")), Copy); in TEST_F()
91 EXPECT_THAT(apply(With("Immovable&")), Copy); in TEST_F()
93 EXPECT_THAT(apply("template <typename T>" + With("T")), Move); in TEST_F()
[all …]
H A DExpandMacroTests.cpp36 EXPECT_EQ(apply("^FOO BAR FOO"), "1 2 3 BAR FOO"); in TEST_F()
37 EXPECT_EQ(apply("FOO BAR ^FOO"), "FOO BAR 1 2 3"); in TEST_F()
39 EXPECT_EQ(apply("F^UNC(2)"), "2 + 2 + 2"); in TEST_F()
42 EXPECT_EQ(apply("int a ^EMPTY;"), "int a ;"); in TEST_F()
43 EXPECT_EQ(apply("int a ^EMPTY_FN(1 2 3);"), "int a ;"); in TEST_F()
44 EXPECT_EQ(apply("int a = 123 ^EMPTY EMPTY_FN(1);"), in TEST_F()
46 EXPECT_EQ(apply("int a = 123 ^EMPTY_FN(1) EMPTY;"), "int a = 123 EMPTY;"); in TEST_F()
47 EXPECT_EQ(apply("int a = 123 EMPTY_FN(1) ^EMPTY;"), in TEST_F()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Ddependent-type-identity.cpp13 struct apply { struct
48 void f4(typename U::template apply<U>*);
49 void f4(typename type::template apply<T>*);
53 void f5(typename U::template apply<U>::type*);
54 void f5(typename U::template apply<T>::type*);
55 void f5(typename type::template apply<T>::type*);
59 void f6(typename N::X2<U>::template apply<U> *);
60 void f6(typename N::X2<U>::template apply<T> *);
64 void f7(typename N::X2<U>::template apply<U> *);
65 void f7(typename N::X2<U>::template apply<T> *);
[all …]
H A Dtypename-specifier-4.cpp16 typedef typename MetaFun::template apply<T1, T2> inner;
24 struct apply { struct
32 typename make_pair::template apply<int, float>,
37 make_pair::apply<int, float> argument
43 struct apply { struct
44 typedef typename MetaFun::template apply<T2, T1> new_metafun; argument
49 int a2[is_same<swap_and_apply2<make_pair>::apply<int, float>::type,
55 struct apply { struct
56 typedef typename MetaFun::template apply<T2, T1>::type type; argument
60 int a3[is_same<swap_and_apply2b<make_pair>::apply<int, float>::type,
/llvm-project-15.0.7/llvm/lib/XRay/
H A DFDRRecords.cpp18 Error BufferExtents::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::BufferExtents
19 Error WallclockRecord::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::WallclockRecord
20 Error NewCPUIDRecord::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::NewCPUIDRecord
21 Error TSCWrapRecord::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::TSCWrapRecord
22 Error CustomEventRecord::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::CustomEventRecord
23 Error CallArgRecord::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::CallArgRecord
24 Error PIDRecord::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::PIDRecord
25 Error NewBufferRecord::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::NewBufferRecord
26 Error EndBufferRecord::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::EndBufferRecord
27 Error FunctionRecord::apply(RecordVisitor &V) { return V.visit(*this); } in apply() function in llvm::xray::FunctionRecord
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/
H A Dp6.cpp10 apply(0, &temp); in test0()
11 apply(0, &temp<>); in test0()
14 apply(0, &temp<int>); in test0()
17 apply(0, &temp<long>); // expected-error {{no matching function for call to 'apply'}} in test0()
25 apply(0, &over); in test1()
28 apply(0L, &over); // expected-error {{no matching function for call to 'apply'}} in test1()
36 apply(0, &over); in test2()
42 apply(0, &temp2); in test3()
43 apply(0, &temp2<>); in test3()
44 apply(0, &temp2<int>); in test3()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
H A Dapply_large_arity.pass.cpp89 assert(std::apply(val_fn, a)); in test_all()
90 assert(std::apply(ref_fn, a)); in test_all()
91 assert(std::apply(cref_fn, a)); in test_all()
96 assert(std::apply(val_fn, a)); in test_all()
97 assert(std::apply(cref_fn, a)); in test_all()
101 assert(std::apply(val_fn, a)); in test_all()
102 assert(std::apply(ref_fn, a)); in test_all()
103 assert(std::apply(cref_fn, a)); in test_all()
108 assert(std::apply(val_fn, a)); in test_all()
126 assert(std::apply(val_fn, a)); in test_one()
[all …]
H A Dapply.pass.cpp47 static_assert(std::apply(sum_obj, t) == 0, ""); in test_constexpr_evaluation()
54 static_assert(std::apply(sum_obj, t) == 42, ""); in test_constexpr_evaluation()
61 static_assert(std::apply(sum_obj, t) == 143, ""); in test_constexpr_evaluation()
68 static_assert(std::apply(sum_obj, t) == 143, ""); in test_constexpr_evaluation()
75 static_assert(std::apply(sum_obj, t) == 142, ""); in test_constexpr_evaluation()
82 static_assert(std::apply(sum_obj, t) == 142, ""); in test_constexpr_evaluation()
136 auto ret = std::apply(obj, std::forward<Tuple>(t)); in check_apply_quals_and_types()
195 LIBCPP_ASSERT_NOEXCEPT(std::apply(nec, t)); in test_noexcept()
196 ASSERT_NOT_NOEXCEPT(std::apply(tc, t)); in test_noexcept()
202 ASSERT_NOT_NOEXCEPT(std::apply(nec, t)); in test_noexcept()
[all …]
H A Dapply_extended_types.pass.cpp106 assert(1 == std::apply(mem1, t)); in test_ext_int_0()
114 assert(1 == std::apply(mem1, t)); in test_ext_int_0()
122 assert(1 == std::apply(mem1, t)); in test_ext_int_0()
130 assert(1 == std::apply(mem1, t)); in test_ext_int_0()
138 assert(1 == std::apply(mem2, t)); in test_ext_int_0()
146 assert(1 == std::apply(mem2, t)); in test_ext_int_0()
154 assert(1 == std::apply(mem2, t)); in test_ext_int_0()
162 assert(1 == std::apply(mem2, t)); in test_ext_int_0()
215 assert(2 == std::apply(mem1, t)); in test_ext_int_1()
223 assert(3 == std::apply(mem1, t)); in test_ext_int_1()
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/VectorToGPU/
H A Dvector-to-mma-ops-mma-sync.mlir340 // CHECK: affine.apply [[$rowC_map]]
341 // CHECK: affine.apply [[$colC_map]]
344 // CHECK: affine.apply [[$rowC8_map]]
345 // CHECK: affine.apply [[$colC_map]]
400 // CHECK: affine.apply [[$rowC_map]]
401 // CHECK: affine.apply [[$colC_map]]
404 // CHECK: affine.apply [[$rowC8_map]]
405 // CHECK: affine.apply [[$colC_map]]
602 // CHECK: affine.apply [[$rowC_map]]
603 // CHECK: affine.apply [[$colC_map]]
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Target/GlobalISel/
H A DCombine.td63 dag Apply = apply;
109 def apply;
127 (apply [{ Helper.applyCombineCopy(*${mi}); }])>;
146 (apply [{ Helper.applySextTruncSextLoad(*${d}); }])>;
242 (apply [{ Helper.replaceInstWithUndef(*${root}); }])>;
250 (apply [{ Helper.replaceInstWithUndef(*${root}); }])>;
382 (apply [{ return Helper.eraseInst(*${root}); }])
520 (apply [{ Helper.applyNotCmp(*${d}, ${info}); }])
637 (apply [{ Helper.applyPtrAddZero(*${root}); }])>;
765 (apply [{ Helper.applyUDivByConst(*${root}); }])>;
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/Affine/
H A Dcanonicalize.mlir15 %x0 = affine.apply affine_map<(d0) -> (d0 - 1)> (%i0)
24 %y0 = affine.apply affine_map<(d0) -> (d0 + 1)> (%i0)
242 // CHECK-NOT: affine.apply
252 %3 = affine.apply affine_map<()[] -> (0)>()[]
291 %0 = affine.apply affine_map<(d0) -> (d0)>(%arg0)
303 %0 = affine.apply affine_map<(d0) -> (d0)>(%arg0)
304 %1 = affine.apply affine_map<(d0) -> (d0)>(%arg1)
318 %0 = affine.apply affine_map<(d0) -> (d0)>(%arg0)
785 // CHECK-NOT: affine.apply
786 %0 = affine.apply #map1(%arg0)[%c1024, %c0]
[all …]
H A Dunroll.mlir46 // UNROLL-FULL: %1 = affine.apply [[$MAP0]](%c0)
48 // UNROLL-FULL: %3 = affine.apply [[$MAP1]](%c0)
50 // UNROLL-FULL: %5 = affine.apply [[$MAP2]](%c0)
70 // UNROLL-FULL-NEXT: %3 = affine.apply [[$MAP0]](%2)
155 // UNROLL-FULL: %1 = affine.apply [[$MAP0]](%c0)
191 // UNROLL-FULL-NEXT: %2 = affine.apply [[$MAP0]](%1)
209 // UNROLL-FULL: %7 = affine.apply [[$MAP0]](%c0)
245 // SHORT-NEXT: %0 = affine.apply [[$MAP0]](%arg0)
249 // SHORT-NEXT: %0 = affine.apply [[$MAP0]](%arg0)
292 // CHECK: %{{[0-9]+}} = affine.apply
[all …]
H A Dloop-coalescing.mlir214 // CHECK-DAG: %[[T0:.*]] = affine.apply #[[SIXTEEN]]()
215 // CHECK-DAG: %[[T1:.*]] = affine.apply #[[SIXTY_FOUR]]()
217 // CHECK-DAG: %[[T3:.*]] = affine.apply #[[EIGHT]]()
252 // CHECK-DAG: %[[T3:.*]] = affine.apply #[[IDENTITY]]()[%[[T0]]]
253 // CHECK-DAG: %[[T4:.*]] = affine.apply #[[IDENTITY]]()[%[[T1]]]
255 // CHECK-DAG: %[[T6:.*]] = affine.apply #[[IDENTITY]]()[%[[T2]]]
289 // CHECK-DAG: %[[T2:.*]] = affine.apply #[[IDENTITY]]()[%[[T0]]]
290 // CHECK-DAG: %[[T3:.*]] = affine.apply #[[IDENTITY]]()[%[[T1]]]
292 // CHECK-DAG: %[[T5:.*]] = affine.apply #[[SIXTY_FOUR]]()
330 // CHECK-DAG: %[[T4:.*]] = affine.apply #[[IDENTITY]]()[%[[T1]]]
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64Combine.td18 (apply [{ applyFConstantToConstant(*${root}); }])>;
61 (apply [{ applyShuffleVectorPseudo(*${root}, ${matchinfo}); }])
68 (apply [{ applyShuffleVectorPseudo(*${root}, ${matchinfo}); }])
96 (apply [{ applyEXT(*${root}, ${matchinfo}); }])
104 (apply [{ return applyINS(*${root}, MRI, B, ${matchinfo}); }])
112 (apply [{ applyVAshrLshrImm(*${root}, MRI, ${matchinfo}); }])
121 (apply [{ applyDupLane(*${root}, MRI, B, ${matchinfo}); }])
141 (apply [{ applySwapICmpOperands(*${root}, Observer); }])
166 (apply [{ return applyBuildVectorToDup(*${root}, MRI, B); }])
175 (apply [{}])>;
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/Linalg/
H A Dtile-and-distribute.mlir18 // CHECK: %[[OFFSETY:.*]] = affine.apply #[[MAP0]]()[%[[BIDY]]]
20 // CHECK: %[[OFFSETX:.*]] = affine.apply #[[MAP0]]()[%[[BIDX]]]
23 // CHECK: %[[OFFSETX:.*]] = affine.apply #[[MAP0]]()[%[[BIDX]]]
43 // CHECK: %[[ITERY:.*]] = affine.apply #[[MAP0]]()[%[[BIDY]]]
44 // CHECK: %[[ITERX:.*]] = affine.apply #[[MAP0]]()[%[[BIDX]]]
77 // CHECK: %[[LBY:.*]] = affine.apply #[[MAP0]]()[%[[BIDY]]]
79 // CHECK: %[[LBX:.*]] = affine.apply #[[MAP0]]()[%[[BIDX]]]
104 // CHECK: %[[LBX:.*]] = affine.apply #[[MAP0]]()[%[[BIDX]]]
134 // CHECK: %[[LBY:.*]] = affine.apply #[[MAP0]]()[%[[BIDY]]]
135 // CHECK: %[[LBX:.*]] = affine.apply #[[MAP0]]()[%[[BIDX]]]
[all …]
/llvm-project-15.0.7/mlir/test/Transforms/
H A Dmemref-bound-check.mlir16 %idx0 = affine.apply affine_map<(d0, d1) -> (d0)>(%i, %j)
17 %idx1 = affine.apply affine_map<(d0, d1) -> (d1)>(%i, %j)
159 %a10 = affine.apply affine_map<(d0) ->
161 %a11 = affine.apply affine_map<(d0) ->
163 %a12 = affine.apply affine_map<(d0) ->
165 %a13 = affine.apply affine_map<(d0) ->
167 %a14 = affine.apply affine_map<(d0) ->
169 %a15 = affine.apply affine_map<(d0) ->
214 %2 = affine.apply #map3(%i0, %i1)
215 %3 = affine.apply #map4(%i0, %i1)
[all …]
H A Dparametric-mapping.mlir12 // CHECK: %[[thread_offset:.+]] = affine.apply #[[mul_map]]()[%[[threads]]#0, %[[step]]]
13 // CHECK: %[[new_lb:.+]] = affine.apply #[[add_map]]()[%[[thread_offset]], %[[lb]]]
14 // CHECK: %[[new_step:.+]] = affine.apply #[[mul_map]]()[%[[threads]]#1, %[[step]]]
31 // CHECK: %[[bidxXbdimx:.+]] = affine.apply #[[mul_map]]()[%[[blocks]]#0, %[[threads]]#1]
34 // CHECK: %[[tidxpbidxXbdimx:.+]] = affine.apply #[[add_map]]()[%[[bidxXbdimx]], %[[threads]]#0]
37 // CHECK: %[[thread_offset:.+]] = affine.apply #[[mul_map]]()[%[[tidxpbidxXbdimx]], %[[step]]]
40 // CHECK: %[[new_lb:.+]] = affine.apply #[[add_map]]()[%[[thread_offset]], %[[lb]]]
43 // CHECK: %[[stepXgdimx:.+]] = affine.apply #[[mul_map]]()[%[[blocks]]#1, %[[step]]]
46 // CHECK: %[[new_step:.+]] = affine.apply #[[mul_map]]()[%[[threads]]#1, %[[stepXgdimx]]]
/llvm-project-15.0.7/lldb/examples/synthetic/bitfield/
H A Dprogram.cpp23 uint32_t apply() { in apply() function in MaskedData
50 MaskedData data_2(data_1.apply(), 0x1AFC, eMaskingOperatorXor); in main()
51 MaskedData data_3(data_2.apply(), 0xFFCF, eMaskingOperatorOr); in main()
52 MaskedData data_4(data_3.apply(), 0xAABC, eMaskingOperatorAnd); in main()
53 MaskedData data_5(data_4.apply(), 0xFFAC, eMaskingOperatorNor); in main()
54 MaskedData data_6(data_5.apply(), 0x0000BEEF, eMaskingOperatorAnd); in main()
55 return data_6.apply(); // <-- what comes out of here? in main()
/llvm-project-15.0.7/llvm/unittests/XRay/
H A DFDRBlockVerifierTest.cpp56 ASSERT_FALSE(errorToBool(R->apply(Indexer))); in TEST()
65 ASSERT_FALSE(errorToBool(R->apply(Verifier))); in TEST()
83 ASSERT_FALSE(errorToBool(R->apply(Verifier))); in TEST()
97 ASSERT_FALSE(errorToBool(R->apply(Verifier))); in TEST()
112 ASSERT_FALSE(errorToBool(R->apply(Verifier))); in TEST()
128 EXPECT_THAT_ERROR(Block[0]->apply(Verifier), Succeeded()); in TEST()
129 EXPECT_THAT_ERROR(Block[1]->apply(Verifier), Succeeded()); in TEST()
130 EXPECT_THAT_ERROR(Block[2]->apply(Verifier), Succeeded()); in TEST()
131 EXPECT_THAT_ERROR(Block[3]->apply(Verifier), Succeeded()); in TEST()
132 EXPECT_THAT_ERROR(Block[4]->apply(Verifier), Succeeded()); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCombine.td27 (apply [{ PostLegalizerHelper.applyUCharToFloat(*${itofp}); }])>;
34 (apply [{ Helper.applyBuildFn(*${rcp}, ${matchinfo}); }])>;
46 (apply [{ PostLegalizerHelper.applyCvtF32UByteN(*${cvt_f32_ubyteN}, ${matchinfo}); }])>;
54 (apply [{ PreLegalizerHelper.applyClampI64ToI16(*${clamp_i64_to_i16}, ${matchinfo}); }])>;
65 (apply [{ RegBankHelper.applyMed3(*${min_or_max}, ${matchinfo}); }])>;
74 (apply [{ RegBankHelper.applyMed3(*${min_or_max}, ${matchinfo}); }])>;
83 (apply [{ RegBankHelper.applyClamp(*${min_or_max}, ${matchinfo}); }])>;
89 (apply [{ RegBankHelper.applyClamp(*${fmed3}, ${matchinfo}); }])>;
97 (apply [{ Helper.replaceSingleDefInstWithReg(*${fcanonicalize}, ${matchinfo}); }])>;
105 (apply [{ Helper.applyFoldableFneg(*${ffn}, ${matchinfo}); }])>;
[all …]
/llvm-project-15.0.7/mlir/test/lib/Dialect/Transform/
H A DTestTransformDialectExtension.cpp41 DiagnosedSilenceableFailure apply(transform::TransformResults &results, in apply() function in __anonc991b9c70111::TestTransformOp
94 DiagnosedSilenceableFailure apply(transform::TransformResults &results, in apply() function in __anonc991b9c70111::TestTransformUnrestrictedOpNoInterface
105 mlir::test::TestProduceParamOrForwardOperandOp::apply( in apply() function in mlir::test::TestProduceParamOrForwardOperandOp
124 mlir::test::TestConsumeOperand::apply(transform::TransformResults &results, in apply() function in mlir::test::TestConsumeOperand
130 mlir::test::TestConsumeOperandIfMatchesParamOrFail::apply( in apply() function in mlir::test::TestConsumeOperandIfMatchesParamOrFail
145 DiagnosedSilenceableFailure mlir::test::TestPrintRemarkAtOperandOp::apply( in apply() function in mlir::test::TestPrintRemarkAtOperandOp
162 mlir::test::TestCheckIfTestExtensionPresentOp::apply( in apply() function in mlir::test::TestCheckIfTestExtensionPresentOp
196 DiagnosedSilenceableFailure mlir::test::TestRemoveTestExtensionOp::apply( in apply() function in mlir::test::TestRemoveTestExtensionOp
211 DiagnosedSilenceableFailure mlir::test::TestTransformOpWithRegions::apply( in apply() function in mlir::test::TestTransformOpWithRegions
220 mlir::test::TestBranchingTransformOpTerminator::apply( in apply() function in mlir::test::TestBranchingTransformOpTerminator
[all …]

12345678910>>...24