Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 118) sorted by relevance

12345

/llvm-project-15.0.7/lldb/unittests/DataFormatter/
H A DFormattersContainerTest.cpp27 TypeMatcher matcher(ConstString(prefix + "Name")); in TEST() local
37 EXPECT_FALSE(matcher.Matches(ConstString("am"))); in TEST()
38 EXPECT_FALSE(matcher.Matches(ConstString("a"))); in TEST()
39 EXPECT_FALSE(matcher.Matches(ConstString(" "))); in TEST()
49 EXPECT_TRUE(matcher.Matches(ConstString("abc"))); in TEST()
50 EXPECT_TRUE(matcher.Matches(ConstString("azc"))); in TEST()
60 EXPECT_FALSE(matcher.Matches(ConstString("ac"))); in TEST()
64 EXPECT_FALSE(matcher.Matches(ConstString(""))); in TEST()
71 EXPECT_TRUE(matcher.Matches(ConstString("abc"))); in TEST()
73 EXPECT_TRUE(matcher.Matches(ConstString("azc"))); in TEST()
[all …]
/llvm-project-15.0.7/clang/docs/
H A DLibASTMatchers.rst29 For example, to create a matcher that matches all class or union declarations
33 insert a `hasName <LibASTMatchersReference.html#hasName0Anchor>`_ matcher: the
34 call ``recordDecl(hasName("Foo"))`` returns a matcher that matches classes or
41 How to create a matcher
69 #. Repeat until the matcher is finished.
92 There are multiple different ways to define a matcher, depending on its type
112 Most matcher definitions use the matcher creation macros. Those define both
113 the matcher of type ``Matcher<Type>`` itself, and a matcher-creation function
115 corresponding matcher.
128 ``VariadicDynCastAllOfMatcher`` or the matcher creation macros (see below).
[all …]
H A DLibASTMatchersTutorial.rst180 Intermezzo: Learn AST matcher basics
193 I'll give you one guess what this matcher does:
202 expand to 0. The matcher will also not match against calls to the
204 matcher to handle overloaded operators.
212 All matcher that are nouns describe entities in the AST and can be
223 Okay, on to using matchers for real. Let's start by defining a matcher
232 portion of the loop, so we can extend the matcher to
249 is more difficult. Note that this matcher will not match loops whose
253 The last step is giving the matcher a name and binding the ``ForStmt``
325 Our simple matcher is capable of discovering for loops, but we would
[all …]
/llvm-project-15.0.7/lldb/include/lldb/DataFormatters/
H A DFormattersContainer.h120 void Add(TypeMatcher matcher, const ValueSP &entry) { in Add() argument
127 Delete(matcher); in Add()
128 m_map.emplace_back(std::move(matcher), std::move(entry)); in Add()
133 bool Delete(TypeMatcher matcher) { in Delete() argument
136 if (iter->first.CreatedBySameMatchString(matcher)) { in Delete()
156 bool GetExact(TypeMatcher matcher, ValueSP &entry) { in GetExact() argument
159 if (pos.first.CreatedBySameMatchString(matcher)) { in GetExact()
206 ForEach([&request](const TypeMatcher &matcher, const ValueSP &value) { in AutoComplete()
207 request.TryCompleteCurrentArg(matcher.GetMatchString().GetStringRef()); in AutoComplete()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DMatchers.h24 #define EXPECT_IFF(condition, value, matcher) \ argument
27 EXPECT_THAT(value, matcher); \
29 EXPECT_THAT(value, ::testing::Not(matcher)); \
134 explicit OptionalMatcher(const InnerMatcher &matcher) : matcher_(matcher) {} in OptionalMatcher() argument
157 explicit Impl(const InnerMatcher &matcher) in Impl() argument
158 : matcher_(::testing::MatcherCast<const Value &>(matcher)) {} in Impl()
/llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/
H A Dgmock-matchers.h245 static Matcher<T> Cast(const Matcher<T>& matcher) { return matcher; } in Cast() argument
978 : matcher_(matcher) {}
1004 explicit NotMatcher(InnerMatcher matcher) : matcher_(matcher) {}
1267 explicit MatcherAsPredicate(M matcher) : matcher_(matcher) {}
1334 matcher.DescribeTo(&ss);
1600 explicit PointeeMatcher(const InnerMatcher& matcher) : matcher_(matcher) {}
1666 : matcher_(matcher) {}
1741 matcher_(matcher),
1804 matcher_(matcher),
1810 matcher_(matcher),
[all …]
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DGreedyPatternRewriteDriver.cpp83 PatternApplicator matcher; member in __anonf6b3e8e30111::GreedyPatternRewriteDriver
109 : PatternRewriter(ctx), matcher(patterns), folder(ctx), config(config) { in GreedyPatternRewriteDriver()
113 matcher.applyDefaultCostModel(); in GreedyPatternRewriteDriver()
270 matcher.matchAndRewrite(op, *this, canApply, onFailure, onSuccess); in simplify()
276 LogicalResult matchResult = matcher.matchAndRewrite(op, *this); in simplify()
423 : PatternRewriter(ctx), matcher(patterns), folder(ctx) { in OpPatternRewriteDriver()
425 matcher.applyDefaultCostModel(); in OpPatternRewriteDriver()
444 PatternApplicator matcher; member in __anonf6b3e8e30e11::OpPatternRewriteDriver
493 changed |= succeeded(matcher.matchAndRewrite(op, *this)); in simplifyLocally()
642 changed |= succeeded(matcher.matchAndRewrite(op, *this)); in simplifyLocally()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp2118 EXPECT_TRUE(matches("int* x;", matcher)); in TEST_P()
2119 EXPECT_TRUE(matches("float* x;", matcher)); in TEST_P()
2120 EXPECT_TRUE(matches("char* x;", matcher)); in TEST_P()
2121 EXPECT_TRUE(matches("void* x;", matcher)); in TEST_P()
2126 EXPECT_TRUE(notMatches("int x;", matcher)); in TEST_P()
2263 auto matcher = lambdaExpr( in TEST_P() local
2266 matcher)); in TEST_P()
2268 matcher)); in TEST_P()
2285 matcher)); in TEST_P()
2292 auto matcher = lambdaExpr( in TEST_P() local
[all …]
H A DASTMatchersTraversalTest.cpp2247 auto matcher = in TEST() local
4813 auto matcher = in TEST() local
4836 auto matcher = in TEST() local
4985 auto matcher = in TEST() local
4992 Code, matcher, in TEST()
4995 Code, matcher, in TEST()
4998 Code, matcher, in TEST()
5020 Code, matcher, in TEST()
5024 Code, matcher, in TEST()
5908 auto matcher = varDecl( in TEST() local
[all …]
/llvm-project-15.0.7/llvm/utils/unittest/googletest/src/
H A Dgtest-death-test.cc383 statement, std::move(matcher), file, line, test); in Create()
401 matcher_(std::move(matcher)), in DeathTestImpl()
653 : DeathTestImpl(a_statement, std::move(matcher)), in WindowsDeathTest()
817 : DeathTestImpl(a_statement, std::move(matcher)), in FuchsiaDeathTest()
1090 Matcher<const std::string&> matcher) in ForkingDeathTest() argument
1091 : DeathTestImpl(a_statement, std::move(matcher)), child_pid_(-1) {} in ForkingDeathTest()
1113 : ForkingDeathTest(a_statement, std::move(matcher)) {} in NoExecDeathTest()
1169 : ForkingDeathTest(a_statement, std::move(matcher)), in ExecDeathTest()
1467 Matcher<const std::string&> matcher, in Create() argument
1509 *test = new ExecDeathTest(statement, std::move(matcher), file, line); in Create()
[all …]
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-death-test-internal.h87 static bool Create(const char* statement, Matcher<const std::string&> matcher,
154 Matcher<const std::string&> matcher, const char* file, in GTEST_DISABLE_MSC_WARNINGS_POP_()
161 bool Create(const char* statement, Matcher<const std::string&> matcher,
187 Matcher<const ::std::string&> matcher) { in MakeDeathTestMatcher()
188 return matcher; in MakeDeathTestMatcher()
/llvm-project-15.0.7/mlir/test/Rewrite/
H A Dpdl-bytecode.mlir13 pdl_interp.func @matcher(%root : !pdl.operation) {
44 pdl_interp.func @matcher(%root : !pdl.operation) {
80 pdl_interp.func @matcher(%root : !pdl.operation) {
111 pdl_interp.func @matcher(%root : !pdl.operation) {
139 pdl_interp.func @matcher(%root : !pdl.operation) {
172 pdl_interp.func @matcher(%root : !pdl.operation) {
206 pdl_interp.func @matcher(%root : !pdl.operation) {
236 pdl_interp.func @matcher(%root : !pdl.operation) {
274 pdl_interp.func @matcher(%root : !pdl.operation) {
309 pdl_interp.func @matcher(%root : !pdl.operation) {
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/PDLToPDLInterp/
H A Dpdl-to-pdl-interp-matcher.mlir5 // CHECK: func @matcher(%{{.*}}: !pdl.operation)
13 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
39 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
63 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
84 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
108 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
139 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
161 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
185 // CHECK: func @matcher(%[[ROOT:.*]]: !pdl.operation)
580 // CHECK: func @matcher(%{{.*}}: !pdl.operation)
[all …]
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DMatchers.h186 matchOperandOrValueAtIndex(Operation *op, unsigned idx, MatcherClass &matcher) { in matchOperandOrValueAtIndex() argument
187 return matcher.match(op->getOperand(idx)); in matchOperandOrValueAtIndex()
196 matchOperandOrValueAtIndex(Operation *op, unsigned idx, MatcherClass &matcher) { in matchOperandOrValueAtIndex() argument
198 return matcher.match(defOp); in matchOperandOrValueAtIndex()
248 enumerate(operandMatchers, [&](size_t index, auto &matcher) { in match()
249 res &= matchOperandOrValueAtIndex(op, index, matcher); in match()
/llvm-project-15.0.7/llvm/test/TableGen/
H A DMixedCasedMnemonic.td1 // RUN: llvm-tblgen -gen-asm-matcher -I %p/../../include %s | FileCheck %s --check-prefix=MATCHER
3 // RUN: llvm-tblgen -gen-asm-matcher -I %p/../../include %s | FileCheck %s --check-prefix=ALIAS
22 // If the matcher really treats the mnemonics in a case-insensitive way,
42 // Check that the matcher lower()s the mnemonics it matches.
/llvm-project-15.0.7/mlir/test/lib/Dialect/Affine/
H A DTestVectorizationUtils.cpp101 using matcher::Op; in testVectorShapeRatio()
111 if (!matcher::operatesOnSuperVectorsOf(op, subVectorType)) { in testVectorShapeRatio()
140 using matcher::Op; in patternTestSlicingOps()
203 using matcher::Op; in testComposeMaps()
/llvm-project-15.0.7/mlir/test/Dialect/PDL/
H A Dinvalid.mlir70 …// expected-error@below {{expected a bindable user when defined in the matcher body of a `pdl.patt…
84 …// expected-error@below {{expected a bindable user when defined in the matcher body of a `pdl.patt…
98 …// expected-error@below {{expected a bindable user when defined in the matcher body of a `pdl.patt…
160 …// expected-error@below {{expected a bindable user when defined in the matcher body of a `pdl.patt…
300 …// expected-error@below {{expected a bindable user when defined in the matcher body of a `pdl.patt…
314 …// expected-error@below {{expected a bindable user when defined in the matcher body of a `pdl.patt…
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Analysis/
H A DLoopAnalysis.cpp272 auto conditionals = matcher::If(); in isVectorizableLoopBodyWithOpCond()
280 auto regions = matcher::Op([](Operation &op) -> bool { in isVectorizableLoopBodyWithOpCond()
295 auto loadAndStores = matcher::Op(matcher::isLoadOrStore); in isVectorizableLoopBodyWithOpCond()
/llvm-project-15.0.7/llvm/lib/Target/VE/
H A DVE.td36 // Use both VE register name matcher to accept "S0~S63" register names
37 // and default register matcher to accept other registeres.
/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestMatchers.cpp33 static unsigned countMatches(FunctionOpInterface f, Matcher &matcher) { in countMatches() argument
35 f.walk([&count, &matcher](Operation *op) { in countMatches()
36 if (matcher.match(op)) in countMatches()
/llvm-project-15.0.7/lldb/source/Utility/
H A DListener.cpp191 BroadcasterManagerWPMatcher matcher(std::move(manager_sp)); in BroadcasterManagerWillDestruct() local
194 m_broadcaster_managers.begin(), end_iter, matcher); in BroadcasterManagerWillDestruct()
440 BroadcasterManagerWPMatcher matcher(manager_sp); in StartListeningForEventSpec() local
443 m_broadcaster_managers.begin(), end_iter, matcher); in StartListeningForEventSpec()
/llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/lib/Target/Hexagon/AsmParser/
H A DBUILD.gn5 args = [ "-gen-asm-matcher" ]
/llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/lib/Target/Lanai/AsmParser/
H A DBUILD.gn5 args = [ "-gen-asm-matcher" ]
/llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/lib/Target/Sparc/AsmParser/
H A DBUILD.gn5 args = [ "-gen-asm-matcher" ]
/llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/lib/Target/BPF/AsmParser/
H A DBUILD.gn5 args = [ "-gen-asm-matcher" ]

12345