Searched refs:TreePredicateFn (Results 1 – 6 of 6) sorted by relevance
271 class TreePredicateFn {277 TreePredicateFn(TreePattern *N);297 bool operator==(const TreePredicateFn &RHS) const {301 bool operator!=(const TreePredicateFn &RHS) const { return !(*this == RHS); }342 std::vector<TreePredicateFn> PredicateFns;405 const std::vector<TreePredicateFn> &getPredicateFns() const { in getPredicateFns()409 void setPredicateFns(const std::vector<TreePredicateFn> &Fns) { in setPredicateFns()413 void addPredicateFn(const TreePredicateFn &Fn) { in addPredicateFn()
49 std::vector<TreePredicateFn> PredsByName;52 unsigned getIDFor(TreePredicateFn Pred) { in getIDFor()61 const TreePredicateFn &getPredicate(unsigned i) { in getPredicate()66 typedef std::vector<TreePredicateFn>::const_iterator iterator;159 TreePredicateFn PredFn = ImmPredicates.getPredicate(Code-1); in emitImmediatePredicate()202 TreePredicateFn PredFn = Op->getPredicateFns()[0]; in initialize()
97 CheckPredicateMatcher::CheckPredicateMatcher(const TreePredicateFn &pred) in CheckPredicateMatcher()100 TreePredicateFn CheckPredicateMatcher::getPredicate() const { in getPredicate()101 return TreePredicateFn(Pred); in getPredicate()
39 std::vector<TreePredicateFn> NodePredicates;69 unsigned getNodePredicate(TreePredicateFn Pred) { in getNodePredicate()278 TreePredicateFn Pred = cast<CheckPredicateMatcher>(N)->getPredicate(); in EmitMatcher()653 TreePredicateFn PredFn = NodePredicates[i]; in EmitPredicateFunctions()659 OS << " // " << TreePredicateFn(SimilarPred).getFnName() <<'\n'; in EmitPredicateFunctions()
751 TreePredicateFn::TreePredicateFn(TreePattern *N) : PatFragRec(N) { in TreePredicateFn() function in TreePredicateFn756 std::string TreePredicateFn::getPredCode() const { in getPredCode()760 std::string TreePredicateFn::getImmCode() const { in getImmCode()766 bool TreePredicateFn::isAlwaysTrue() const { in isAlwaysTrue()772 std::string TreePredicateFn::getFnName() const { in getFnName()780 std::string TreePredicateFn::getCodeToRunOnSDNode() const { in getCodeToRunOnSDNode()1296 for (const TreePredicateFn &Pred : PredicateFns) in print()1440 TreePredicateFn PredFn(Frag); in InlinePatternFragments()1459 for (const TreePredicateFn &Pred : getPredicateFns()) in InlinePatternFragments()2522 TreePredicateFn PredFn(P); in ParsePatternFragments()
28 class TreePredicateFn; variable458 CheckPredicateMatcher(const TreePredicateFn &pred);460 TreePredicateFn getPredicate() const;