diff options
author | Craig Topper <craig.topper@intel.com> | 2018-06-10 23:15:48 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-06-10 23:15:48 +0000 |
commit | d78567f16f6ac38fcef0ad4313e93e8e960f502c (patch) | |
tree | f847d5cfc1a5e45e7f2fdbc68c5fe00c58edd97c | |
parent | 3e5c70cc1d8e939d44d1662bd641179cb93810dc (diff) | |
download | bcm5719-llvm-d78567f16f6ac38fcef0ad4313e93e8e960f502c.tar.gz bcm5719-llvm-d78567f16f6ac38fcef0ad4313e93e8e960f502c.zip |
[TableGen] Combine two constructors by taking vectors by value instead of trying to support combininations for rvalue and lvalue references.
llvm-svn: 334379
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h index f029b213e0a..00ee28cfc09 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.h +++ b/llvm/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. |