diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-18 22:03:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-18 22:03:03 +0000 |
commit | 845c04273461b2a10754a1455b02916a19ea72aa (patch) | |
tree | ff9ae6782fbf3992ab943ad616dcaae56be2c0f2 /utils/TableGen/DAGISelMatcherEmitter.cpp | |
parent | 196c60a571f9dc1d2d627f37f664e4607ff2cac0 (diff) | |
download | external_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.cpp | 9 |
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; |