mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
[TableGen] Reorder fields in AsmWriterOperand to remove padding and reduce size. NFC
llvm-svn: 258489
This commit is contained in:
parent
fc34e453b1
commit
22c150cc79
@ -35,16 +35,16 @@ namespace llvm {
|
||||
isLiteralStatementOperand
|
||||
} OperandType;
|
||||
|
||||
/// MiOpNo - For isMachineInstrOperand, this is the operand number of the
|
||||
/// machine instruction.
|
||||
unsigned MIOpNo;
|
||||
|
||||
/// Str - For isLiteralTextOperand, this IS the literal text. For
|
||||
/// isMachineInstrOperand, this is the PrinterMethodName for the operand..
|
||||
/// For isLiteralStatementOperand, this is the code to insert verbatim
|
||||
/// into the asm writer.
|
||||
std::string Str;
|
||||
|
||||
/// MiOpNo - For isMachineInstrOperand, this is the operand number of the
|
||||
/// machine instruction.
|
||||
unsigned MIOpNo;
|
||||
|
||||
/// MiModifier - For isMachineInstrOperand, this is the modifier string for
|
||||
/// an operand, specified with syntax like ${opname:modifier}.
|
||||
std::string MiModifier;
|
||||
@ -60,8 +60,7 @@ namespace llvm {
|
||||
unsigned _MIOpNo,
|
||||
const std::string &Modifier,
|
||||
OpType op = isMachineInstrOperand)
|
||||
: OperandType(op), Str(Printer), MIOpNo(_MIOpNo),
|
||||
MiModifier(Modifier) {}
|
||||
: OperandType(op), MIOpNo(_MIOpNo), Str(Printer), MiModifier(Modifier) {}
|
||||
|
||||
bool operator!=(const AsmWriterOperand &Other) const {
|
||||
if (OperandType != Other.OperandType || Str != Other.Str) return true;
|
||||
|
Loading…
Reference in New Issue
Block a user