Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DDAGISelMatcher.h21 class Matcher; variable
30 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant,
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()
105 Matcher *getNext() { return Next.get(); } in getNext()
106 const Matcher *getNext() const { return Next.get(); } in getNext()
[all …]
H A DDAGISelMatcherEmitter.cpp51 SmallVector<unsigned, Matcher::HighestKind+1> OpcodeCounts;
86 OpcodeCounts.assign(Matcher::HighestKind+1, 0); in MatcherTableEmitter()
89 unsigned EmitMatcherList(const Matcher *N, const unsigned Indent,
92 unsigned SizeMatcherList(Matcher *N, raw_ostream &OS);
96 void EmitHistogram(const Matcher *N, raw_ostream &OS);
104 unsigned SizeMatcher(Matcher *N, raw_ostream &OS);
106 unsigned EmitMatcher(const Matcher *N, const unsigned Indent, unsigned CurrentIdx,
245 SizeMatcherList(Matcher *N, raw_ostream &OS) { in SizeMatcherList()
258 SizeMatcher(Matcher *N, raw_ostream &OS) { in SizeMatcher()
265 case Matcher::Scope: { in SizeMatcher()
[all …]
H A DDAGISelMatcherOpt.cpp24 static void ContractNodes(std::unique_ptr<Matcher> &MatcherPtr, in ContractNodes()
27 Matcher *N = MatcherPtr.get(); in ContractNodes()
33 std::unique_ptr<Matcher> Child(Scope->takeChild(i)); in ContractNodes()
43 Matcher *New = nullptr; in ContractNodes()
152 Matcher *CheckType = MatcherPtr.release(); in ContractNodes()
153 Matcher *CheckOpcode = CheckType->takeNext(); in ContractNodes()
154 Matcher *Tail = CheckOpcode->takeNext(); in ContractNodes()
167 static Matcher *FindNodeWithKind(Matcher *M, Matcher::KindTy Kind) { in FindNodeWithKind()
187 static void FactorNodes(std::unique_ptr<Matcher> &InputMatcherPtr) { in FactorNodes()
190 std::unique_ptr<Matcher> *RebindableMatcherPtr = &InputMatcherPtr; in FactorNodes()
[all …]
H A DDAGISelMatcher.cpp16 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 …]
H A DGICombinerEmitter.cpp122 const DagInit *Matcher; member
126 const DagInit *Matcher) in VarInfo()
127 : N(N), Op(Op), Matcher(Matcher) {} in VarInfo()
401 if (const DagInit *Matcher = in parseInstructionMatcher() local
404 Target.getInstruction(Matcher->getOperatorAsDef(TheDef.getLoc())); in parseInstructionMatcher()
417 for (const auto &NameInit : Matcher->getArgNames()) { in parseInstructionMatcher()
428 NamedEdgeDefs[Name].emplace_back(N, &InstrOperand, Matcher); in parseInstructionMatcher()
431 NamedEdgeUses[Name].emplace_back(N, &InstrOperand, Matcher); in parseInstructionMatcher()
455 if (const DagInit *Matcher = in parseWipMatchOpcodeMatcher() local
474 for (const auto &Arg : Matcher->getArgs()) { in parseWipMatchOpcodeMatcher()
[all …]
H A DGlobalISelEmitter.cpp482 class Matcher;
552 static MatchTable buildTable(ArrayRef<Matcher *> Rules, bool WithCoverage);
660 class Matcher { class
662 virtual ~Matcher() = default;
671 MatchTable MatchTable::buildTable(ArrayRef<Matcher *> Rules, in buildTable()
674 for (Matcher *Rule : Rules) in buildTable()
680 class GroupMatcher final : public Matcher {
685 std::vector<Matcher *> Matchers;
689 std::vector<std::unique_ptr<Matcher>> MatcherStorage;
696 bool addMatcher(Matcher &Candidate);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Testing/Support/
H A DError.h35 explicit ValueMatchesMono(const testing::Matcher<T> &Matcher) in ValueMatchesMono() argument
36 : Matcher(Matcher) {} in ValueMatchesMono()
43 bool result = Matcher.MatchAndExplain(*Holder.Exp, listener); in MatchAndExplain()
48 Matcher.DescribeNegationTo(listener->stream()); in MatchAndExplain()
55 Matcher.DescribeTo(OS); in DescribeTo()
61 Matcher.DescribeNegationTo(OS); in DescribeNegationTo()
66 testing::Matcher<T> Matcher;
72 explicit ValueMatchesPoly(const M &Matcher) : Matcher(Matcher) {} in ValueMatchesPoly() argument
75 operator testing::Matcher<const ExpectedHolder<T> &>() const {
77 new ValueMatchesMono<T>(testing::SafeMatcherCast<T>(Matcher)));
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/src/
H A Dgtest-matchers.cc45 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
/netbsd-src/external/apache2/llvm/dist/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.h141 using DeclarationMatcher = internal::Matcher<Decl>;
142 using StatementMatcher = internal::Matcher<Stmt>;
143 using TypeMatcher = internal::Matcher<QualType>;
144 using TypeLocMatcher = internal::Matcher<TypeLoc>;
145 using NestedNameSpecifierMatcher = internal::Matcher<NestedNameSpecifier>;
146 using NestedNameSpecifierLocMatcher = internal::Matcher<NestedNameSpecifierLoc>;
147 using CXXBaseSpecifierMatcher = internal::Matcher<CXXBaseSpecifier>;
148 using CXXCtorInitializerMatcher = internal::Matcher<CXXCtorInitializer>;
149 using TemplateArgumentMatcher = internal::Matcher<TemplateArgument>;
150 using TemplateArgumentLocMatcher = internal::Matcher<TemplateArgumentLoc>;
[all …]
H A DASTMatchersInternal.h406 template <typename> class Matcher;
529 template <typename T> Matcher<T> convertTo() const {
538 template <typename T> Matcher<T> unconditionalConvertTo() const;
574 class Matcher {
577 explicit Matcher(MatcherInterface<T> *Implementation)
584 Matcher(const Matcher<From> &Other,
596 Matcher(const Matcher<TypeT> &Other,
604 template <typename To> Matcher<To> dynCastTo() const LLVM_LVALUE_FUNCTION {
606 return Matcher<To>(Implementation);
610 template <typename To> Matcher<To> dynCastTo() && {
[all …]
H A DASTMatchFinder.h251 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context);
254 SmallVector<BoundNodes, 1> match(MatcherT Matcher, const DynTypedNode &Node,
261 SmallVector<BoundNodes, 1> match(MatcherT Matcher, ASTContext &Context);
299 SmallVector<BoundNodes, 1> match(MatcherT Matcher, const DynTypedNode &Node, in match() argument
303 Finder.addMatcher(Matcher, &Callback); in match()
310 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) { in match() argument
311 return match(Matcher, DynTypedNode::create(Node), Context); in match()
316 match(MatcherT Matcher, ASTContext &Context) { in match() argument
319 Finder.addMatcher(Matcher, &Callback); in match()
325 matchDynamic(internal::DynTypedMatcher Matcher, const DynTypedNode &Node, in matchDynamic() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/include/gtest/
H A Dgtest-matchers.h325 class Matcher : public internal::MatcherBase<T> {
330 explicit Matcher() {} // NOLINT in Matcher() function
333 explicit Matcher(const MatcherInterface<const T&>* impl) in Matcher() function
337 explicit Matcher(
345 Matcher(T value); // NOLINT
352 class GTEST_API_ Matcher<const std::string&>
355 Matcher() {} in Matcher() function
357 explicit Matcher(const MatcherInterface<const std::string&>* impl) in Matcher() function
362 Matcher(const std::string& s); // NOLINT
365 Matcher(const char* s); // NOLINT
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp58 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher, in canConstructFrom() argument
60 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind); in canConstructFrom()
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()
99 return (Twine("Matcher<") + Matcher.getSupportedKind().asStringRef() + ">") in getTypeAsString()
106 if (Ops.canConstructFrom(Matcher, Ignore)) in getTypedMatcher()
107 return Matcher; in getTypedMatcher()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googlemock/include/gmock/
H A Dgmock-matchers.h130 static Matcher<T> Cast(const M& polymorphic_matcher_or_value) { in Cast()
145 std::is_convertible<M, Matcher<T>>{}, in Cast()
151 static Matcher<T> CastImpl(const M& polymorphic_matcher_or_value, in CastImpl()
168 static Matcher<T> CastImpl(const M& value, in CastImpl()
171 return Matcher<T>(ImplicitCast_<T>(value)); in CastImpl()
184 static Matcher<T> CastImpl(const M& value,
193 class MatcherCastImpl<T, Matcher<U> > {
195 static Matcher<T> Cast(const Matcher<U>& source_matcher) { in Cast()
196 return Matcher<T>(new Impl(source_matcher)); in Cast()
202 explicit Impl(const Matcher<U>& source_matcher) in Impl()
[all …]
H A Dgmock-generated-matchers.h266 class name##Matcher {\
296 operator ::testing::Matcher<arg_type>() const {\
297 return ::testing::Matcher<arg_type>(\
300 name##Matcher() {\
304 inline name##Matcher name() {\
305 return name##Matcher();\
308 bool name##Matcher::gmock_Impl<arg_type>::MatchAndExplain(\
346 operator ::testing::Matcher<arg_type>() const {\
347 return ::testing::Matcher<arg_type>(\
400 operator ::testing::Matcher<arg_type>() const {\
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp96 MatchChildASTVisitor(const DynTypedMatcher *Matcher, ASTMatchFinder *Finder, in MatchChildASTVisitor() argument
100 : Matcher(Matcher), Finder(Finder), Builder(Builder), CurrentDepth(0), in MatchChildASTVisitor()
361 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match()
369 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match()
390 const DynTypedMatcher *const Matcher; member in clang::ast_matchers::internal::__anon62d4f9200111::MatchChildASTVisitor
579 const DynTypedMatcher &Matcher, in memoizedMatchesRecursively() argument
584 return matchesRecursively(Node, Matcher, Builder, MaxDepth, Bind); in memoizedMatchesRecursively()
587 Key.MatcherID = Matcher.getID(); in memoizedMatchesRecursively()
603 matchesRecursively(Node, Matcher, &Result.Nodes, MaxDepth, Bind); in memoizedMatchesRecursively()
614 const DynTypedMatcher &Matcher, in matchesRecursively() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-death-test-internal.h83 static bool Create(const char* statement, Matcher<const std::string&> matcher,
150 Matcher<const std::string&> matcher, const char* file, in GTEST_DISABLE_MSC_WARNINGS_POP_()
157 bool Create(const char* statement, Matcher<const std::string&> matcher,
168 inline Matcher<const ::std::string&> MakeDeathTestMatcher( in MakeDeathTestMatcher()
172 inline Matcher<const ::std::string&> MakeDeathTestMatcher(const char* regex) { in MakeDeathTestMatcher()
175 inline Matcher<const ::std::string&> MakeDeathTestMatcher( in MakeDeathTestMatcher()
182 inline Matcher<const ::std::string&> MakeDeathTestMatcher( in MakeDeathTestMatcher()
183 Matcher<const ::std::string&> matcher) { in MakeDeathTestMatcher()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp82 static internal::Matcher<Stmt> simpleCondition(StringRef BindName) { in simpleCondition()
93 static internal::Matcher<Stmt>
94 changeIntBoundNode(internal::Matcher<Decl> VarNodeMatcher) { in changeIntBoundNode()
104 static internal::Matcher<Stmt>
105 callByRef(internal::Matcher<Decl> VarNodeMatcher) { in callByRef()
111 static internal::Matcher<Stmt>
112 assignedToRef(internal::Matcher<Decl> VarNodeMatcher) { in assignedToRef()
120 static internal::Matcher<Stmt>
121 getAddrTo(internal::Matcher<Decl> VarNodeMatcher) { in getAddrTo()
127 static internal::Matcher<Stmt> hasSuspiciousStmt(StringRef NodeName) { in hasSuspiciousStmt()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/
H A DCommonConfig.h129 Error addMatcher(Expected<NameOrPattern> Matcher) { in addMatcher() argument
130 if (!Matcher) in addMatcher()
131 return Matcher.takeError(); in addMatcher()
132 if (Matcher->isPositiveMatch()) in addMatcher()
133 PosMatchers.push_back(std::move(*Matcher)); in addMatcher()
135 NegMatchers.push_back(std::move(*Matcher)); in addMatcher()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/Dynamic/
H A DVariantValue.h111 bool canConstructFrom(const DynTypedMatcher &Matcher,
116 DynTypedMatcher convertMatcher(const DynTypedMatcher &Matcher) const;
148 static VariantMatcher SingleMatcher(const DynTypedMatcher &Matcher);
211 ast_matchers::internal::Matcher<T> getTypedMatcher() const { in getTypedMatcher()
304 void setMatcher(const VariantMatcher &Matcher);
347 VariantMatcher *Matcher; member
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DSpecialCaseList.h121 class Matcher {
134 using SectionEntries = StringMap<StringMap<Matcher>>;
137 Section(std::unique_ptr<Matcher> M) : SectionMatcher(std::move(M)){}; in Section()
139 std::unique_ptr<Matcher> SectionMatcher;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DSpecialCaseList.cpp29 bool SpecialCaseList::Matcher::insert(std::string Regexp, in insert()
61 unsigned SpecialCaseList::Matcher::match(StringRef Query) const { in match()
180 std::unique_ptr<Matcher> M = std::make_unique<Matcher>(); in parse()
227 StringMap<Matcher>::const_iterator II = I->second.find(Category); in inSectionBlame()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/
H A DRefactoringCallbacks.h59 void addMatcher(const T &Matcher, RefactoringCallback *Callback) { in addMatcher() argument
60 MatchFinder.addMatcher(Matcher, Callback); in addMatcher()
64 void addDynamicMatcher(const ast_matchers::internal::DynTypedMatcher &Matcher,
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/
H A DRewriteRule.cpp182 const ast_matchers::internal::Matcher<T> InnerMatcher;
186 ast_matchers::internal::Matcher<T> InnerMatcher) in BindingsMatcher()
227 ast_matchers::internal::Matcher<T>
243 for (auto &Matcher : transformer::detail::buildMatchers(Rule)) in registerMatchers() local
244 MF->addMatcher(forEachDescendantDynamically<T>(Nodes, Matcher), this); in registerMatchers()
356 DynTypedMatcher BoundMatcher(Case.second.Matcher); in taggedMatchers()
386 assert(hasValidKind(Cases[I].Matcher) && in buildMatchers()
388 Buckets[Cases[I].Matcher.getSupportedKind()].emplace_back(I, Cases[I]); in buildMatchers()

123