From 22c150cc7924019aa8a18c69ab27bbd1ccd77103 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 22 Jan 2016 05:59:40 +0000 Subject: [PATCH] [TableGen] Reorder fields in AsmWriterOperand to remove padding and reduce size. NFC llvm-svn: 258489 --- utils/TableGen/AsmWriterInst.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/utils/TableGen/AsmWriterInst.h b/utils/TableGen/AsmWriterInst.h index ce3832f9d90..708f23cb5b0 100644 --- a/utils/TableGen/AsmWriterInst.h +++ b/utils/TableGen/AsmWriterInst.h @@ -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;