mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Add is16BitVector and is32BitVector to MVT and call them from EVT. Matches other similar methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
542b716bbc
commit
0f841b4f95
@ -181,6 +181,18 @@ namespace llvm {
|
|||||||
SimpleTy <= MVT::LAST_VECTOR_VALUETYPE);
|
SimpleTy <= MVT::LAST_VECTOR_VALUETYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// is16BitVector - Return true if this is a 16-bit vector type.
|
||||||
|
bool is16BitVector() const {
|
||||||
|
return (SimpleTy == MVT::v2i8 || SimpleTy == MVT::v1i16 ||
|
||||||
|
SimpleTy == MVT::v16i1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// is32BitVector - Return true if this is a 32-bit vector type.
|
||||||
|
bool is32BitVector() const {
|
||||||
|
return (SimpleTy == MVT::v4i8 || SimpleTy == MVT::v2i16 ||
|
||||||
|
SimpleTy == MVT::v1i32);
|
||||||
|
}
|
||||||
|
|
||||||
/// is64BitVector - Return true if this is a 64-bit vector type.
|
/// is64BitVector - Return true if this is a 64-bit vector type.
|
||||||
bool is64BitVector() const {
|
bool is64BitVector() const {
|
||||||
return (SimpleTy == MVT::v8i8 || SimpleTy == MVT::v4i16 ||
|
return (SimpleTy == MVT::v8i8 || SimpleTy == MVT::v4i16 ||
|
||||||
@ -563,19 +575,12 @@ namespace llvm {
|
|||||||
|
|
||||||
/// is16BitVector - Return true if this is a 16-bit vector type.
|
/// is16BitVector - Return true if this is a 16-bit vector type.
|
||||||
bool is16BitVector() const {
|
bool is16BitVector() const {
|
||||||
if (!isSimple())
|
return isSimple() ? V.is16BitVector() : isExtended16BitVector();
|
||||||
return isExtended16BitVector();
|
|
||||||
|
|
||||||
return (V == MVT::v2i8 || V==MVT::v1i16 || V == MVT::v16i1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// is32BitVector - Return true if this is a 32-bit vector type.
|
/// is32BitVector - Return true if this is a 32-bit vector type.
|
||||||
bool is32BitVector() const {
|
bool is32BitVector() const {
|
||||||
if (!isSimple())
|
return isSimple() ? V.is32BitVector() : isExtended32BitVector();
|
||||||
return isExtended32BitVector();
|
|
||||||
|
|
||||||
return (V == MVT::v4i8 || V==MVT::v2i16
|
|
||||||
|| V==MVT::v1i32);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// is64BitVector - Return true if this is a 64-bit vector type.
|
/// is64BitVector - Return true if this is a 64-bit vector type.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user