Change MachineOperand::OpKind from unsigned char to a bitfield. NFC.
authorPete Cooper <peter_cooper@apple.com>
Wed, 22 Apr 2015 17:48:26 +0000 (17:48 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 22 Apr 2015 17:48:26 +0000 (17:48 +0000)
This causes OpKind and all the bitfields after it to use 32-bit load/stores instead of i24's for the existing bitfields.

Bugs will be filed to track whether clang and llvm could have generated the 32-bit operations in the front-end or optimizer.

Reviewed by Rafael.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235528 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineOperand.h

index 04d5361ed5dde31e291b6d3fc3b2bc8fb4b23ff7..4e1a3f81d265fc94449681c2e90f7e0845fe0e00 100644 (file)
@@ -65,7 +65,7 @@ public:
 private:
   /// OpKind - Specify what kind of operand this is.  This discriminates the
   /// union.
-  MachineOperandType OpKind;
+  MachineOperandType OpKind : 8;
 
   /// Subregister number for MO_Register.  A value of 0 indicates the
   /// MO_Register has no subReg.