diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-05-06 02:37:59 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-05-06 02:37:59 +0000 |
commit | 05e772b36b929686c71f0c5f3c6e52cdae5d9ff2 (patch) | |
tree | 5bc6fc8c0f9e1ce4339790691b8934f9a7b1f741 /llvm/utils/TableGen/DAGISelMatcher.cpp | |
parent | b3fb529cc64de6e3345e85b831a65957f2b3fd4b (diff) | |
download | bcm5719-llvm-05e772b36b929686c71f0c5f3c6e52cdae5d9ff2.tar.gz bcm5719-llvm-05e772b36b929686c71f0c5f3c6e52cdae5d9ff2.zip |
[TableGen] Remove getHash support from DAGISelMatcher. It hasn't been used for some time.
llvm-svn: 268706
Diffstat (limited to 'llvm/utils/TableGen/DAGISelMatcher.cpp')
-rw-r--r-- | llvm/utils/TableGen/DAGISelMatcher.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcher.cpp b/llvm/utils/TableGen/DAGISelMatcher.cpp index da5fc4da560..6ac3958e0f4 100644 --- a/llvm/utils/TableGen/DAGISelMatcher.cpp +++ b/llvm/utils/TableGen/DAGISelMatcher.cpp @@ -283,44 +283,6 @@ void CompleteMatchMatcher::printImpl(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "Dst = " << *Pattern.getDstPattern() << "\n"; } -// getHashImpl Implementation. - -unsigned CheckPatternPredicateMatcher::getHashImpl() const { - return HashString(Predicate); -} - -unsigned CheckPredicateMatcher::getHashImpl() const { - return HashString(getPredicate().getFnName()); -} - -unsigned CheckOpcodeMatcher::getHashImpl() const { - return HashString(Opcode.getEnumName()); -} - -unsigned CheckCondCodeMatcher::getHashImpl() const { - return HashString(CondCodeName); -} - -unsigned CheckValueTypeMatcher::getHashImpl() const { - return HashString(TypeName); -} - -unsigned EmitStringIntegerMatcher::getHashImpl() const { - return HashString(Val) ^ VT; -} - -template<typename It> -static unsigned HashUnsigneds(It I, It E) { - unsigned Result = 0; - for (; I != E; ++I) - Result = (Result<<3) ^ *I; - return Result; -} - -unsigned EmitMergeInputChainsMatcher::getHashImpl() const { - return HashUnsigneds(ChainNodes.begin(), ChainNodes.end()); -} - bool CheckOpcodeMatcher::isEqualImpl(const Matcher *M) const { // Note: pointer equality isn't enough here, we have to check the enum names // to ensure that the nodes are for the same opcode. @@ -337,20 +299,10 @@ bool EmitNodeMatcherCommon::isEqualImpl(const Matcher *m) const { M->NumFixedArityOperands == NumFixedArityOperands; } -unsigned EmitNodeMatcherCommon::getHashImpl() const { - return (HashString(OpcodeName) << 4) | Operands.size(); -} - - void EmitNodeMatcher::anchor() { } void MorphNodeToMatcher::anchor() { } -unsigned CompleteMatchMatcher::getHashImpl() const { - return HashUnsigneds(Results.begin(), Results.end()) ^ - ((unsigned)(intptr_t)&Pattern << 8); -} - // isContradictoryImpl Implementations. static bool TypesAreContradictory(MVT::SimpleValueType T1, |