| /freebsd-12.1/contrib/llvm/utils/TableGen/ |
| H A D | DAGISelMatcher.h | 22 class Matcher; variable 33 void OptimizeMatcher(std::unique_ptr<Matcher> &Matcher, 35 void EmitMatcherTable(const Matcher *Matcher, const CodeGenDAGPatterns &CGP, 41 class Matcher { 44 std::unique_ptr<Matcher> Next; 91 Matcher(KindTy K) : Kind(K) {} in Matcher() function 93 virtual ~Matcher() {} in ~Matcher() 143 Matcher *unlinkNode(Matcher *Other); 179 SmallVector<Matcher*, 4> Children; 196 Matcher *takeChild(unsigned i) { in takeChild() [all …]
|
| H A D | DAGISelMatcherEmitter.cpp | 288 case Matcher::Scope: { in EmitMatcher() 348 case Matcher::RecordNode: in EmitMatcher() 357 case Matcher::RecordChild: in EmitMatcher() 367 case Matcher::RecordMemRef: in EmitMatcher() 375 case Matcher::MoveChild: { in EmitMatcher() 386 case Matcher::MoveParent: in EmitMatcher() 390 case Matcher::CheckSame: in EmitMatcher() 430 case Matcher::CheckOpcode: in EmitMatcher() 455 const Matcher *Child; in EmitMatcher() 523 case Matcher::CheckType: in EmitMatcher() [all …]
|
| H A D | DAGISelMatcherOpt.cpp | 28 Matcher *N = MatcherPtr.get(); in ContractNodes() 44 Matcher *New = nullptr; in ContractNodes() 149 Matcher *CheckType = MatcherPtr.release(); in ContractNodes() 151 Matcher *Tail = CheckOpcode->takeNext(); in ContractNodes() 164 static Matcher *FindNodeWithKind(Matcher *M, Matcher::KindTy Kind) { in FindNodeWithKind() 190 Matcher *N = RebindableMatcherPtr->get(); in FactorNodes() 202 SmallVector<Matcher*, 32> OptionsToMatch; in FactorNodes() 220 SmallVector<Matcher*, 32> NewOptionsToMatch; in FactorNodes() 237 SmallVector<Matcher*, 8> EqualMatchers; in FactorNodes() 313 Matcher *Shared = Optn; in FactorNodes() [all …]
|
| H A D | DAGISelMatcher.cpp | 17 void Matcher::anchor() { } in anchor() 19 void Matcher::dump() const { in dump() 23 void Matcher::print(raw_ostream &OS, unsigned indent) const { in print() 29 void Matcher::printOne(raw_ostream &OS) const { in printOne() 36 Matcher *Matcher::unlinkNode(Matcher *Other) { in unlinkNode() 41 Matcher *Cur = this; in unlinkNode() 54 bool Matcher::canMoveBefore(const Matcher *Other) const { in canMoveBefore() 67 bool Matcher::canMoveBeforeNode(const Matcher *Other) const { in canMoveBeforeNode() 82 for (Matcher *C : Children) in ~ScopeMatcher() 98 : Matcher(CheckPredicate), Pred(pred.getOrigPatFragRecord()), in CheckPredicateMatcher() [all …]
|
| H A D | GlobalISelEmitter.cpp | 447 class Matcher; 625 class Matcher { class 627 virtual ~Matcher() = default; 639 for (Matcher *Rule : Rules) in buildTable() 2889 if (std::get<0>(Matcher)->isHigherPriorityThan(*std::get<1>(Matcher))) in isHigherPriorityThan() 2891 if (std::get<1>(Matcher)->isHigherPriorityThan(*std::get<0>(Matcher))) in isHigherPriorityThan() 4114 ArrayRef<Matcher *> Rules, in optimizeRules() 4166 for (Matcher &Rule : Rules) in buildMatchTable() 4182 [&OpcodeOrder](const Matcher *A, const Matcher *B) { in buildMatchTable() 4219 std::stable_sort(F, T, [](Matcher *A, Matcher *B) { in optimize() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Testing/Support/ |
| H A D | Error.h | 36 explicit ValueMatchesMono(const testing::Matcher<T> &Matcher) in ValueMatchesMono() argument 37 : Matcher(Matcher) {} in ValueMatchesMono() 67 testing::Matcher<T> Matcher; 73 explicit ValueMatchesPoly(const M &Matcher) : Matcher(Matcher) {} in ValueMatchesPoly() argument 82 M Matcher; 89 : Matcher(std::move(Matcher)) {} in ErrorMatchesMono() 107 if (!Matcher) in MatchAndExplain() 115 if (Matcher) { in DescribeTo() 123 if (Matcher) { in DescribeNegationTo() 130 Optional<testing::Matcher<InfoT &>> Matcher; [all …]
|
| /freebsd-12.1/contrib/googletest/googlemock/include/gmock/internal/ |
| H A D | gmock-generated-internal-utils.h | 94 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4> > 100 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, 108 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, 116 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, 117 Matcher<A5>, Matcher<A6>, Matcher<A7> > 124 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, 125 Matcher<A5>, Matcher<A6>, Matcher<A7>, Matcher<A8> > 132 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, 133 Matcher<A5>, Matcher<A6>, Matcher<A7>, Matcher<A8>, 142 typedef ::testing::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, [all …]
|
| /freebsd-12.1/contrib/googletest/googlemock/test/ |
| H A D | gmock-matchers_test.cc | 309 Matcher<double> m; in TEST() 738 Matcher<int> m3 = in TEST() 2461 Matcher<int> m; in TEST() 2496 Matcher<int> m; in TEST() 2563 Matcher<int> m; in TEST() 2593 Matcher<int> m; in TEST() 2639 Matcher<int> m; in TEST() 2706 Matcher<int> m; in TEST() 2799 Matcher<int> m; in TEST() 2827 Matcher<int> m; in TEST() [all …]
|
| H A D | gmock-generated-internal-utils_test.cc | 42 using ::testing::Matcher; 55 CompileAssertTypesEqual<tuple<Matcher<int> >, in TEST() 60 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char> >, in TEST() 66 tuple<Matcher<int>, Matcher<char>, Matcher<bool>, Matcher<double>, in TEST() 67 Matcher<char*> >, in TEST() 87 CompileAssertTypesEqual<tuple<Matcher<bool> >, F::ArgumentMatcherTuple>(); in TEST() 100 tuple<Matcher<bool>, Matcher<const long&> >, // NOLINT in TEST() 118 tuple<Matcher<bool>, Matcher<int>, Matcher<char*>, Matcher<int&>, in TEST() 119 Matcher<const long&> >, // NOLINT in TEST()
|
| H A D | gmock-generated-matchers_test.cc | 81 using testing::Matcher; 252 Matcher<tuple<char, int> > LessThan() { in LessThan() 292 Matcher<int> GreaterThan(int n) { in GreaterThan() 343 Matcher<const vector<int>& > m = in TEST() 463 Matcher<vector<std::string> > m = in TEST() 739 const Matcher<int> m = IsEven(); in TEST() 783 const Matcher<int> m1 = IsEven2(); in TEST() 794 const Matcher<int> m1 = IsEven2(); in TEST() 1053 Matcher<std::string> no_promo = in TEST() 1055 Matcher<const std::string&> promo = in TEST() [all …]
|
| H A D | gmock_link_test.h | 158 using testing::Matcher; 628 Matcher<const FieldHelper&> m = Field(&FieldHelper::field_, Eq(0)); in TEST() 631 Matcher<const FieldHelper*> m2 = Field(&FieldHelper::field_, Eq(0)); in TEST() 639 Matcher<const FieldHelper&> m = Property(&FieldHelper::field, Eq(0)); in TEST() 642 Matcher<const FieldHelper*> m2 = Property(&FieldHelper::field, Eq(0)); in TEST() 656 Matcher<int*> m = Pointee(Eq(1)); in TEST() 662 Matcher<const char*> m = Truly(&InvokeHelper::StaticBoolFromString); in TEST() 668 Matcher<int> m = AllOf(_, Eq(1)); in TEST() 674 Matcher<int> m = AnyOf(_, Eq(1)); in TEST() 680 Matcher<int> m = Not(_); in TEST() [all …]
|
| /freebsd-12.1/contrib/googletest/googlemock/src/ |
| H A D | gmock-matchers.cc | 53 Matcher<const std::string&>::Matcher(const ::string& s) { in Matcher() function in testing::Matcher::string 60 Matcher<const std::string&>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string 71 Matcher<std::string>::Matcher(const ::string& s) { in Matcher() function in testing::Matcher::string 83 Matcher<const ::string&>::Matcher(const std::string& s) { in Matcher() function in testing::Matcher::string 96 Matcher<::string>::Matcher(const std::string& s) { in Matcher() function in testing::Matcher::string 101 Matcher<::string>::Matcher(const ::string& s) { *this = Eq(s); } in Matcher() function in testing::Matcher::string 110 Matcher<const absl::string_view&>::Matcher(const std::string& s) { in Matcher() function in testing::Matcher::string_view 122 Matcher<const absl::string_view&>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string_view 128 Matcher<const absl::string_view&>::Matcher(absl::string_view s) { in Matcher() function in testing::Matcher::string_view 144 Matcher<absl::string_view>::Matcher(const char* s) { in Matcher() function in testing::Matcher::string_view [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 137 internal::Matcher<T> id(StringRef ID, in id() 145 using DeclarationMatcher = internal::Matcher<Decl>; 146 using StatementMatcher = internal::Matcher<Stmt>; 147 using TypeMatcher = internal::Matcher<QualType>; 148 using TypeLocMatcher = internal::Matcher<TypeLoc>; 2496 inline internal::Matcher<Stmt> alignOfExpr( in alignOfExpr() 2505 inline internal::Matcher<Stmt> sizeOfExpr( in sizeOfExpr() 2780 internal::Matcher<T> findAll(const internal::Matcher<T> &Matcher) { in findAll() argument 2781 return eachOf(Matcher, forEachDescendant(Matcher)); in findAll() 4092 internal::Matcher<Expr>, InnerMatcher) { in AST_POLYMORPHIC_MATCHER_P() [all …]
|
| H A D | ASTMatchersMacros.h | 97 class matcher_##DefineMatcher##Matcher \ 100 explicit matcher_##DefineMatcher##Matcher() = default; \ 107 inline ::clang::ast_matchers::internal::Matcher<Type> DefineMatcher() { \ 109 new internal::matcher_##DefineMatcher##Matcher()); \ 111 inline bool internal::matcher_##DefineMatcher##Matcher::matches( \ 135 class matcher_##DefineMatcher##OverloadId##Matcher \ 138 explicit matcher_##DefineMatcher##OverloadId##Matcher( \ 150 inline ::clang::ast_matchers::internal::Matcher<Type> DefineMatcher( \ 153 new internal::matcher_##DefineMatcher##OverloadId##Matcher(Param)); \ 155 typedef ::clang::ast_matchers::internal::Matcher<Type>( \ [all …]
|
| H A D | ASTMatchersInternal.h | 496 class Matcher { 506 Matcher(const Matcher<From> &Other, 518 Matcher(const Matcher<TypeT> &Other, 1185 operator Matcher<T>() const { 1203 operator Matcher<T>() const { 1224 operator Matcher<T>() const { 1258 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {} 1372 return Matcher<T>(*this); 1696 return Matcher<OuterT>( 1713 template <typename Matcher, Matcher (*Func)()> class MemoizedMatcher { [all …]
|
| H A D | ASTMatchFinder.h | 243 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context); 247 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, 254 SmallVector<BoundNodes, 1> match(MatcherT Matcher, ASTContext &Context); 288 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, in match() argument 292 Finder.addMatcher(Matcher, &Callback); in match() 299 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) { in match() argument 300 return match(Matcher, ast_type_traits::DynTypedNode::create(Node), Context); in match() 305 match(MatcherT Matcher, ASTContext &Context) { in match() argument 308 Finder.addMatcher(Matcher, &Callback); in match()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/Dynamic/ |
| H A D | VariantValue.cpp | 60 return Matcher.canConvertTo(NodeKind); in canConstructFrom() 86 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} in SinglePayload() argument 89 return Matcher; in getSingleMatcher() 100 if (Ops.canConstructFrom(Matcher, Ignore)) in getTypedMatcher() 101 return Matcher; in getTypedMatcher() 107 return ArgKind(Matcher.getSupportedKind()) in isConvertibleTo() 112 const DynTypedMatcher Matcher; member in clang::ast_matchers::dynamic::VariantMatcher::SinglePayload 168 if (ArgKind(Matcher.getSupportedKind()) in isConvertibleTo() 271 setMatcher(Matcher); in VariantValue() 308 delete Value.Matcher; in reset() [all …]
|
| /freebsd-12.1/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-matchers.h | 395 Matcher() {} in Matcher() function 418 Matcher() {} in Matcher() function 447 Matcher() {} in Matcher() function 468 Matcher() {} in Matcher() function 496 Matcher() {} in Matcher() function 522 Matcher() {} in Matcher() function 722 static Matcher<T> Cast(const Matcher<U>& source_matcher) { in Cast() 773 static Matcher<T> Cast(const Matcher<T>& matcher) { return matcher; } in Cast() 814 static inline Matcher<T> Cast(const Matcher<U>& matcher) { in Cast() 844 Matcher<T> A(); [all …]
|
| H A D | gmock-generated-function-mockers.h | 156 const Matcher<A3>& m3, const Matcher<A4>& m4) { in With() 180 const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5) { in With() 204 const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, in With() 230 const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, in With() 231 const Matcher<A6>& m6, const Matcher<A7>& m7) { in With() 256 const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, in With() 257 const Matcher<A6>& m6, const Matcher<A7>& m7, const Matcher<A8>& m8) { in With() 284 const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, in With() 285 const Matcher<A6>& m6, const Matcher<A7>& m7, const Matcher<A8>& m8, in With() 314 const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, in With() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 87 MatchChildASTVisitor(const DynTypedMatcher *Matcher, in MatchChildASTVisitor() argument 93 : Matcher(Matcher), in MatchChildASTVisitor() 297 const DynTypedMatcher *const Matcher; member in clang::ast_matchers::internal::__anon99630ca40111::MatchChildASTVisitor 404 Key.MatcherID = Matcher.getID(); in memoizedMatchesRecursively() 429 const DynTypedMatcher &Matcher, in matchesRecursively() argument 443 const DynTypedMatcher &Matcher, in matchesChildOf() argument 464 const DynTypedMatcher &Matcher, in matchesAncestorOf() argument 643 Key.MatcherID = Matcher.getID(); in memoizedMatchesAncestorOfRecursively() 696 if (Matcher.matches(Parent, this, &BuilderCopy)) { in matchesAncestorOfRecursively() 753 const Matcher<NamedDecl> &Matcher, in typeHasMatchingAlias() argument [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Language/ObjC/ |
| H A D | NSDictionary.h | 45 class Matcher { 47 virtual ~Matcher() = default; 50 typedef std::unique_ptr<Matcher> UP; 52 class Prefix : public Matcher { 61 class Full : public Matcher { 70 typedef Matcher::UP MatcherUP;
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/Dynamic/ |
| H A D | VariantValue.h | 99 bool canConstructFrom(const DynTypedMatcher &Matcher, 105 convertMatcher(const DynTypedMatcher &Matcher) const = 0; 140 static VariantMatcher SingleMatcher(const DynTypedMatcher &Matcher); 200 ast_matchers::internal::Matcher<T> getTypedMatcher() const { in getTypedMatcher() 229 typedef ast_matchers::internal::Matcher<T> MatcherT; 232 convertMatcher(const DynTypedMatcher &Matcher) const override { in convertMatcher() 233 return DynTypedMatcher(Matcher.convertTo<T>()); in convertMatcher() 296 void setMatcher(const VariantMatcher &Matcher); 338 VariantMatcher *Matcher; member
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopUnrolling.cpp | 83 static internal::Matcher<Stmt> simpleCondition(StringRef BindName) { in simpleCondition() 94 static internal::Matcher<Stmt> 95 changeIntBoundNode(internal::Matcher<Decl> VarNodeMatcher) { in changeIntBoundNode() 105 static internal::Matcher<Stmt> 106 callByRef(internal::Matcher<Decl> VarNodeMatcher) { in callByRef() 112 static internal::Matcher<Stmt> 113 assignedToRef(internal::Matcher<Decl> VarNodeMatcher) { in assignedToRef() 121 static internal::Matcher<Stmt> 122 getAddrTo(internal::Matcher<Decl> VarNodeMatcher) { in getAddrTo() 128 static internal::Matcher<Stmt> hasSuspiciousStmt(StringRef NodeName) { in hasSuspiciousStmt() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | SpecialCaseList.h | 118 class Matcher { 131 using SectionEntries = StringMap<StringMap<Matcher>>; 134 Section(std::unique_ptr<Matcher> M) : SectionMatcher(std::move(M)){}; in Section() 136 std::unique_ptr<Matcher> SectionMatcher;
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | SpecialCaseList.cpp | 29 bool SpecialCaseList::Matcher::insert(std::string Regexp, in insert() 61 unsigned SpecialCaseList::Matcher::match(StringRef Query) const { in match() 179 std::unique_ptr<Matcher> M = make_unique<Matcher>(); in parse() 226 StringMap<Matcher>::const_iterator II = I->second.find(Category); in inSectionBlame()
|