move MachineFrameInfo::CreateFixedObject out of line, give MachineFrameInfo
[oota-llvm.git] / include / llvm / CodeGen / ValueTypes.h
index 780482b0793358614d365f15947ba0a23fa06aa1..f2b8dfcccaddaccd0c23a9c5b233b3a8e9ebda0b 100644 (file)
@@ -2,8 +2,8 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -243,6 +243,13 @@ namespace MVT {  // MVT = Machine Value Types
     }
   }
 
+  /// MVT::getStoreSizeInBits - Return the number of bits overwritten by a
+  /// store of the specified value type.
+  ///
+  static inline unsigned getStoreSizeInBits(ValueType VT) {
+    return (getSizeInBits(VT) + 7)/8*8;
+  }
+
   /// MVT::getIntegerType - Returns the ValueType that represents an integer
   /// with the given number of bits.
   ///