mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Add constants for first and last integer vector types to be consistent with floating point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7f7a9ba79
commit
db0bbdea47
@ -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…
x
Reference in New Issue
Block a user