summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-05-06 06:21:27 +0000
committerCraig Topper <craig.topper@gmail.com>2016-05-06 06:21:27 +0000
commit00b2aa28184447f953f6e10801f346bc4b7e61b3 (patch)
tree59e4e396bba29ff145d0d6a99a3f0e25918a7992 /utils
parentea2fb7d1dd29bb7c569c1f6b1f0317b24e58fc47 (diff)
[TableGen] Remove isSafeToReorderWithPatternPredicate from DAGISelMatchers as its not used anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/DAGISelMatcher.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/utils/TableGen/DAGISelMatcher.h b/utils/TableGen/DAGISelMatcher.h
index 2646c873b20..6bda9ca5f96 100644
--- a/utils/TableGen/DAGISelMatcher.h
+++ b/utils/TableGen/DAGISelMatcher.h
@@ -106,12 +106,6 @@ public:
return isEqualImpl(M);
}
- /// isSafeToReorderWithPatternPredicate - Return true if it is safe to sink a
- /// PatternPredicate node past this one.
- virtual bool isSafeToReorderWithPatternPredicate() const {
- return false;
- }
-
/// isSimplePredicateNode - Return true if this is a simple predicate that
/// operates on the node or its children without potential side effects or a
/// change of the current node.
@@ -243,7 +237,6 @@ public:
return N->getKind() == RecordNode;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override { return true; }
@@ -276,8 +269,6 @@ public:
return N->getKind() == RecordChild;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -294,8 +285,6 @@ public:
return N->getKind() == RecordMemRef;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override { return true; }
@@ -312,8 +301,6 @@ public:
return N->getKind() == CaptureGlueInput;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override { return true; }
@@ -332,8 +319,6 @@ public:
return N->getKind() == MoveChild;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -351,8 +336,6 @@ public:
return N->getKind() == MoveParent;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override { return true; }
@@ -373,8 +356,6 @@ public:
return N->getKind() == CheckSame;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -399,8 +380,6 @@ public:
return N->getKind() == CheckChildSame;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -424,8 +403,6 @@ public:
return N->getKind() == CheckPatternPredicate;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -446,9 +423,6 @@ public:
return N->getKind() == CheckPredicate;
}
- // TODO: Ok?
- //virtual bool isSafeToReorderWithPatternPredicate() const { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -471,8 +445,6 @@ public:
return N->getKind() == CheckOpcode;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override;
@@ -521,8 +493,6 @@ public:
return N->getKind() == CheckType;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -574,8 +544,6 @@ public:
return N->getKind() == CheckChildType;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -600,8 +568,6 @@ public:
return N->getKind() == CheckInteger;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -626,8 +592,6 @@ public:
return N->getKind() == CheckChildInteger;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -651,8 +615,6 @@ public:
return N->getKind() == CheckCondCode;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -674,8 +636,6 @@ public:
return N->getKind() == CheckValueType;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -717,9 +677,6 @@ public:
return N->getKind() == CheckComplexPat;
}
- // Not safe to move a pattern predicate past a complex pattern.
- bool isSafeToReorderWithPatternPredicate() const override { return false; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -742,8 +699,6 @@ public:
return N->getKind() == CheckAndImm;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -765,8 +720,6 @@ public:
return N->getKind() == CheckOrImm;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override {
@@ -785,8 +738,6 @@ public:
return N->getKind() == CheckFoldableChainNode;
}
- bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
private:
void printImpl(raw_ostream &OS, unsigned indent) const override;
bool isEqualImpl(const Matcher *M) const override { return true; }