[llvm] r258489 - [TableGen] Reorder fields in AsmWriterOperand to remove padding and reduce size. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 21 21:59:41 PST 2016
Author: ctopper
Date: Thu Jan 21 23:59:40 2016
New Revision: 258489
URL: http://llvm.org/viewvc/llvm-project?rev=258489&view=rev
Log:
[TableGen] Reorder fields in AsmWriterOperand to remove padding and reduce size. NFC
Modified:
llvm/trunk/utils/TableGen/AsmWriterInst.h
Modified: llvm/trunk/utils/TableGen/AsmWriterInst.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterInst.h?rev=258489&r1=258488&r2=258489&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterInst.h (original)
+++ llvm/trunk/utils/TableGen/AsmWriterInst.h Thu Jan 21 23:59:40 2016
@@ -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;
More information about the llvm-commits
mailing list