Home
last modified time | relevance | path

Searched refs:Matcher (Results 1 – 25 of 68) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DDAGISelMatcher.h27 class Matcher; variable
39 void OptimizeMatcher(std::unique_ptr<Matcher> &Matcher,
41 void EmitMatcherTable(Matcher *Matcher, const CodeGenDAGPatterns &CGP,
46 class Matcher {
49 std::unique_ptr<Matcher> Next;
105 Matcher(KindTy K) : Kind(K) {} in Matcher() function
108 virtual ~Matcher() {} in ~Matcher()
165 Matcher *unlinkNode(Matcher *Other);
202 SmallVector<Matcher*, 4> Children;
218 Matcher *takeChild(unsigned i) { in takeChild()
[all …]
H A DDAGISelMatcherEmitter.cpp95 std::function<void(const Matcher *)> Statistic = [&](const Matcher *N) { in MatcherTableEmitter()
314 case Matcher::Scope: { in SizeMatcher()
339 Matcher *Child; in SizeMatcher()
428 case Matcher::Scope: { in EmitMatcher()
471 case Matcher::RecordNode: in EmitMatcher()
520 case Matcher::MoveParent: in EmitMatcher()
524 case Matcher::CheckSame: in EmitMatcher()
648 case Matcher::CheckType: in EmitMatcher()
892 case Matcher::EmitNode: in EmitMatcher()
1203 case Matcher::Scope: in getOpcodeString()
[all …]
H A DDAGISelMatcherOpt.cpp28 Matcher *N = MatcherPtr.get(); in ContractNodes()
45 Matcher *New = nullptr; in ContractNodes()
150 Matcher *Tail = CheckOpcode->takeNext(); in ContractNodes()
187 static Matcher *FindNodeWithKind(Matcher *M, Matcher::KindTy Kind) { in FindNodeWithKind()
225 SmallVector<Matcher *, 32> OptionsToMatch; in FactorNodes()
254 Matcher *Optn = *I; in FactorNodes()
260 SmallVector<Matcher *, 8> EqualMatchers; in FactorNodes()
273 Matcher *ScanMatcher = *J; in FactorNodes()
340 Matcher *Shared = Optn; in FactorNodes()
442 Matcher *M = FindNodeWithKind(OptionsToMatch[i], Matcher::CheckType); in FactorNodes()
[all …]
H A DDAGISelMatcher.cpp18 void Matcher::anchor() { } in anchor()
20 void Matcher::dump() const { in dump()
24 void Matcher::print(raw_ostream &OS, unsigned indent) const { in print()
30 void Matcher::printOne(raw_ostream &OS) const { in printOne()
37 Matcher *Matcher::unlinkNode(Matcher *Other) { in unlinkNode()
42 Matcher *Cur = this; in unlinkNode()
55 bool Matcher::canMoveBefore(const Matcher *Other) const { in canMoveBefore()
68 bool Matcher::canMoveBeforeNode(const Matcher *Other) const { in canMoveBeforeNode()
83 for (Matcher *C : Children) in ~ScopeMatcher()
99 : Matcher(CheckPredicate), Pred(pred.getOrigPatFragRecord()), in CheckPredicateMatcher()
[all …]
H A DGlobalISelMatchTable.cpp94 std::vector<Matcher *>
121 for (Matcher *Rule : Rules) { in optimizeRules()
144 ArrayRef<Matcher *> Rules,
148 ArrayRef<Matcher *> Rules,
334 for (Matcher *Rule : Rules) in buildTable()
444 void Matcher::optimize() {} in optimize()
446 Matcher::~Matcher() {} in ~Matcher()
539 std::stable_sort(F, T, [](Matcher *A, Matcher *B) { in optimize()
612 llvm::stable_sort(Matchers, [](const Matcher *L, const Matcher *R) { in finalize()
1052 if (std::get<0>(Matcher)->isHigherPriorityThan(*std::get<1>(Matcher))) in isHigherPriorityThan()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DError.h34 explicit ValueMatchesMono(const testing::Matcher<T> &Matcher) in ValueMatchesMono() argument
35 : Matcher(Matcher) {} in ValueMatchesMono()
65 testing::Matcher<T> Matcher;
71 explicit ValueMatchesPoly(const M &Matcher) : Matcher(Matcher) {} in ValueMatchesPoly() argument
80 M Matcher;
87 : Matcher(std::move(Matcher)) {} in ErrorMatchesMono()
105 if (!Matcher) in MatchAndExplain()
128 std::optional<testing::Matcher<InfoT &>> Matcher;
135 testing::Matcher<std::vector<std::string>> Matcher) in ErrorMessageMatches() argument
136 : Matcher(std::move(Matcher)) {} in ErrorMessageMatches()
[all …]
/freebsd-14.2/contrib/googletest/googletest/src/
H A Dgtest-matchers.cc46 Matcher<const std::string&>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string
50 Matcher<const std::string&>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string
56 Matcher<std::string>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string
60 Matcher<std::string>::Matcher(const char* s) { *this = Eq(std::string(s)); } in Matcher() function in testing::Matcher::string
65 Matcher<const internal::StringView&>::Matcher(const std::string& s) { in Matcher() function in testing::Matcher::StringView
71 Matcher<const internal::StringView&>::Matcher(const char* s) { in Matcher() function in testing::Matcher::StringView
77 Matcher<const internal::StringView&>::Matcher(internal::StringView s) { in Matcher() function in testing::Matcher::StringView
83 Matcher<internal::StringView>::Matcher(const std::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::StringView
87 Matcher<internal::StringView>::Matcher(const char* s) { in Matcher() function in testing::Matcher::StringView
93 Matcher<internal::StringView>::Matcher(internal::StringView s) { in Matcher() function in testing::Matcher::StringView
/freebsd-14.2/contrib/googletest/googlemock/test/
H A Dgmock-matchers-comparisons_test.cc146 Matcher<int> m(impl); in TEST()
153 Matcher<int> m1 = 5; in TEST()
390 Matcher<int16_t> m; in TEST_P()
519 Matcher<int> m3 = in TEST()
612 Matcher<char> m2; in TEST_P()
778 Matcher<int> m1 = _; in TEST()
792 Matcher<int> m = _; in TEST()
883 Matcher<int> m = Ge(5); in TEST()
897 Matcher<int> m = Gt(5); in TEST()
911 Matcher<int> m = Le(5); in TEST()
[all …]
H A Dgmock-matchers-arithmetic_test.cc155 Matcher<float> m = IsNan(); in TEST()
401 Matcher<int> m; in TEST()
438 Matcher<int> m; in TEST()
491 Matcher<int> m; in TEST()
515 Matcher<int> m; in TEST()
559 Matcher<int> m; in TEST_P()
627 Matcher<int> m; in TEST()
717 Matcher<int> m; in TEST()
738 Matcher<int> m; in TEST()
775 Matcher<int> m; in TEST_P()
[all …]
H A Dgmock-matchers-misc_test.cc56 const Matcher<int> m = Address(Eq(&n)); in TEST()
71 const Matcher<int> m = Address(Eq(&n)); in TEST()
88 Matcher<int> matcher = Address(_); in TEST()
156 Matcher<vector<int>> m = IsEmpty(); in TEST()
162 Matcher<vector<int>> m = IsEmpty(); in TEST()
1002 const Matcher<int> m = IsEven(); in TEST()
1046 const Matcher<int> m1 = IsEven2(); in TEST()
1057 const Matcher<int> m1 = IsEven2(); in TEST()
1199 const Matcher<UncopyableFoo&> m = in TEST()
1455 Matcher<vector<int>> m2 = Not(m); in TEST()
[all …]
H A Dgmock-matchers-containers_test.cc316 const Matcher<int*> m = Pointee(5); in TEST()
470 Matcher<const AStruct&> m = Field(&AStruct::x, Matcher<signed char>(Ge(0))); in TEST()
755 Matcher<const AClass&> m = Property(&AClass::n, Matcher<signed char>(Ge(0))); in TEST()
955 Matcher<int> matcher = in TEST()
1039 Matcher<int> matcher = ResultOf(IntFunction, Matcher<signed char>(Ge(85))); in TEST()
1106 Matcher<int> matcher = ResultOf( in TEST()
1946 std::vector<Matcher<int>> mv; in TEST_F()
1981 std::vector<Matcher<int>> mv; in TEST_F()
1997 std::vector<Matcher<int>> mv; in TEST_F()
2137 Matcher<set<int>> m = Each(2); in TEST_P()
[all …]
H A Dgmock-internal-utils_test.cc299 std::tuple<Matcher<int>> matchers(Eq(1)); in TEST()
307 std::tuple<Matcher<int>, Matcher<char>> matchers(Eq(1), Eq('a')); in TEST()
318 std::tuple<Matcher<int>, Matcher<char>, Matcher<bool>, in TEST()
319 Matcher<long>, // NOLINT in TEST()
320 Matcher<std::string>> in TEST()
676 std::is_same<std::tuple<Matcher<bool>>, F::ArgumentMatcherTuple>::value)); in TEST()
691 (std::is_same<std::tuple<Matcher<bool>, Matcher<const long&>>, // NOLINT in TEST()
713 std::tuple<Matcher<bool>, Matcher<int>, Matcher<char*>, Matcher<int&>, in TEST()
714 Matcher<const long&>>, // NOLINT in TEST()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersMacros.h96 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 DASTMatchers.h144 using StatementMatcher = internal::Matcher<Stmt>;
145 using TypeMatcher = internal::Matcher<QualType>;
154 using AttrMatcher = internal::Matcher<Attr>;
3079 return internal::Matcher<NamedDecl>( in hasName()
3271 internal::Matcher<NamedDecl>, Base) { in AST_POLYMORPHIC_MATCHER_P()
3344 internal::Matcher<NamedDecl>, Base, 0) {
3396 internal::Matcher<NamedDecl>, Base, 0) {
3567 internal::Matcher<T> findAll(const internal::Matcher<T> &Matcher) { in findAll() argument
3568 return eachOf(Matcher, forEachDescendant(Matcher)); in findAll()
4081 internal::Matcher<TypeLoc>, Inner) { in AST_POLYMORPHIC_MATCHER_P()
[all …]
H A DASTMatchersInternal.h401 template <typename> class Matcher;
569 class Matcher {
579 Matcher(const Matcher<From> &Other,
591 Matcher(const Matcher<TypeT> &Other,
1228 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
1462 Matcher<T> InnerMatcher;
1578 return Matcher<T>(
1633 return Matcher<T>(*this);
1892 return Matcher<OuterT>(
1909 template <typename Matcher, Matcher (*Func)()> class MemoizedMatcher {
[all …]
H A DASTMatchFinder.h254 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context);
264 SmallVector<BoundNodes, 1> match(MatcherT Matcher, ASTContext &Context);
306 Finder.addMatcher(Matcher, &Callback); in match()
313 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) { in match() argument
314 return match(Matcher, DynTypedNode::create(Node), Context); in match()
319 match(MatcherT Matcher, ASTContext &Context) { in match() argument
322 Finder.addMatcher(Matcher, &Callback); in match()
332 Finder.addDynamicMatcher(Matcher, &Callback); in matchDynamic()
341 return matchDynamic(Matcher, DynTypedNode::create(Node), Context); in matchDynamic()
345 matchDynamic(internal::DynTypedMatcher Matcher, ASTContext &Context) { in matchDynamic() argument
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp62 return Matcher.canConvertTo(NodeKind); in canConstructFrom()
66 const DynTypedMatcher &Matcher) const { in convertMatcher()
67 return Matcher.dynCastTo(NodeKind); in convertMatcher()
93 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} in SinglePayload() argument
96 return Matcher; in getSingleMatcher()
107 if (Ops.canConstructFrom(Matcher, Ignore)) in getTypedMatcher()
108 return Matcher; in getTypedMatcher()
118 const DynTypedMatcher Matcher; member in clang::ast_matchers::dynamic::VariantMatcher::SinglePayload
280 setMatcher(Matcher); in VariantValue()
320 delete Value.Matcher; in reset()
[all …]
/freebsd-14.2/contrib/googletest/googletest/include/gtest/
H A Dgtest-matchers.h475 explicit Matcher(
497 Matcher() = default;
504 Matcher(M&& m) // NOLINT
519 Matcher() = default;
528 Matcher(M&& m) // NOLINT
547 Matcher() = default;
554 Matcher(M&& m) // NOLINT
573 Matcher() = default;
582 Matcher(M&& m) // NOLINT
665 return Matcher<T>(impl);
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DNSDictionary.h43 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;
/freebsd-14.2/contrib/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h406 static Matcher<T> Cast(const Matcher<U>& source_matcher) { in Cast()
460 static Matcher<T> Cast(const Matcher<T>& matcher) { return matcher; } in Cast()
535 inline Matcher<T> SafeMatcherCast(const Matcher<U>& matcher) { in SafeMatcherCast()
558 Matcher<T> A();
1252 const Matcher<T> matcher_;
2003 const Matcher<To> matcher_;
2227 return Matcher<T>(
3000 return Matcher<PairType>(
3356 return Matcher<Struct>(
4241 inline Matcher<T> A() {
[all …]
/freebsd-14.2/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-death-test-internal.h88 static bool Create(const char* statement, Matcher<const std::string&> matcher,
158 Matcher<const std::string&> matcher, const char* file, in GTEST_DISABLE_MSC_WARNINGS_POP_()
165 bool Create(const char* statement, Matcher<const std::string&> matcher,
176 inline Matcher<const ::std::string&> MakeDeathTestMatcher( in MakeDeathTestMatcher()
180 inline Matcher<const ::std::string&> MakeDeathTestMatcher(const char* regex) { in MakeDeathTestMatcher()
183 inline Matcher<const ::std::string&> MakeDeathTestMatcher( in MakeDeathTestMatcher()
190 inline Matcher<const ::std::string&> MakeDeathTestMatcher( in MakeDeathTestMatcher()
191 Matcher<const ::std::string&> matcher) { in MakeDeathTestMatcher()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DSpecialCaseList.h118 class Matcher {
130 using SectionEntries = StringMap<StringMap<Matcher>>;
133 Section(std::unique_ptr<Matcher> M) : SectionMatcher(std::move(M)){}; in Section()
134 Section() : Section(std::make_unique<Matcher>()) {} in Section()
136 std::unique_ptr<Matcher> SectionMatcher;
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp85 static internal::Matcher<Stmt> simpleCondition(StringRef BindName, in simpleCondition()
99 static internal::Matcher<Stmt>
100 changeIntBoundNode(internal::Matcher<Decl> VarNodeMatcher) { in changeIntBoundNode()
110 static internal::Matcher<Stmt>
111 callByRef(internal::Matcher<Decl> VarNodeMatcher) { in callByRef()
117 static internal::Matcher<Stmt>
118 assignedToRef(internal::Matcher<Decl> VarNodeMatcher) { in assignedToRef()
126 static internal::Matcher<Stmt>
127 getAddrTo(internal::Matcher<Decl> VarNodeMatcher) { in getAddrTo()
133 static internal::Matcher<Stmt> hasSuspiciousStmt(StringRef NodeName) { in hasSuspiciousStmt()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp103 : Matcher(Matcher), Finder(Finder), Builder(Builder), CurrentDepth(0), in MatchChildASTVisitor()
407 const DynTypedMatcher *const Matcher; member in clang::ast_matchers::internal::__anon995a12ab0111::MatchChildASTVisitor
605 Key.MatcherID = Matcher.getID(); in memoizedMatchesRecursively()
672 const DynTypedMatcher &Matcher, in matchesChildOf() argument
698 return matchesParentOf(Node, Matcher, Builder); in matchesAncestorOf()
1173 Keys.back().MatcherID = Matcher.getID(); in matchesAnyAncestorOf()
1197 if (Matcher.matches(Node, this, &BuilderCopy)) { in matchesAnyAncestorOf()
1282 const Matcher<NamedDecl> &Matcher, in typeHasMatchingAlias() argument
1291 if (Matcher.matches(*Alias, this, &Result)) { in typeHasMatchingAlias()
1301 const Matcher<NamedDecl> &Matcher, in objcClassHasMatchingCompatibilityAlias() argument
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ObjCopy/
H A DCommonConfig.h138 Error addMatcher(Expected<NameOrPattern> Matcher) { in addMatcher() argument
139 if (!Matcher) in addMatcher()
140 return Matcher.takeError(); in addMatcher()
141 if (Matcher->isPositiveMatch()) { in addMatcher()
142 if (std::optional<StringRef> MaybeName = Matcher->getName()) in addMatcher()
145 PosPatterns.push_back(std::move(*Matcher)); in addMatcher()
147 NegMatchers.push_back(std::move(*Matcher)); in addMatcher()

123