mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb18ca29e2
commit
dd20af266c
@ -2025,7 +2025,7 @@ static void EmitCustomOperandParsing(raw_ostream &OS, CodeGenTarget &Target,
|
||||
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 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
||||
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())
|
||||
|
Loading…
Reference in New Issue
Block a user