mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Add constants for first and last integer vector types to be consistent with floating point.
llvm-svn: 155787
This commit is contained in:
parent
9489f34a62
commit
5164acc298
@ -82,6 +82,8 @@ namespace llvm {
|
||||
|
||||
FIRST_VECTOR_VALUETYPE = v2i8,
|
||||
LAST_VECTOR_VALUETYPE = v4f64,
|
||||
FIRST_INTEGER_VECTOR_VALUETYPE = v2i8,
|
||||
LAST_INTEGER_VECTOR_VALUETYPE = v8i64,
|
||||
FIRST_FP_VECTOR_VALUETYPE = v2f16,
|
||||
LAST_FP_VECTOR_VALUETYPE = v4f64,
|
||||
|
||||
@ -161,7 +163,8 @@ namespace llvm {
|
||||
bool isInteger() const {
|
||||
return ((SimpleTy >= MVT::FIRST_INTEGER_VALUETYPE &&
|
||||
SimpleTy <= MVT::LAST_INTEGER_VALUETYPE) ||
|
||||
(SimpleTy >= MVT::v2i8 && SimpleTy <= MVT::v8i64));
|
||||
(SimpleTy >= MVT::FIRST_INTEGER_VECTOR_VALUETYPE &&
|
||||
SimpleTy <= MVT::LAST_INTEGER_VECTOR_VALUETYPE));
|
||||
}
|
||||
|
||||
/// isVector - Return true if this is a vector value type.
|
||||
|
Loading…
Reference in New Issue
Block a user