aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/DAGISelMatcherEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-17 06:23:39 +0000
committerChris Lattner <sabre@nondot.org>2010-02-17 06:23:39 +0000
commit9a747f1305e76025df2323a03b805a284f2cde77 (patch)
treec8db00f3284a94e5d8896e13a69a240c6f167b32 /utils/TableGen/DAGISelMatcherEmitter.cpp
parent8dc4f2bb609989c5c73990435d1b6d1aeb13297a (diff)
downloadexternal_llvm-9a747f1305e76025df2323a03b805a284f2cde77.zip
external_llvm-9a747f1305e76025df2323a03b805a284f2cde77.tar.gz
external_llvm-9a747f1305e76025df2323a03b805a284f2cde77.tar.bz2
Emulate the current isel's "IsChainCompatible" logic for now.
I'd like to eventually rip it out, but for now producing the same selections as the old matcher is more important. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcherEmitter.cpp')
-rw-r--r--utils/TableGen/DAGISelMatcherEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp
index 9b37254..8e29c47 100644
--- a/utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -204,6 +204,10 @@ EmitMatcher(const MatcherNode *N, unsigned Indent) {
case MatcherNode::CheckFoldableChainNode:
OS << "OPC_CheckFoldableChainNode,\n";
return 1;
+ case MatcherNode::CheckChainCompatible:
+ OS << "OPC_CheckChainCompatible, "
+ << cast<CheckChainCompatibleMatcherNode>(N)->getPreviousOp() << ",\n";
+ return 2;
}
assert(0 && "Unreachable");
return 0;