diff options
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index f029b213e0a..00ee28cfc09 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/utils/TableGen/CodeGenDAGPatterns.h @@ -998,20 +998,12 @@ public: /// processed to produce isel. class PatternToMatch { public: - PatternToMatch(Record *srcrecord, const std::vector<Predicate> &preds, + PatternToMatch(Record *srcrecord, std::vector<Predicate> preds, TreePatternNodePtr src, TreePatternNodePtr dst, - const std::vector<Record *> &dstregs, int complexity, + std::vector<Record *> dstregs, int complexity, unsigned uid, unsigned setmode = 0) : SrcRecord(srcrecord), SrcPattern(src), DstPattern(dst), - Predicates(preds), Dstregs(std::move(dstregs)), - AddedComplexity(complexity), ID(uid), ForceMode(setmode) {} - - PatternToMatch(Record *srcrecord, std::vector<Predicate> &&preds, - TreePatternNodePtr src, TreePatternNodePtr dst, - std::vector<Record *> &&dstregs, int complexity, unsigned uid, - unsigned setmode = 0) - : SrcRecord(srcrecord), SrcPattern(src), DstPattern(dst), - Predicates(preds), Dstregs(std::move(dstregs)), + Predicates(std::move(preds)), Dstregs(std::move(dstregs)), AddedComplexity(complexity), ID(uid), ForceMode(setmode) {} Record *SrcRecord; // Originating Record for the pattern. |