Various tweaks related to apint codegen. No functionality

change for non-funky-sized integers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52151 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands
2008-06-09 15:48:25 +00:00
parent 8a6ccb5f73
commit 893076354a
4 changed files with 8 additions and 4 deletions

View File

@@ -261,6 +261,10 @@ namespace llvm {
(isExtended() && isVector() && getSizeInBits()==128));
}
/// isByteSized - Return true if the bit size is a multiple of 8.
inline bool isByteSized() const {
return (getSizeInBits() & 7) == 0;
}
/// bitsGT - Return true if this has more bits than VT.
inline bool bitsGT(MVT VT) const {