summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-01-22 05:59:40 +0000
committerCraig Topper <craig.topper@gmail.com>2016-01-22 05:59:40 +0000
commit6664c185184f42cd98cedd9f87297cb9fd643cac (patch)
treeb1990344ee8677b43e152b4c7f7d83b943993581 /llvm/utils
parentdb75cc184ad4dc6d7f0663942d4d74cb746a4287 (diff)
downloadbcm5719-llvm-6664c185184f42cd98cedd9f87297cb9fd643cac.tar.gz
bcm5719-llvm-6664c185184f42cd98cedd9f87297cb9fd643cac.zip
[TableGen] Reorder fields in AsmWriterOperand to remove padding and reduce size. NFC
llvm-svn: 258489
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/AsmWriterInst.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/utils/TableGen/AsmWriterInst.h b/llvm/utils/TableGen/AsmWriterInst.h
index ce3832f9d90..708f23cb5b0 100644
--- a/llvm/utils/TableGen/AsmWriterInst.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud