aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-01-05 20:04:48 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-01-05 20:04:48 +0000
commit13be48701d09891e7945f9522d622053e1b61d1a (patch)
tree5a6ce5b78054ceab87792eebc323b04b2df11e95 /include/llvm/Type.h
parent6786d5e18387465d6106eaef0b7923526ef0bc10 (diff)
Add a new predicate for integer type equality tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index e5169824f8..2c37a6890e 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -217,6 +217,9 @@ public:
///
bool isInteger() const { return ID == IntegerTyID; }
+ /// isInteger - Return true if this is an IntegerType of the specified width.
+ bool isInteger(unsigned Bitwidth) const;
+
/// isIntOrIntVector - Return true if this is an integer type or a vector of
/// integer types.
///