projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move MachineFrameInfo::CreateFixedObject out of line, give MachineFrameInfo
[oota-llvm.git]
/
include
/
llvm
/
CodeGen
/
ValueTypes.h
diff --git
a/include/llvm/CodeGen/ValueTypes.h
b/include/llvm/CodeGen/ValueTypes.h
index 780482b0793358614d365f15947ba0a23fa06aa1..f2b8dfcccaddaccd0c23a9c5b233b3a8e9ebda0b 100644
(file)
--- a/
include/llvm/CodeGen/ValueTypes.h
+++ b/
include/llvm/CodeGen/ValueTypes.h
@@
-2,8
+2,8
@@
//
// The LLVM Compiler Infrastructure
//
//
// 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.
///
/// MVT::getIntegerType - Returns the ValueType that represents an integer
/// with the given number of bits.
///