aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-03-11 01:57:56 +0000
committerCraig Topper <craig.topper@gmail.com>2012-03-11 01:57:56 +0000
commit39bdc5526f9bb4985c5ea7711e603bb44707ed42 (patch)
tree3455da2b5d35524aaee7a653f2273a0d133aa4dd /include/llvm/MC
parentf522ce1f18726313058d81ba74ed8b44fa279d99 (diff)
downloadexternal_llvm-39bdc5526f9bb4985c5ea7711e603bb44707ed42.zip
external_llvm-39bdc5526f9bb4985c5ea7711e603bb44707ed42.tar.gz
external_llvm-39bdc5526f9bb4985c5ea7711e603bb44707ed42.tar.bz2
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
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MCInstrDesc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/MC/MCInstrDesc.h b/include/llvm/MC/MCInstrDesc.h
index 35bdd69..186612d 100644
--- a/include/llvm/MC/MCInstrDesc.h
+++ b/include/llvm/MC/MCInstrDesc.h
@@ -58,17 +58,17 @@ public:
/// if the operand is a register. If isLookupPtrRegClass is set, then this is
/// an index that is passed to TargetRegisterInfo::getPointerRegClass(x) to
/// get a dynamic register class.
- short RegClass;
+ int16_t RegClass;
/// Flags - These are flags from the MCOI::OperandFlags enum.
- unsigned short Flags;
+ uint8_t Flags;
+
+ /// OperandType - Information about the type of the operand.
+ uint8_t OperandType;
/// Lower 16 bits are used to specify which constraints are set. The higher 16
/// bits are used to specify the value of constraints (4 bits each).
- unsigned Constraints;
-
- /// OperandType - Information about the type of the operand.
- MCOI::OperandType OperandType;
+ uint32_t Constraints;
/// Currently no other information.
/// isLookupPtrRegClass - Set if this operand is a pointer value and it