diff options
author | Duncan Sands <baldrick@free.fr> | 2008-11-10 17:29:56 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-11-10 17:29:56 +0000 |
commit | dfb8bce12880d202cc65904a78e4e50d14a3c403 (patch) | |
tree | fe58a90f36a4fb05efe60250a068684e1c3f8ea1 /include | |
parent | 0fc01e49e560d197ec97b64070b868a9a2fda727 (diff) | |
download | external_llvm-dfb8bce12880d202cc65904a78e4e50d14a3c403.zip external_llvm-dfb8bce12880d202cc65904a78e4e50d14a3c403.tar.gz external_llvm-dfb8bce12880d202cc65904a78e4e50d14a3c403.tar.bz2 |
Small cleanups. No functionality change intended!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/ValueTypes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index 84e77fb..c655d36 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -272,6 +272,11 @@ namespace llvm { return BitSize >= 8 && !(BitSize & (BitSize - 1)); } + /// bitsEq - Return true if this has the same number of bits as VT. + bool bitsEq(MVT VT) const { + return getSizeInBits() == VT.getSizeInBits(); + } + /// bitsGT - Return true if this has more bits than VT. bool bitsGT(MVT VT) const { return getSizeInBits() > VT.getSizeInBits(); |