[llvm-commits] [llvm] r152833 - /llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Mar 15 13:44:06 PDT 2012
Author: stoklund
Date: Thu Mar 15 15:44:06 2012
New Revision: 152833
URL: http://llvm.org/viewvc/llvm-project?rev=152833&view=rev
Log:
Don't assume all mnemonics fit in 64k.
We currently assume that all targets have less than 64k opcodes. We
shouldn't limit it further.
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=152833&r1=152832&r2=152833&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Thu Mar 15 15:44:06 2012
@@ -2025,7 +2025,7 @@
OS << " struct OperandMatchEntry {\n";
OS << " static const char *MnemonicTable;\n";
OS << " unsigned OperandMask;\n";
- OS << " uint16_t Mnemonic;\n";
+ OS << " unsigned Mnemonic;\n";
OS << " " << getMinimalTypeForRange(Info.Classes.size())
<< " Class;\n";
OS << " " << getMinimalTypeForRange(1ULL << Info.SubtargetFeatures.size())
@@ -2322,7 +2322,7 @@
OS << " struct MatchEntry {\n";
OS << " static const char *MnemonicTable;\n";
OS << " uint16_t Opcode;\n";
- OS << " uint16_t Mnemonic;\n";
+ OS << " unsigned Mnemonic;\n";
OS << " " << getMinimalTypeForRange(Info.Matchables.size())
<< " ConvertFn;\n";
OS << " " << getMinimalTypeForRange(Info.Classes.size())
More information about the llvm-commits
mailing list