From a230f9623d864450d432bb76c397b0cb35a3437e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 27 Feb 2010 21:48:43 +0000 Subject: change CheckOpcodeMatcher to hold the SDNodeInfo instead of the opcode name. This gives the optimizer more semantic info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97346 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/DAGISelMatcherEmitter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'utils/TableGen/DAGISelMatcherEmitter.cpp') diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp index 7c0846a..450a457 100644 --- a/utils/TableGen/DAGISelMatcherEmitter.cpp +++ b/utils/TableGen/DAGISelMatcherEmitter.cpp @@ -269,16 +269,16 @@ EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx, case Matcher::CheckOpcode: OS << "OPC_CheckOpcode, " - << cast(N)->getOpcodeName() << ",\n"; + << cast(N)->getOpcode().getEnumName() << ",\n"; return 2; case Matcher::CheckMultiOpcode: { const CheckMultiOpcodeMatcher *CMO = cast(N); - OS << "OPC_CheckMultiOpcode, " << CMO->getNumOpcodeNames() << ", "; - for (unsigned i = 0, e = CMO->getNumOpcodeNames(); i != e; ++i) - OS << CMO->getOpcodeName(i) << ", "; + OS << "OPC_CheckMultiOpcode, " << CMO->getNumOpcodes() << ", "; + for (unsigned i = 0, e = CMO->getNumOpcodes(); i != e; ++i) + OS << CMO->getOpcode(i).getEnumName() << ", "; OS << '\n'; - return 2 + CMO->getNumOpcodeNames(); + return 2 + CMO->getNumOpcodes(); } case Matcher::CheckType: -- cgit v1.1