Searched refs:TreePredicateFn (Results 1 – 13 of 13) 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()285 TreePredicateFn Pred = cast<CheckPredicateMatcher>(N)->getPredicate(); in EmitMatcher()658 TreePredicateFn PredFn = NodePredicates[i]; in EmitPredicateFunctions()664 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; variable418 CheckPredicateMatcher(const TreePredicateFn &pred);420 TreePredicateFn getPredicate() const;
864 TreePredicateFn::TreePredicateFn(TreePattern *N) : PatFragRec(N) { in TreePredicateFn() function in TreePredicateFn870 bool TreePredicateFn::hasPredCode() const { in hasPredCode()875 std::string TreePredicateFn::getPredCode() const { in getPredCode()1107 bool TreePredicateFn::hasImmCode() const { in hasImmCode()1111 std::string TreePredicateFn::getImmCode() const { in getImmCode()1116 bool TreePredicateFn::immCodeUsesAPInt() const { in immCodeUsesAPInt()1120 bool TreePredicateFn::immCodeUsesAPFloat() const { in immCodeUsesAPFloat()1127 bool TreePredicateFn::isPredefinedPredicateEqualTo(StringRef Field, in isPredefinedPredicateEqualTo()1136 bool TreePredicateFn::usesOperands() const { in usesOperands()1139 bool TreePredicateFn::isLoad() const { in isLoad()[all …]
54 std::vector<TreePredicateFn> NodePredicates;55 std::vector<TreePredicateFn> NodePredicatesWithOperands;101 void EmitNodePredicatesFunction(const std::vector<TreePredicateFn> &Preds,109 unsigned getNodePredicate(TreePredicateFn Pred) { in getNodePredicate()128 assert(TreePredicateFn(SameCodePreds.front()).usesOperands() == in getNodePredicate()473 TreePredicateFn Pred = cast<CheckPredicateMatcher>(N)->getPredicate(); in EmitMatcher()877 const std::vector<TreePredicateFn> &Preds, StringRef Decl, in EmitNodePredicatesFunction()888 const TreePredicateFn PredFn = Preds[i]; in EmitNodePredicatesFunction()894 OS << " // " << TreePredicateFn(SimilarPred).getFnName() <<'\n'; in EmitNodePredicatesFunction()
59 std::vector<TreePredicateFn> PredsByName;62 unsigned getIDFor(TreePredicateFn Pred) { in getIDFor()71 const TreePredicateFn &getPredicate(unsigned i) { in getPredicate()76 typedef std::vector<TreePredicateFn>::const_iterator iterator;169 TreePredicateFn PredFn = ImmPredicates.getPredicate(Code-1); in emitImmediatePredicate()213 TreePredicateFn PredFn = Op->getPredicateCalls()[0].Fn; in initialize()
96 const TreePredicateFn &pred, const SmallVectorImpl<unsigned> &Ops) in CheckPredicateMatcher()100 TreePredicateFn CheckPredicateMatcher::getPredicate() const { in getPredicate()101 return TreePredicateFn(Pred); in getPredicate()
490 class TreePredicateFn {496 TreePredicateFn(TreePattern *N);515 bool operator==(const TreePredicateFn &RHS) const {519 bool operator!=(const TreePredicateFn &RHS) const { return !(*this == RHS); }612 TreePredicateFn Fn;618 TreePredicateCall(const TreePredicateFn &Fn, unsigned Scope) in TreePredicateCall()757 void addPredicateCall(const TreePredicateFn &Fn, unsigned Scope) { in addPredicateCall()
27 class TreePredicateFn; variable430 CheckPredicateMatcher(const TreePredicateFn &pred,433 TreePredicateFn getPredicate() const;
85 std::string getEnumNameForPredicate(const TreePredicateFn &Predicate) { in getEnumNameForPredicate()93 std::string getMatchOpcodeForPredicate(const TreePredicateFn &Predicate) { in getMatchOpcodeForPredicate()207 const TreePredicateFn &P = Call.Fn; in explainPredicates()313 const TreePredicateFn &Predicate = Call.Fn; in isTrivialOperatorNode()1906 TreePredicateFn Predicate;1910 const TreePredicateFn &Predicate) in InstructionImmPredicateMatcher()2167 TreePredicateFn Predicate;2171 TreePredicateFn Predicate) in GenericInstructionPredicateMatcher()3629 const TreePredicateFn &Predicate,3708 const TreePredicateFn &Predicate = Call.Fn; in getEquivNode()[all …]