aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/DAGISelMatcherEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-18 22:03:03 +0000
committerChris Lattner <sabre@nondot.org>2010-02-18 22:03:03 +0000
commit845c04273461b2a10754a1455b02916a19ea72aa (patch)
treeff9ae6782fbf3992ab943ad616dcaae56be2c0f2 /utils/TableGen/DAGISelMatcherEmitter.cpp
parent196c60a571f9dc1d2d627f37f664e4607ff2cac0 (diff)
downloadexternal_llvm-845c04273461b2a10754a1455b02916a19ea72aa.zip
external_llvm-845c04273461b2a10754a1455b02916a19ea72aa.tar.gz
external_llvm-845c04273461b2a10754a1455b02916a19ea72aa.tar.bz2
add support for referencing registers and immediates,
building the tree to represent them but not emitting table entries for them yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcherEmitter.cpp')
-rw-r--r--utils/TableGen/DAGISelMatcherEmitter.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp
index 158fe7f..92b2a55 100644
--- a/utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -125,8 +125,8 @@ EmitMatcher(const MatcherNode *N, unsigned Indent) {
<< *cast<EmitNodeMatcherNode>(N)->getPattern().getDstPattern() << "\n";
OS.PadToColumn(Indent*2) << "OPC_Emit, /*XXX*/\n\n";
return 1;
- case MatcherNode::Record:
- OS << "OPC_Record,";
+ case MatcherNode::RecordNode:
+ OS << "OPC_RecordNode,";
OS.PadToColumn(CommentIndent) << "// "
<< cast<RecordMatcherNode>(N)->getWhatFor() << '\n';
return 1;
@@ -212,6 +212,11 @@ EmitMatcher(const MatcherNode *N, unsigned Indent) {
OS << "OPC_CheckChainCompatible, "
<< cast<CheckChainCompatibleMatcherNode>(N)->getPreviousOp() << ",\n";
return 2;
+
+ case MatcherNode::EmitInteger:
+ case MatcherNode::EmitRegister:
+ // FIXME: Implement.
+ return 0;
}
assert(0 && "Unreachable");
return 0;