diff options
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/ValueTypes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index 780482b..6edf97a 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -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. /// |