Searched refs:Matcher (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DError.h35 explicit ValueMatchesMono(const testing::Matcher<T> &Matcher) argument
36 : Matcher(Matcher) {}
43 bool result = Matcher.MatchAndExplain(*Holder.Exp, listener);
48 Matcher.DescribeNegationTo(listener->stream());
55 Matcher.DescribeTo(OS);
61 Matcher.DescribeNegationTo(OS);
66 testing::Matcher<T> Matcher; member in class:llvm::detail::ValueMatchesMono
72 ValueMatchesPoly(const M &Matcher) argument
81 M Matcher; member in class:llvm::detail::ValueMatchesPoly
87 ErrorMatchesMono(Optional<testing::Matcher<InfoT &>> Matcher) argument
129 Optional<testing::Matcher<InfoT &>> Matcher; member in class:llvm::detail::ErrorMatchesMono
152 Failed(M Matcher) argument
158 HasValue(M Matcher) argument
[all...]
H A DSupportHelpers.h65 operator ::testing::Matcher<const llvm::Optional<T> &>() const { function in class:llvm::detail::ValueIsMatcher::operator::testing
73 explicit Impl(const ::testing::Matcher<T> &ValueMatcher)
91 testing::Matcher<T> ValueMatcher;
/freebsd-11-stable/contrib/llvm-project/llvm/utils/TableGen/
H A DDAGISelMatcher.h21 class Matcher;
30 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant,
32 void OptimizeMatcher(std::unique_ptr<Matcher> &Matcher,
34 void EmitMatcherTable(const Matcher *Matcher, const CodeGenDAGPatterns &CGP,
38 /// Matcher - Base class for all the DAG ISel Matcher representation
40 class Matcher { class in namespace:llvm
43 std::unique_ptr<Matcher> Nex
93 Matcher(KindTy K) : Kind(K) {} function in class:llvm::Matcher
[all...]
H A DDAGISelMatcherEmitter.cpp1 //===- DAGISelMatcherEmitter.cpp - Matcher Emitter ------------------------===//
85 unsigned EmitMatcherList(const Matcher *N, unsigned Indent,
90 void EmitHistogram(const Matcher *N, raw_ostream &OS);
98 unsigned EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
282 EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
287 case Matcher::Scope: {
347 case Matcher::RecordNode:
356 case Matcher::RecordChild:
366 case Matcher::RecordMemRef:
370 case Matcher
630 const EmitRegisterMatcher *Matcher = cast<EmitRegisterMatcher>(N); local
[all...]
H A DDAGISelMatcherOpt.cpp1 //===- DAGISelMatcherOpt.cpp - Optimize a DAG Matcher ---------------------===//
9 // This file implements the DAG Matcher optimizer.
24 static void ContractNodes(std::unique_ptr<Matcher> &MatcherPtr,
27 Matcher *N = MatcherPtr.get();
33 std::unique_ptr<Matcher> Child(Scope->takeChild(i));
43 Matcher *New = nullptr;
152 Matcher *CheckType = MatcherPtr.release();
153 Matcher *CheckOpcode = CheckType->takeNext();
154 Matcher *Tail = CheckOpcode->takeNext();
167 static Matcher *FindNodeWithKin
[all...]
H A DDAGISelMatcher.cpp16 void Matcher::anchor() { }
18 void Matcher::dump() const {
22 void Matcher::print(raw_ostream &OS, unsigned indent) const {
28 void Matcher::printOne(raw_ostream &OS) const {
35 Matcher *Matcher::unlinkNode(Matcher *Other) {
40 Matcher *Cur = this;
53 bool Matcher::canMoveBefore(const Matcher *Othe
[all...]
H A DDAGISelEmitter.cpp164 // Convert each variant of each pattern into a Matcher.
165 std::vector<Matcher*> PatternMatchers;
168 if (Matcher *M = ConvertPatternToMatcher(*Patterns[i], Variant, CGP))
175 std::unique_ptr<Matcher> TheMatcher =
179 //Matcher->dump();
H A DGICombinerEmitter.cpp121 const DagInit *Matcher; member in struct:__anon2928::CombineRule::VarInfo
125 const DagInit *Matcher)
126 : N(N), Op(Op), Matcher(Matcher) {}
403 if (const DagInit *Matcher =
406 Target.getInstruction(Matcher->getOperatorAsDef(TheDef.getLoc()));
419 for (const auto &NameInit : Matcher->getArgNames()) {
430 NamedEdgeDefs[Name].emplace_back(N, &InstrOperand, Matcher);
433 NamedEdgeUses[Name].emplace_back(N, &InstrOperand, Matcher);
457 if (const DagInit *Matcher
124 VarInfo(const GIMatchDagInstr *N, const GIMatchDagOperand *Op, const DagInit *Matcher) argument
[all...]
H A DGlobalISelEmitter.cpp476 class Matcher;
546 static MatchTable buildTable(ArrayRef<Matcher *> Rules, bool WithCoverage);
654 class Matcher { class in namespace:__anon2930
656 virtual ~Matcher() = default;
665 MatchTable MatchTable::buildTable(ArrayRef<Matcher *> Rules,
668 for (Matcher *Rule : Rules)
674 class GroupMatcher final : public Matcher {
679 std::vector<Matcher *> Matchers;
683 std::vector<std::unique_ptr<Matcher>> MatcherStorage;
690 bool addMatcher(Matcher
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersMacros.h10 // Since a matcher is a function which returns a Matcher<T> object, where
28 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
40 // internal::Matcher<ValueDecl>, InnerMatcher) {
85 /// Matcher<Type> object.
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( \
117 /// Matcher<Typ
[all...]
H A DASTMatchFinder.h201 /// For each \c Matcher<> a \c MatchCallback that will be called
226 /// Returns the results of matching \p Matcher on \p Node.
229 /// \p Matcher on \p Node and returns the collected results.
235 /// than only the matches on \c Node itself), surround the \c Matcher with a
242 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context);
246 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node,
250 /// Returns the results of matching \p Matcher on the translation unit of
253 SmallVector<BoundNodes, 1> match(MatcherT Matcher, ASTContext &Context);
262 /// const Decl *D = selectFirst<Decl>("id", match(Matcher.bind("id"),
287 match(MatcherT Matcher, cons argument
298 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) argument
304 match(MatcherT Matcher, ASTContext &Context) argument
313 matchDynamic(internal::DynTypedMatcher Matcher, const ast_type_traits::DynTypedNode &Node, ASTContext &Context) argument
323 matchDynamic(internal::DynTypedMatcher Matcher, const NodeT &Node, ASTContext &Context) argument
331 matchDynamic(internal::DynTypedMatcher Matcher, ASTContext &Context) argument
[all...]
H A DASTMatchers.h138 using DeclarationMatcher = internal::Matcher<Decl>;
139 using StatementMatcher = internal::Matcher<Stmt>;
140 using TypeMatcher = internal::Matcher<QualType>;
141 using TypeLocMatcher = internal::Matcher<TypeLoc>;
142 using NestedNameSpecifierMatcher = internal::Matcher<NestedNameSpecifier>;
143 using NestedNameSpecifierLocMatcher = internal::Matcher<NestedNameSpecifierLoc>;
144 using CXXCtorInitializerMatcher = internal::Matcher<CXXCtorInitializer>;
151 /// to an \c internal::Matcher<> type such as \c TypeMatcher.
160 /// Usable as: Any Matcher
236 /// Usable as: Matcher<Dec
2999 findAll(const internal::Matcher<T> &Matcher) argument
[all...]
H A DASTMatchersInternal.h11 // Matchers are methods that return a Matcher<T> which provides a method
18 // 1. A function Matcher<T> MatcherName(<arguments>) which returns a Matcher<T>
20 // on the arguments. Matcher<T>s form an implicit reverse hierarchy
21 // to clang's AST class hierarchy, meaning that you can use a Matcher<Base>
22 // everywhere a Matcher<Derived> is required.
271 /// Used by the implementation of Matcher<T> and DynTypedMatcher.
336 template <typename> class Matcher;
338 /// Matcher that works on a \c DynTypedNode.
340 /// It is constructed from a \c Matcher<
508 class Matcher { class in namespace:clang::ast_matchers::internal
511 explicit Matcher(MatcherInterface<T> *Implementation) function in class:clang::ast_matchers::internal::Matcher
518 Matcher(const Matcher<From> &Other, function in class:clang::ast_matchers::internal::Matcher
530 Matcher(const Matcher<TypeT> &Other, function in class:clang::ast_matchers::internal::Matcher
596 explicit Matcher(const DynTypedMatcher &Implementation) function in class:clang::ast_matchers::internal::Matcher
630 matchesFirstInRange(const MatcherT &Matcher, IteratorT Start, IteratorT End, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder) argument
646 matchesFirstInPointerRange(const MatcherT &Matcher, IteratorT Start, IteratorT End, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder) argument
1006 matchesChildOf(const T &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, ast_type_traits::TraversalKind Traverse, BindKind Bind) argument
1021 matchesDescendantOf(const T &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, BindKind Bind) argument
1038 matchesAncestorOf(const T &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, AncestorMatchMode MatchMode) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DNSDictionary.h44 class Matcher { class in class:lldb_private::formatters::NSDictionary_Additionals::AdditionalFormatterMatching
46 virtual ~Matcher() = default;
49 typedef std::unique_ptr<Matcher> UP;
51 class Prefix : public Matcher {
60 class Full : public Matcher {
69 typedef Matcher::UP MatcherUP;
/freebsd-11-stable/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp25 return (Twine("Matcher<") + MatcherKind.asStringRef() + ">").str();
56 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher, argument
58 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind);
59 return Matcher.canConvertTo(NodeKind);
69 // Matcher<T>.
85 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} argument
88 return Matcher;
92 return (Twine("Matcher<")
111 const DynTypedMatcher Matcher; member in class:clang::ast_matchers::dynamic::VariantMatcher::SinglePayload
221 SingleMatcher(const DynTypedMatcher &Matcher) argument
269 VariantValue(const VariantMatcher &Matcher) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DSpecialCaseList.h119 class Matcher { class in class:llvm::SpecialCaseList
132 using SectionEntries = StringMap<StringMap<Matcher>>;
135 Section(std::unique_ptr<Matcher> M) : SectionMatcher(std::move(M)){};
137 std::unique_ptr<Matcher> SectionMatcher;
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/
H A DVariantValue.h11 /// Supports all the types required for dynamic Matcher construction.
91 /// the underlying matcher(s) can unambiguously return a Matcher<T>.
98 bool canConstructFrom(const DynTypedMatcher &Matcher,
101 /// Convert \p Matcher the destination type and return it as a new
104 convertMatcher(const DynTypedMatcher &Matcher) const = 0;
139 static VariantMatcher SingleMatcher(const DynTypedMatcher &Matcher);
168 /// \c Matcher<T>.
171 /// \c Matcher<T>.
173 /// overloads can be converted to \c Matcher<T>. If there are more than one
194 /// Return this matcher as a \c Matcher<
337 VariantMatcher *Matcher; member in union:clang::ast_matchers::dynamic::VariantValue::AllValues
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp88 MatchChildASTVisitor(const DynTypedMatcher *Matcher, ASTMatchFinder *Finder, argument
92 : Matcher(Matcher), Finder(Finder), Builder(Builder), CurrentDepth(0),
299 // Sets 'Matched' to true if 'Matcher' matches 'Node' and:
311 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder,
319 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder,
340 const DynTypedMatcher *const Matcher; member in class:clang::ast_matchers::internal::__anon287::MatchChildASTVisitor
445 const DynTypedMatcher &Matcher,
451 return matchesRecursively(Node, Matcher, Builder, MaxDepth, Traversal,
455 Key.MatcherID = Matcher
443 memoizedMatchesRecursively(const ast_type_traits::DynTypedNode &Node, ASTContext &Ctx, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, int MaxDepth, ast_type_traits::TraversalKind Traversal, BindKind Bind) argument
480 matchesRecursively(const ast_type_traits::DynTypedNode &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, int MaxDepth, ast_type_traits::TraversalKind Traversal, BindKind Bind) argument
695 memoizedMatchesAncestorOfRecursively( const ast_type_traits::DynTypedNode &Node, ASTContext &Ctx, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, AncestorMatchMode MatchMode) argument
730 matchesAncestorOfRecursively(const ast_type_traits::DynTypedNode &Node, ASTContext &Ctx, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, AncestorMatchMode MatchMode) argument
816 typeHasMatchingAlias(const Type *TypeNode, const Matcher<NamedDecl> &Matcher, BoundNodesTreeBuilder *Builder) argument
835 objcClassHasMatchingCompatibilityAlias(const ObjCInterfaceDecl *InterfaceDecl, const Matcher<NamedDecl> &Matcher, BoundNodesTreeBuilder *Builder) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp82 static internal::Matcher<Stmt> simpleCondition(StringRef BindName) {
93 static internal::Matcher<Stmt>
94 changeIntBoundNode(internal::Matcher<Decl> VarNodeMatcher) {
104 static internal::Matcher<Stmt>
105 callByRef(internal::Matcher<Decl> VarNodeMatcher) {
111 static internal::Matcher<Stmt>
112 assignedToRef(internal::Matcher<Decl> VarNodeMatcher) {
120 static internal::Matcher<Stmt>
121 getAddrTo(internal::Matcher<Decl> VarNodeMatcher) {
127 static internal::Matcher<Stm
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DTransformer.cpp24 for (auto &Matcher : transformer::detail::buildMatchers(Rule))
25 MatchFinder->addDynamicMatcher(Matcher, this);
H A DRewriteRule.cpp117 DynTypedMatcher BoundMatcher(Case.second.Matcher);
145 assert(hasValidKind(Cases[I].Matcher) &&
146 "Matcher must be non-(Qual)Type node matcher");
147 Buckets[Cases[I].Matcher.getSupportedKind()].emplace_back(I, Cases[I]);
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/
H A DRefactoringCallbacks.h59 void addMatcher(const T &Matcher, RefactoringCallback *Callback) { argument
60 MatchFinder.addMatcher(Matcher, Callback);
64 void addDynamicMatcher(const ast_matchers::internal::DynTypedMatcher &Matcher,
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A DCopyConfig.h124 // Matcher that checks symbol or section names against the command line flags
131 Error addMatcher(Expected<NameOrPattern> Matcher) { argument
132 if (!Matcher)
133 return Matcher.takeError();
134 if (Matcher->isPositiveMatch())
135 PosMatchers.push_back(std::move(*Matcher));
137 NegMatchers.push_back(std::move(*Matcher));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DSpecialCaseList.cpp29 bool SpecialCaseList::Matcher::insert(std::string Regexp,
61 unsigned SpecialCaseList::Matcher::match(StringRef Query) const {
180 std::unique_ptr<Matcher> M = std::make_unique<Matcher>();
227 StringMap<Matcher>::const_iterator II = I->second.find(Category);
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp32 const ast_matchers::internal::DynTypedMatcher &Matcher,
34 MatchFinder.addDynamicMatcher(Matcher, Callback);
212 << " used in replacement template not bound in Matcher \n";
31 addDynamicMatcher( const ast_matchers::internal::DynTypedMatcher &Matcher, RefactoringCallback *Callback) argument

Completed in 145 milliseconds

12