mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Shrink and reorder some fields in MCOperandInfo to fit it in 8 bytes to reduce size of static tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -107,6 +107,11 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
|
||||
if (Inst.Operands[i].Rec->isSubClassOf("OptionalDefOperand"))
|
||||
Res += "|(1<<MCOI::OptionalDef)";
|
||||
|
||||
// Fill in operand type.
|
||||
Res += ", MCOI::";
|
||||
assert(!Inst.Operands[i].OperandType.empty() && "Invalid operand type.");
|
||||
Res += Inst.Operands[i].OperandType;
|
||||
|
||||
// Fill in constraint info.
|
||||
Res += ", ";
|
||||
|
||||
@@ -122,11 +127,6 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
|
||||
" << 16) | (1 << MCOI::TIED_TO))";
|
||||
}
|
||||
|
||||
// Fill in operand type.
|
||||
Res += ", MCOI::";
|
||||
assert(!Inst.Operands[i].OperandType.empty() && "Invalid operand type.");
|
||||
Res += Inst.Operands[i].OperandType;
|
||||
|
||||
Result.push_back(Res);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user