| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | DAGISelMatcher.h | 21 class Matcher; variable 32 void OptimizeMatcher(std::unique_ptr<Matcher> &Matcher, 34 void EmitMatcherTable(Matcher *Matcher, const CodeGenDAGPatterns &CGP, 40 class Matcher { 43 std::unique_ptr<Matcher> Next; 97 Matcher(KindTy K) : Kind(K) {} in Matcher() function 99 virtual ~Matcher() {} in ~Matcher() 154 Matcher *unlinkNode(Matcher *Other); 190 SmallVector<Matcher*, 4> Children; 207 Matcher *takeChild(unsigned i) { in takeChild() [all …]
|
| H A D | DAGISelMatcherEmitter.cpp | 261 case Matcher::Scope: { in SizeMatcher() 286 Matcher *Child; in SizeMatcher() 375 case Matcher::Scope: { in EmitMatcher() 418 case Matcher::RecordNode: in EmitMatcher() 427 case Matcher::RecordChild: in EmitMatcher() 445 case Matcher::MoveChild: { in EmitMatcher() 456 case Matcher::MoveParent: in EmitMatcher() 460 case Matcher::CheckSame: in EmitMatcher() 525 const Matcher *Child; in EmitMatcher() 572 case Matcher::CheckType: in EmitMatcher() [all …]
|
| H A D | DAGISelMatcherOpt.cpp | 27 Matcher *N = MatcherPtr.get(); in ContractNodes() 43 Matcher *New = nullptr; in ContractNodes() 152 Matcher *CheckType = MatcherPtr.release(); in ContractNodes() 154 Matcher *Tail = CheckOpcode->takeNext(); in ContractNodes() 167 static Matcher *FindNodeWithKind(Matcher *M, Matcher::KindTy Kind) { in FindNodeWithKind() 193 Matcher *N = RebindableMatcherPtr->get(); in FactorNodes() 205 SmallVector<Matcher*, 32> OptionsToMatch; in FactorNodes() 240 SmallVector<Matcher*, 8> EqualMatchers; in FactorNodes() 316 Matcher *Shared = Optn; in FactorNodes() 412 Matcher* M = FindNodeWithKind(NewOptionsToMatch[i], Matcher::CheckType); in FactorNodes() [all …]
|
| H A D | DAGISelMatcher.cpp | 16 void Matcher::anchor() { } in anchor() 18 void Matcher::dump() const { in dump() 22 void Matcher::print(raw_ostream &OS, unsigned indent) const { in print() 28 void Matcher::printOne(raw_ostream &OS) const { in printOne() 35 Matcher *Matcher::unlinkNode(Matcher *Other) { in unlinkNode() 40 Matcher *Cur = this; in unlinkNode() 53 bool Matcher::canMoveBefore(const Matcher *Other) const { in canMoveBefore() 66 bool Matcher::canMoveBeforeNode(const Matcher *Other) const { in canMoveBeforeNode() 81 for (Matcher *C : Children) in ~ScopeMatcher() 97 : Matcher(CheckPredicate), Pred(pred.getOrigPatFragRecord()), in CheckPredicateMatcher() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Testing/Support/ |
| H A D | Error.h | 35 explicit ValueMatchesMono(const testing::Matcher<T> &Matcher) in ValueMatchesMono() argument 36 : Matcher(Matcher) {} in ValueMatchesMono() 66 testing::Matcher<T> Matcher; 72 explicit ValueMatchesPoly(const M &Matcher) : Matcher(Matcher) {} in ValueMatchesPoly() argument 81 M Matcher; 88 : Matcher(std::move(Matcher)) {} in ErrorMatchesMono() 106 if (!Matcher) in MatchAndExplain() 129 Optional<testing::Matcher<InfoT &>> Matcher; 136 testing::Matcher<std::vector<std::string>> Matcher) in ErrorMessageMatches() argument 137 : Matcher(std::move(Matcher)) {} in ErrorMessageMatches() [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/src/ |
| H A D | gtest-matchers.cc | 45 Matcher<const std::string&>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string 49 Matcher<const std::string&>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string 55 Matcher<std::string>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string 59 Matcher<std::string>::Matcher(const char* s) { *this = Eq(std::string(s)); } in Matcher() function in testing::Matcher::string 64 Matcher<const absl::string_view&>::Matcher(const std::string& s) { in Matcher() function in testing::Matcher::string_view 70 Matcher<const absl::string_view&>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string_view 76 Matcher<const absl::string_view&>::Matcher(absl::string_view s) { in Matcher() function in testing::Matcher::string_view 82 Matcher<absl::string_view>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string_view 86 Matcher<absl::string_view>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string_view 92 Matcher<absl::string_view>::Matcher(absl::string_view s) { in Matcher() function in testing::Matcher::string_view
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchersMacros.h | 96 class matcher_##DefineMatcher##Matcher \ 99 explicit matcher_##DefineMatcher##Matcher() = default; \ 106 inline ::clang::ast_matchers::internal::Matcher<Type> DefineMatcher() { \ 108 new internal::matcher_##DefineMatcher##Matcher()); \ 110 inline bool internal::matcher_##DefineMatcher##Matcher::matches( \ 134 class matcher_##DefineMatcher##OverloadId##Matcher \ 137 explicit matcher_##DefineMatcher##OverloadId##Matcher( \ 149 inline ::clang::ast_matchers::internal::Matcher<Type> DefineMatcher( \ 152 new internal::matcher_##DefineMatcher##OverloadId##Matcher(Param)); \ 154 typedef ::clang::ast_matchers::internal::Matcher<Type> ( \ [all …]
|
| H A D | ASTMatchers.h | 142 using StatementMatcher = internal::Matcher<Stmt>; 143 using TypeMatcher = internal::Matcher<QualType>; 152 using AttrMatcher = internal::Matcher<Attr>; 3001 return internal::Matcher<NamedDecl>( in hasName() 3193 internal::Matcher<NamedDecl>, Base) { in AST_POLYMORPHIC_MATCHER_P() 3266 internal::Matcher<NamedDecl>, Base, 0) { 3318 internal::Matcher<NamedDecl>, Base, 0) { 3489 internal::Matcher<T> findAll(const internal::Matcher<T> &Matcher) { in findAll() argument 3490 return eachOf(Matcher, forEachDescendant(Matcher)); in findAll() 3984 internal::Matcher<TypeLoc>, Inner) { in AST_POLYMORPHIC_MATCHER_P() [all …]
|
| H A D | ASTMatchersInternal.h | 402 template <typename> class Matcher; 570 class Matcher { 580 Matcher(const Matcher<From> &Other, 592 Matcher(const Matcher<TypeT> &Other, 1229 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {} 1478 Matcher<T> InnerMatcher; 1594 return Matcher<T>( 1649 return Matcher<T>(*this); 1908 return Matcher<OuterT>( 1925 template <typename Matcher, Matcher (*Func)()> class MemoizedMatcher { [all …]
|
| H A D | ASTMatchFinder.h | 253 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context); 263 SmallVector<BoundNodes, 1> match(MatcherT Matcher, ASTContext &Context); 305 Finder.addMatcher(Matcher, &Callback); in match() 312 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) { in match() argument 313 return match(Matcher, DynTypedNode::create(Node), Context); in match() 318 match(MatcherT Matcher, ASTContext &Context) { in match() argument 321 Finder.addMatcher(Matcher, &Callback); in match() 331 Finder.addDynamicMatcher(Matcher, &Callback); in matchDynamic() 340 return matchDynamic(Matcher, DynTypedNode::create(Node), Context); in matchDynamic() 344 matchDynamic(internal::DynTypedMatcher Matcher, ASTContext &Context) { in matchDynamic() argument [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/ |
| H A D | gtest-matchers.h | 330 explicit Matcher() {} // NOLINT in Matcher() function 337 explicit Matcher( 345 Matcher(T value); // NOLINT 355 Matcher() {} in Matcher() function 372 Matcher() {} in Matcher() function 395 Matcher() {} in Matcher() function 415 Matcher() {} in Matcher() function 467 operator Matcher<T>() const { 502 return Matcher<T>(impl); in MakeMatcher() 533 operator Matcher<Lhs>() const { [all …]
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/ |
| H A D | VariantValue.cpp | 61 return Matcher.canConvertTo(NodeKind); in canConstructFrom() 65 const DynTypedMatcher &Matcher) const { in convertMatcher() 66 return Matcher.dynCastTo(NodeKind); in convertMatcher() 92 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} in SinglePayload() argument 95 return Matcher; in getSingleMatcher() 106 if (Ops.canConstructFrom(Matcher, Ignore)) in getTypedMatcher() 107 return Matcher; in getTypedMatcher() 117 const DynTypedMatcher Matcher; member in clang::ast_matchers::dynamic::VariantMatcher::SinglePayload 279 setMatcher(Matcher); in VariantValue() 319 delete Value.Matcher; in reset() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Format/ |
| H A D | MacroCallReconstructorTest.cpp | 98 struct Matcher { struct 205 Matcher U(Call, Lex); in TEST_F() 222 Matcher U(Call, Lex); in TEST_F() 428 Matcher U(Call, Lex); in TEST_F() 442 Matcher U(Call, Lex); in TEST_F() 457 Matcher U(Call, Lex); in TEST_F() 544 Matcher U(Call, Lex); in TEST_F() 571 Matcher U(Call, Lex); in TEST_F() 586 Matcher U(Call, Lex); in TEST_F() 607 Matcher U(Call, Lex); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/Dynamic/ |
| H A D | RegistryTest.cpp | 19 using ast_matchers::internal::Matcher; 130 Matcher<Stmt> BoolValue = in TEST_F() 178 Matcher<Decl> HasParameter = in TEST_F() 201 Matcher<Stmt> ObjCMsgExpr = in TEST_F() 250 Matcher<Decl> Var = in TEST_F() 252 Matcher<Decl> Class = in TEST_F() 254 Matcher<Decl> Func = in TEST_F() 304 Matcher<Type> M = constructMatcher( in TEST_F() 344 Matcher<Decl> D = constructMatcher( in TEST_F() 355 Matcher<Stmt> S = constructMatcher( in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | TypePrinterTest.cpp | 56 auto Matcher = parmVarDecl(hasType(qualType().bind("id"))); in TEST() local 59 Code, {}, Matcher, "const Type<T> &", in TEST() 63 Code, {}, Matcher, "const N::Type<T> &", in TEST() 72 auto Matcher = parmVarDecl(hasType(qualType().bind("id"))); in TEST() local 76 ASSERT_TRUE(PrintedTypeMatches(Code, {}, Matcher, "<int>", in TEST() 111 auto Matcher = classTemplateSpecializationDecl( in TEST() local 117 Code, {"-std=c++20"}, Matcher, in TEST() 124 Code, {"-std=c++20"}, Matcher, in TEST()
|
| H A D | TemplateNameTest.cpp | 74 auto Matcher = templateArgumentLoc().bind("id"); in TEST() local 75 auto MatchResults = match(Matcher, AST->getASTContext()); in TEST() 99 auto Matcher = elaboratedTypeLoc( in TEST() local 101 auto MatchResults = match(Matcher, AST->getASTContext()); in TEST() 117 Matcher = elaboratedTypeLoc( in TEST() 119 MatchResults = match(Matcher, AST->getASTContext()); in TEST()
|
| /llvm-project-15.0.7/clang/unittests/CodeGen/ |
| H A D | IRMatchers.h | 107 class Matcher { 109 virtual ~Matcher() {} in ~Matcher() 121 class EntityMatcher : public Matcher { 161 std::shared_ptr<Matcher> Next; 176 class SameAsMatcher : public Matcher { 209 class ConstantIntMatcher : public Matcher { 246 void push(std::shared_ptr<Matcher> V, Args... A) { in push() 329 SmallVector<std::shared_ptr<Matcher>, 4> Operands; 333 void push(std::shared_ptr<Matcher> M, Args... A) { in push() 359 inline std::shared_ptr<Matcher> MSameAs(unsigned N) { in MSameAs() [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/ |
| H A D | gmock-matchers.h | 196 static Matcher<T> Cast(const Matcher<U>& source_matcher) { in Cast() 245 static Matcher<T> Cast(const Matcher<T>& matcher) { return matcher; } in Cast() 283 static inline Matcher<T> Cast(const Matcher<U>& matcher) { in Cast() 313 Matcher<T> A(); 994 const Matcher<T> matcher_; 1009 operator Matcher<T>() const { 1679 const Matcher<To> matcher_; 2480 return Matcher<Container>( 2588 return Matcher<PairType>( 2694 return Matcher<PairType>( [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/Language/ObjC/ |
| H A D | NSDictionary.h | 43 class Matcher { 45 virtual ~Matcher() = default; 48 typedef std::unique_ptr<Matcher> UP; 50 class Prefix : public Matcher { 59 class Full : public Matcher { 68 typedef Matcher::UP MatcherUP;
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | DanglingHandleCheck.cpp | 25 handleFrom(const ast_matchers::internal::Matcher<RecordDecl> &IsAHandle, in handleFrom() 26 const ast_matchers::internal::Matcher<Expr> &Arg) { in handleFrom() 35 ast_matchers::internal::Matcher<Stmt> handleFromTemporaryValue( in handleFromTemporaryValue() 36 const ast_matchers::internal::Matcher<RecordDecl> &IsAHandle) { in handleFromTemporaryValue() 47 ast_matchers::internal::Matcher<RecordDecl> isASequence() { in isASequence() 52 ast_matchers::internal::Matcher<RecordDecl> isASet() { in isASet() 57 ast_matchers::internal::Matcher<RecordDecl> isAMap() { in isAMap() 63 const ast_matchers::internal::Matcher<RecordDecl> &IsAHandle) { in makeContainerMatcher()
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/ |
| H A D | gtest-death-test-internal.h | 87 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, 172 inline Matcher<const ::std::string&> MakeDeathTestMatcher( in MakeDeathTestMatcher() 176 inline Matcher<const ::std::string&> MakeDeathTestMatcher(const char* regex) { in MakeDeathTestMatcher() 179 inline Matcher<const ::std::string&> MakeDeathTestMatcher( in MakeDeathTestMatcher() 186 inline Matcher<const ::std::string&> MakeDeathTestMatcher( in MakeDeathTestMatcher() 187 Matcher<const ::std::string&> matcher) { in MakeDeathTestMatcher()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | LexicallyOrderedRecursiveASTVisitorTest.cpp | 22 LexicallyOrderedDeclVisitor(DummyMatchVisitor &Matcher, in LexicallyOrderedDeclVisitor() argument 25 : LexicallyOrderedRecursiveASTVisitor(SM), Matcher(Matcher), in LexicallyOrderedDeclVisitor() 41 DummyMatchVisitor &Matcher; member in __anona5160f4d0111::LexicallyOrderedDeclVisitor 68 Matcher.match("overridden TraverseStmt", S); in TraverseStmt() 90 Matcher.match(OS.str(), D); in VisitNamedDecl() 99 Matcher.match(OS.str(), D); in VisitDeclRefExpr()
|
| H A D | RangeSelectorTest.cpp | 51 auto Matches = ast_matchers::match(Matcher, Context); in matchCode() 78 testing::Matcher<StringError> withUnboundNodeMessage() { in withUnboundNodeMessage() 98 auto Matcher = in selectFromAssorted() local 109 return Selector(matchCode(Code, Matcher).Result); in selectFromAssorted() 260 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST() local 263 TestMatch Match = matchCode(Code, Matcher); in TEST() 276 TestMatch Match = matchCode(Code, Matcher); in TEST() 289 TestMatch Match = matchCode(Code, Matcher); in TEST() 301 TestMatch Match = matchCode(Code, Matcher); in TEST() 314 TestMatch Match = matchCode(Code, Matcher); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/Mips/ |
| H A D | TargetTest.cpp | 28 using testing::Matcher; 31 Matcher<MCOperand> IsImm(int64_t Value) { in IsImm() 36 Matcher<MCOperand> IsReg(unsigned Reg) { in IsReg() 41 Matcher<MCInst> OpcodeIs(unsigned Opcode) { in OpcodeIs() 45 Matcher<MCInst> IsLoadLow16BitImm(unsigned Reg, int64_t Value, bool IsGPR32) { in IsLoadLow16BitImm() 52 Matcher<MCInst> IsLoadHigh16BitImm(unsigned Reg, int64_t Value, bool IsGPR32) { in IsLoadHigh16BitImm() 57 Matcher<MCInst> IsShift(unsigned Reg, uint16_t Amount, bool IsGPR32) { in IsShift()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | FuzzyMatchTests.cpp | 63 FuzzyMatcher Matcher(Pattern); in MatchAndExplain() local 64 auto Result = Matcher.match(Candidate.Word); in MatchAndExplain() 65 auto AnnotatedMatch = Matcher.dumpLast(*OS << "\n"); in MatchAndExplain() 73 ::testing::Matcher<llvm::StringRef> matches(llvm::StringRef M, in matches() 200 FuzzyMatcher Matcher(Pattern); in MatchAndExplain() local 205 auto Score = Matcher.match(Str.Word); in MatchAndExplain() 208 Matcher.dumpLast(*OS << "\n"); in MatchAndExplain() 213 auto AnnotatedMatch = Matcher.dumpLast(Info); in MatchAndExplain() 223 Matcher.match(LastMatch->Word); in MatchAndExplain() 224 Matcher.dumpLast(*OS << "\n"); in MatchAndExplain() [all …]
|