1 //===- CodeGen/ValueTypes.h - Low-Level Target independ. types --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the set of low-level target independent types which various
11 // values in the code generator are. This allows the target specific behavior
12 // of instructions to be described to target independent passes.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_CODEGEN_VALUETYPES_H
17 #define LLVM_CODEGEN_VALUETYPES_H
19 #include "llvm/Support/DataTypes.h"
20 #include "llvm/Support/ErrorHandling.h"
21 #include "llvm/Support/MathExtras.h"
30 /// MVT - Machine Value Type. Every type that is supported natively by some
31 /// processor targeted by LLVM occurs here. This means that any legal value
32 /// type can be represented by a MVT.
35 enum SimpleValueType {
36 // INVALID_SIMPLE_VALUE_TYPE - Simple value types less than zero are
37 // considered extended value types.
38 INVALID_SIMPLE_VALUE_TYPE = -1,
40 // If you change this numbering, you must change the values in
41 // ValueTypes.td as well!
42 Other = 0, // This is a non-standard value
43 i1 = 1, // This is a 1 bit integer value
44 i8 = 2, // This is an 8 bit integer value
45 i16 = 3, // This is a 16 bit integer value
46 i32 = 4, // This is a 32 bit integer value
47 i64 = 5, // This is a 64 bit integer value
48 i128 = 6, // This is a 128 bit integer value
50 FIRST_INTEGER_VALUETYPE = i1,
51 LAST_INTEGER_VALUETYPE = i128,
53 f16 = 7, // This is a 16 bit floating point value
54 f32 = 8, // This is a 32 bit floating point value
55 f64 = 9, // This is a 64 bit floating point value
56 f80 = 10, // This is a 80 bit floating point value
57 f128 = 11, // This is a 128 bit floating point value
58 ppcf128 = 12, // This is a PPC 128-bit floating point value
60 FIRST_FP_VALUETYPE = f16,
61 LAST_FP_VALUETYPE = ppcf128,
66 v16i1 = 16, // 16 x i1
70 v16i8 = 20, // 16 x i8
71 v32i8 = 21, // 32 x i8
72 v1i16 = 22, // 1 x i16
73 v2i16 = 23, // 2 x i16
74 v4i16 = 24, // 4 x i16
75 v8i16 = 25, // 8 x i16
76 v16i16 = 26, // 16 x i16
77 v1i32 = 27, // 1 x i32
78 v2i32 = 28, // 2 x i32
79 v4i32 = 29, // 4 x i32
80 v8i32 = 30, // 8 x i32
81 v16i32 = 31, // 16 x i32
82 v1i64 = 32, // 1 x i64
83 v2i64 = 33, // 2 x i64
84 v4i64 = 34, // 4 x i64
85 v8i64 = 35, // 8 x i64
86 v16i64 = 36, // 16 x i64
88 v2f16 = 37, // 2 x f16
89 v2f32 = 38, // 2 x f32
90 v4f32 = 39, // 4 x f32
91 v8f32 = 40, // 8 x f32
92 v2f64 = 41, // 2 x f64
93 v4f64 = 42, // 4 x f64
95 FIRST_VECTOR_VALUETYPE = v2i1,
96 LAST_VECTOR_VALUETYPE = v4f64,
97 FIRST_INTEGER_VECTOR_VALUETYPE = v2i1,
98 LAST_INTEGER_VECTOR_VALUETYPE = v16i64,
99 FIRST_FP_VECTOR_VALUETYPE = v2f16,
100 LAST_FP_VECTOR_VALUETYPE = v4f64,
102 x86mmx = 43, // This is an X86 MMX value
104 Glue = 44, // This glues nodes together during pre-RA sched
106 isVoid = 45, // This has no value
108 Untyped = 46, // This value takes a register, but has
109 // unspecified type. The register class
110 // will be determined by the opcode.
112 LAST_VALUETYPE = 47, // This always remains at the end of the list.
114 // This is the current maximum for LAST_VALUETYPE.
115 // MVT::MAX_ALLOWED_VALUETYPE is used for asserts and to size bit vectors
116 // This value must be a multiple of 32.
117 MAX_ALLOWED_VALUETYPE = 64,
119 // Metadata - This is MDNode or MDString.
122 // iPTRAny - An int value the size of the pointer of the current
123 // target to any address space. This must only be used internal to
124 // tblgen. Other than for overloading, we treat iPTRAny the same as iPTR.
127 // vAny - A vector with any length and element size. This is used
128 // for intrinsics that have overloadings based on vector types.
129 // This is only for tblgen's consumption!
132 // fAny - Any floating-point or vector floating-point value. This is used
133 // for intrinsics that have overloadings based on floating-point types.
134 // This is only for tblgen's consumption!
137 // iAny - An integer or vector integer value of any bit width. This is
138 // used for intrinsics that have overloadings based on integer bit widths.
139 // This is only for tblgen's consumption!
142 // iPTR - An int value the size of the pointer of the current
143 // target. This should only be used internal to tblgen!
147 SimpleValueType SimpleTy;
149 MVT() : SimpleTy((SimpleValueType)(INVALID_SIMPLE_VALUE_TYPE)) {}
150 MVT(SimpleValueType SVT) : SimpleTy(SVT) { }
152 bool operator>(const MVT& S) const { return SimpleTy > S.SimpleTy; }
153 bool operator<(const MVT& S) const { return SimpleTy < S.SimpleTy; }
154 bool operator==(const MVT& S) const { return SimpleTy == S.SimpleTy; }
155 bool operator!=(const MVT& S) const { return SimpleTy != S.SimpleTy; }
156 bool operator>=(const MVT& S) const { return SimpleTy >= S.SimpleTy; }
157 bool operator<=(const MVT& S) const { return SimpleTy <= S.SimpleTy; }
159 /// isFloatingPoint - Return true if this is a FP, or a vector FP type.
160 bool isFloatingPoint() const {
161 return ((SimpleTy >= MVT::FIRST_FP_VALUETYPE &&
162 SimpleTy <= MVT::LAST_FP_VALUETYPE) ||
163 (SimpleTy >= MVT::FIRST_FP_VECTOR_VALUETYPE &&
164 SimpleTy <= MVT::LAST_FP_VECTOR_VALUETYPE));
167 /// isInteger - Return true if this is an integer, or a vector integer type.
168 bool isInteger() const {
169 return ((SimpleTy >= MVT::FIRST_INTEGER_VALUETYPE &&
170 SimpleTy <= MVT::LAST_INTEGER_VALUETYPE) ||
171 (SimpleTy >= MVT::FIRST_INTEGER_VECTOR_VALUETYPE &&
172 SimpleTy <= MVT::LAST_INTEGER_VECTOR_VALUETYPE));
175 /// isVector - Return true if this is a vector value type.
176 bool isVector() const {
177 return (SimpleTy >= MVT::FIRST_VECTOR_VALUETYPE &&
178 SimpleTy <= MVT::LAST_VECTOR_VALUETYPE);
181 /// is16BitVector - Return true if this is a 16-bit vector type.
182 bool is16BitVector() const {
183 return (SimpleTy == MVT::v2i8 || SimpleTy == MVT::v1i16 ||
184 SimpleTy == MVT::v16i1);
187 /// is32BitVector - Return true if this is a 32-bit vector type.
188 bool is32BitVector() const {
189 return (SimpleTy == MVT::v4i8 || SimpleTy == MVT::v2i16 ||
190 SimpleTy == MVT::v1i32);
193 /// is64BitVector - Return true if this is a 64-bit vector type.
194 bool is64BitVector() const {
195 return (SimpleTy == MVT::v8i8 || SimpleTy == MVT::v4i16 ||
196 SimpleTy == MVT::v2i32 || SimpleTy == MVT::v1i64 ||
197 SimpleTy == MVT::v2f32);
200 /// is128BitVector - Return true if this is a 128-bit vector type.
201 bool is128BitVector() const {
202 return (SimpleTy == MVT::v16i8 || SimpleTy == MVT::v8i16 ||
203 SimpleTy == MVT::v4i32 || SimpleTy == MVT::v2i64 ||
204 SimpleTy == MVT::v4f32 || SimpleTy == MVT::v2f64);
207 /// is256BitVector - Return true if this is a 256-bit vector type.
208 bool is256BitVector() const {
209 return (SimpleTy == MVT::v8f32 || SimpleTy == MVT::v4f64 ||
210 SimpleTy == MVT::v32i8 || SimpleTy == MVT::v16i16 ||
211 SimpleTy == MVT::v8i32 || SimpleTy == MVT::v4i64);
214 /// is512BitVector - Return true if this is a 512-bit vector type.
215 bool is512BitVector() const {
216 return (SimpleTy == MVT::v8i64 || SimpleTy == MVT::v16i32);
219 /// is1024BitVector - Return true if this is a 1024-bit vector type.
220 bool is1024BitVector() const {
221 return (SimpleTy == MVT::v16i64);
224 /// isPow2VectorType - Returns true if the given vector is a power of 2.
225 bool isPow2VectorType() const {
226 unsigned NElts = getVectorNumElements();
227 return !(NElts & (NElts - 1));
230 /// getPow2VectorType - Widens the length of the given vector MVT up to
231 /// the nearest power of 2 and returns that type.
232 MVT getPow2VectorType() const {
233 if (isPow2VectorType())
236 unsigned NElts = getVectorNumElements();
237 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts);
238 return MVT::getVectorVT(getVectorElementType(), Pow2NElts);
241 /// getScalarType - If this is a vector type, return the element type,
242 /// otherwise return this.
243 MVT getScalarType() const {
244 return isVector() ? getVectorElementType() : *this;
247 MVT getVectorElementType() const {
250 llvm_unreachable("Not a vector MVT!");
254 case v16i1: return i1;
259 case v32i8: return i8;
264 case v16i16: return i16;
269 case v16i32: return i32;
274 case v16i64: return i64;
275 case v2f16: return f16;
278 case v8f32: return f32;
280 case v4f64: return f64;
284 unsigned getVectorNumElements() const {
287 llvm_unreachable("Not a vector MVT!");
288 case v32i8: return 32;
293 case v16i64:return 16;
299 case v8f32: return 8;
306 case v4f64: return 4;
314 case v2f64: return 2;
317 case v1i64: return 1;
321 unsigned getSizeInBits() const {
324 llvm_unreachable("Value type size is target-dependent. Ask TLI.");
329 llvm_unreachable("Value type is overloaded.");
331 llvm_unreachable("Value type is metadata.");
333 llvm_unreachable("getSizeInBits called on extended MVT.");
343 case v1i16: return 16;
349 case v1i32: return 32;
357 case v2f32: return 64;
358 case f80 : return 80;
367 case v2f64: return 128;
373 case v4f64: return 256;
375 case v8i64: return 512;
376 case v16i64:return 1024;
380 /// getStoreSize - Return the number of bytes overwritten by a store
381 /// of the specified value type.
382 unsigned getStoreSize() const {
383 return (getSizeInBits() + 7) / 8;
386 /// getStoreSizeInBits - Return the number of bits overwritten by a store
387 /// of the specified value type.
388 unsigned getStoreSizeInBits() const {
389 return getStoreSize() * 8;
392 /// Return true if this has more bits than VT.
393 bool bitsGT(MVT VT) const {
394 return getSizeInBits() > VT.getSizeInBits();
397 /// Return true if this has no less bits than VT.
398 bool bitsGE(MVT VT) const {
399 return getSizeInBits() >= VT.getSizeInBits();
402 /// Return true if this has less bits than VT.
403 bool bitsLT(MVT VT) const {
404 return getSizeInBits() < VT.getSizeInBits();
407 /// Return true if this has no more bits than VT.
408 bool bitsLE(MVT VT) const {
409 return getSizeInBits() <= VT.getSizeInBits();
413 static MVT getFloatingPointVT(unsigned BitWidth) {
416 llvm_unreachable("Bad bit width!");
430 static MVT getIntegerVT(unsigned BitWidth) {
433 return (MVT::SimpleValueType)(MVT::INVALID_SIMPLE_VALUE_TYPE);
449 static MVT getVectorVT(MVT VT, unsigned NumElements) {
450 switch (VT.SimpleTy) {
454 if (NumElements == 2) return MVT::v2i1;
455 if (NumElements == 4) return MVT::v4i1;
456 if (NumElements == 8) return MVT::v8i1;
457 if (NumElements == 16) return MVT::v16i1;
460 if (NumElements == 2) return MVT::v2i8;
461 if (NumElements == 4) return MVT::v4i8;
462 if (NumElements == 8) return MVT::v8i8;
463 if (NumElements == 16) return MVT::v16i8;
464 if (NumElements == 32) return MVT::v32i8;
467 if (NumElements == 1) return MVT::v1i16;
468 if (NumElements == 2) return MVT::v2i16;
469 if (NumElements == 4) return MVT::v4i16;
470 if (NumElements == 8) return MVT::v8i16;
471 if (NumElements == 16) return MVT::v16i16;
474 if (NumElements == 1) return MVT::v1i32;
475 if (NumElements == 2) return MVT::v2i32;
476 if (NumElements == 4) return MVT::v4i32;
477 if (NumElements == 8) return MVT::v8i32;
478 if (NumElements == 16) return MVT::v16i32;
481 if (NumElements == 1) return MVT::v1i64;
482 if (NumElements == 2) return MVT::v2i64;
483 if (NumElements == 4) return MVT::v4i64;
484 if (NumElements == 8) return MVT::v8i64;
485 if (NumElements == 16) return MVT::v16i64;
488 if (NumElements == 2) return MVT::v2f16;
491 if (NumElements == 2) return MVT::v2f32;
492 if (NumElements == 4) return MVT::v4f32;
493 if (NumElements == 8) return MVT::v8f32;
496 if (NumElements == 2) return MVT::v2f64;
497 if (NumElements == 4) return MVT::v4f64;
500 return (MVT::SimpleValueType)(MVT::INVALID_SIMPLE_VALUE_TYPE);
503 /// Return the value type corresponding to the specified type. This returns
504 /// all pointers as iPTR. If HandleUnknown is true, unknown types are
505 /// returned as Other, otherwise they are invalid.
506 static MVT getVT(Type *Ty, bool HandleUnknown = false);
511 /// EVT - Extended Value Type. Capable of holding value types which are not
512 /// native for any processor (such as the i12345 type), as well as the types
513 /// a MVT can represent.
520 EVT() : V((MVT::SimpleValueType)(MVT::INVALID_SIMPLE_VALUE_TYPE)),
522 EVT(MVT::SimpleValueType SVT) : V(SVT), LLVMTy(0) { }
523 EVT(MVT S) : V(S), LLVMTy(0) {}
525 bool operator==(EVT VT) const {
526 return !(*this != VT);
528 bool operator!=(EVT VT) const {
529 if (V.SimpleTy != VT.V.SimpleTy)
532 return LLVMTy != VT.LLVMTy;
536 /// getFloatingPointVT - Returns the EVT that represents a floating point
537 /// type with the given number of bits. There are two floating point types
538 /// with 128 bits - this returns f128 rather than ppcf128.
539 static EVT getFloatingPointVT(unsigned BitWidth) {
540 return MVT::getFloatingPointVT(BitWidth);
543 /// getIntegerVT - Returns the EVT that represents an integer with the given
545 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) {
546 MVT M = MVT::getIntegerVT(BitWidth);
549 return getExtendedIntegerVT(Context, BitWidth);
552 /// getVectorVT - Returns the EVT that represents a vector NumElements in
553 /// length, where each element is of type VT.
554 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements) {
555 MVT M = MVT::getVectorVT(VT.V, NumElements);
558 return getExtendedVectorVT(Context, VT, NumElements);
561 /// changeVectorElementTypeToInteger - Return a vector with the same number
562 /// of elements as this vector, but with the element type converted to an
563 /// integer type with the same bitwidth.
564 EVT changeVectorElementTypeToInteger() const {
566 return changeExtendedVectorElementTypeToInteger();
567 MVT EltTy = getSimpleVT().getVectorElementType();
568 unsigned BitWidth = EltTy.getSizeInBits();
569 MVT IntTy = MVT::getIntegerVT(BitWidth);
570 MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements());
571 assert(VecTy.SimpleTy >= 0 &&
572 "Simple vector VT not representable by simple integer vector VT!");
576 /// isSimple - Test if the given EVT is simple (as opposed to being
578 bool isSimple() const {
579 return V.SimpleTy >= 0;
582 /// isExtended - Test if the given EVT is extended (as opposed to
584 bool isExtended() const {
588 /// isFloatingPoint - Return true if this is a FP, or a vector FP type.
589 bool isFloatingPoint() const {
590 return isSimple() ? V.isFloatingPoint() : isExtendedFloatingPoint();
593 /// isInteger - Return true if this is an integer, or a vector integer type.
594 bool isInteger() const {
595 return isSimple() ? V.isInteger() : isExtendedInteger();
598 /// isVector - Return true if this is a vector value type.
599 bool isVector() const {
600 return isSimple() ? V.isVector() : isExtendedVector();
603 /// is16BitVector - Return true if this is a 16-bit vector type.
604 bool is16BitVector() const {
605 return isSimple() ? V.is16BitVector() : isExtended16BitVector();
608 /// is32BitVector - Return true if this is a 32-bit vector type.
609 bool is32BitVector() const {
610 return isSimple() ? V.is32BitVector() : isExtended32BitVector();
613 /// is64BitVector - Return true if this is a 64-bit vector type.
614 bool is64BitVector() const {
615 return isSimple() ? V.is64BitVector() : isExtended64BitVector();
618 /// is128BitVector - Return true if this is a 128-bit vector type.
619 bool is128BitVector() const {
620 return isSimple() ? V.is128BitVector() : isExtended128BitVector();
623 /// is256BitVector - Return true if this is a 256-bit vector type.
624 bool is256BitVector() const {
625 return isSimple() ? V.is256BitVector() : isExtended256BitVector();
628 /// is512BitVector - Return true if this is a 512-bit vector type.
629 bool is512BitVector() const {
630 return isSimple() ? V.is512BitVector() : isExtended512BitVector();
633 /// is1024BitVector - Return true if this is a 1024-bit vector type.
634 bool is1024BitVector() const {
635 return isSimple() ? V.is1024BitVector() : isExtended1024BitVector();
638 /// isOverloaded - Return true if this is an overloaded type for TableGen.
639 bool isOverloaded() const {
640 return (V==MVT::iAny || V==MVT::fAny || V==MVT::vAny || V==MVT::iPTRAny);
643 /// isByteSized - Return true if the bit size is a multiple of 8.
644 bool isByteSized() const {
645 return (getSizeInBits() & 7) == 0;
648 /// isRound - Return true if the size is a power-of-two number of bytes.
649 bool isRound() const {
650 unsigned BitSize = getSizeInBits();
651 return BitSize >= 8 && !(BitSize & (BitSize - 1));
654 /// bitsEq - Return true if this has the same number of bits as VT.
655 bool bitsEq(EVT VT) const {
656 if (EVT::operator==(VT)) return true;
657 return getSizeInBits() == VT.getSizeInBits();
660 /// bitsGT - Return true if this has more bits than VT.
661 bool bitsGT(EVT VT) const {
662 if (EVT::operator==(VT)) return false;
663 return getSizeInBits() > VT.getSizeInBits();
666 /// bitsGE - Return true if this has no less bits than VT.
667 bool bitsGE(EVT VT) const {
668 if (EVT::operator==(VT)) return true;
669 return getSizeInBits() >= VT.getSizeInBits();
672 /// bitsLT - Return true if this has less bits than VT.
673 bool bitsLT(EVT VT) const {
674 if (EVT::operator==(VT)) return false;
675 return getSizeInBits() < VT.getSizeInBits();
678 /// bitsLE - Return true if this has no more bits than VT.
679 bool bitsLE(EVT VT) const {
680 if (EVT::operator==(VT)) return true;
681 return getSizeInBits() <= VT.getSizeInBits();
685 /// getSimpleVT - Return the SimpleValueType held in the specified
687 MVT getSimpleVT() const {
688 assert(isSimple() && "Expected a SimpleValueType!");
692 /// getScalarType - If this is a vector type, return the element type,
693 /// otherwise return this.
694 EVT getScalarType() const {
695 return isVector() ? getVectorElementType() : *this;
698 /// getVectorElementType - Given a vector type, return the type of
700 EVT getVectorElementType() const {
701 assert(isVector() && "Invalid vector type!");
703 return V.getVectorElementType();
704 return getExtendedVectorElementType();
707 /// getVectorNumElements - Given a vector type, return the number of
708 /// elements it contains.
709 unsigned getVectorNumElements() const {
710 assert(isVector() && "Invalid vector type!");
712 return V.getVectorNumElements();
713 return getExtendedVectorNumElements();
716 /// getSizeInBits - Return the size of the specified value type in bits.
717 unsigned getSizeInBits() const {
719 return V.getSizeInBits();
720 return getExtendedSizeInBits();
723 /// getStoreSize - Return the number of bytes overwritten by a store
724 /// of the specified value type.
725 unsigned getStoreSize() const {
726 return (getSizeInBits() + 7) / 8;
729 /// getStoreSizeInBits - Return the number of bits overwritten by a store
730 /// of the specified value type.
731 unsigned getStoreSizeInBits() const {
732 return getStoreSize() * 8;
735 /// getRoundIntegerType - Rounds the bit-width of the given integer EVT up
736 /// to the nearest power of two (and at least to eight), and returns the
737 /// integer EVT with that number of bits.
738 EVT getRoundIntegerType(LLVMContext &Context) const {
739 assert(isInteger() && !isVector() && "Invalid integer type!");
740 unsigned BitWidth = getSizeInBits();
743 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth));
746 /// getHalfSizedIntegerVT - Finds the smallest simple value type that is
747 /// greater than or equal to half the width of this EVT. If no simple
748 /// value type can be found, an extended integer value type of half the
749 /// size (rounded up) is returned.
750 EVT getHalfSizedIntegerVT(LLVMContext &Context) const {
751 assert(isInteger() && !isVector() && "Invalid integer type!");
752 unsigned EVTSize = getSizeInBits();
753 for (unsigned IntVT = MVT::FIRST_INTEGER_VALUETYPE;
754 IntVT <= MVT::LAST_INTEGER_VALUETYPE; ++IntVT) {
755 EVT HalfVT = EVT((MVT::SimpleValueType)IntVT);
756 if (HalfVT.getSizeInBits() * 2 >= EVTSize)
759 return getIntegerVT(Context, (EVTSize + 1) / 2);
762 /// isPow2VectorType - Returns true if the given vector is a power of 2.
763 bool isPow2VectorType() const {
764 unsigned NElts = getVectorNumElements();
765 return !(NElts & (NElts - 1));
768 /// getPow2VectorType - Widens the length of the given vector EVT up to
769 /// the nearest power of 2 and returns that type.
770 EVT getPow2VectorType(LLVMContext &Context) const {
771 if (!isPow2VectorType()) {
772 unsigned NElts = getVectorNumElements();
773 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts);
774 return EVT::getVectorVT(Context, getVectorElementType(), Pow2NElts);
781 /// getEVTString - This function returns value type as a string,
783 std::string getEVTString() const;
785 /// getTypeForEVT - This method returns an LLVM type corresponding to the
786 /// specified EVT. For integer types, this returns an unsigned type. Note
787 /// that this will abort for types that cannot be represented.
788 Type *getTypeForEVT(LLVMContext &Context) const;
790 /// getEVT - Return the value type corresponding to the specified type.
791 /// This returns all pointers as iPTR. If HandleUnknown is true, unknown
792 /// types are returned as Other, otherwise they are invalid.
793 static EVT getEVT(Type *Ty, bool HandleUnknown = false);
795 intptr_t getRawBits() {
799 return (intptr_t)(LLVMTy);
802 /// compareRawBits - A meaningless but well-behaved order, useful for
803 /// constructing containers.
804 struct compareRawBits {
805 bool operator()(EVT L, EVT R) const {
806 if (L.V.SimpleTy == R.V.SimpleTy)
807 return L.LLVMTy < R.LLVMTy;
809 return L.V.SimpleTy < R.V.SimpleTy;
814 // Methods for handling the Extended-type case in functions above.
815 // These are all out-of-line to prevent users of this header file
816 // from having a dependency on Type.h.
817 EVT changeExtendedVectorElementTypeToInteger() const;
818 static EVT getExtendedIntegerVT(LLVMContext &C, unsigned BitWidth);
819 static EVT getExtendedVectorVT(LLVMContext &C, EVT VT,
820 unsigned NumElements);
821 bool isExtendedFloatingPoint() const;
822 bool isExtendedInteger() const;
823 bool isExtendedVector() const;
824 bool isExtended16BitVector() const;
825 bool isExtended32BitVector() const;
826 bool isExtended64BitVector() const;
827 bool isExtended128BitVector() const;
828 bool isExtended256BitVector() const;
829 bool isExtended512BitVector() const;
830 bool isExtended1024BitVector() const;
831 EVT getExtendedVectorElementType() const;
832 unsigned getExtendedVectorNumElements() const;
833 unsigned getExtendedSizeInBits() const;
836 } // End llvm namespace