summaryrefslogtreecommitdiff
path: root/utils/TableGen/DAGISelMatcher.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-10-04 05:52:17 +0000
committerCraig Topper <craig.topper@gmail.com>2013-10-04 05:52:17 +0000
commit596cfd045fa05c249083b5ff7cdb5e32f4d92b97 (patch)
tree4ec8f6a3f1f347d8717c9fabce8a6fbe1db55d0c /utils/TableGen/DAGISelMatcher.h
parentd3562956789dbd0571a7e46052bee64b153fa7c4 (diff)
downloadllvm-596cfd045fa05c249083b5ff7cdb5e32f4d92b97.tar.gz
llvm-596cfd045fa05c249083b5ff7cdb5e32f4d92b97.tar.bz2
llvm-596cfd045fa05c249083b5ff7cdb5e32f4d92b97.tar.xz
Revert r191940 to see if it fixes the build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcher.h')
-rw-r--r--utils/TableGen/DAGISelMatcher.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/utils/TableGen/DAGISelMatcher.h b/utils/TableGen/DAGISelMatcher.h
index 70031fa6d3..ebac7902de 100644
--- a/utils/TableGen/DAGISelMatcher.h
+++ b/utils/TableGen/DAGISelMatcher.h
@@ -55,7 +55,6 @@ public:
// Predicate checking.
CheckSame, // Fail if not same as prev match.
- CheckChildSame, // Fail if child not same as prev match.
CheckPatternPredicate,
CheckPredicate, // Fail if node predicate fails.
CheckOpcode, // Fail if not opcode.
@@ -123,7 +122,6 @@ public:
switch (getKind()) {
default: return false;
case CheckSame:
- case CheckChildSame:
case CheckPatternPredicate:
case CheckPredicate:
case CheckOpcode:
@@ -394,34 +392,6 @@ private:
virtual unsigned getHashImpl() const { return getMatchNumber(); }
};
-/// CheckChildSameMatcher - This checks to see if child node is exactly the same
-/// node as the specified match that was recorded with 'Record'. This is used
-/// when patterns have the same name in them, like '(mul GPR:$in, GPR:$in)'.
-class CheckChildSameMatcher : public Matcher {
- unsigned ChildNo;
- unsigned MatchNumber;
-public:
- CheckChildSameMatcher(unsigned childno, unsigned matchnumber)
- : Matcher(CheckChildSame), ChildNo(childno), MatchNumber(matchnumber) {}
-
- unsigned getChildNo() const { return ChildNo; }
- unsigned getMatchNumber() const { return MatchNumber; }
-
- static inline bool classof(const Matcher *N) {
- return N->getKind() == CheckChildSame;
- }
-
- virtual bool isSafeToReorderWithPatternPredicate() const { return true; }
-
-private:
- virtual void printImpl(raw_ostream &OS, unsigned indent) const;
- virtual bool isEqualImpl(const Matcher *M) const {
- return cast<CheckChildSameMatcher>(M)->ChildNo == ChildNo &&
- cast<CheckChildSameMatcher>(M)->MatchNumber == MatchNumber;
- }
- virtual unsigned getHashImpl() const { return (MatchNumber << 2) | ChildNo; }
-};
-
/// CheckPatternPredicateMatcher - This checks the target-specific predicate
/// to see if the entire pattern is capable of matching. This predicate does
/// not take a node as input. This is used for subtarget feature checks etc.