LLVM API Documentation
#include <ValueTypes.h>
Public Types | |
| enum | SimpleValueType { Other = 0, i1 = 1, i8 = 2, i16 = 3, i32 = 4, i64 = 5, i128 = 6, FIRST_INTEGER_VALUETYPE = i1, LAST_INTEGER_VALUETYPE = i128, f32 = 7, f64 = 8, f80 = 9, f128 = 10, ppcf128 = 11, Flag = 12, isVoid = 13, v2i8 = 14, v4i8 = 15, v8i8 = 16, v16i8 = 17, v32i8 = 18, v2i16 = 19, v4i16 = 20, v8i16 = 21, v16i16 = 22, v2i32 = 23, v4i32 = 24, v8i32 = 25, v1i64 = 26, v2i64 = 27, v4i64 = 28, v2f32 = 29, v4f32 = 30, v8f32 = 31, v2f64 = 32, v4f64 = 33, FIRST_VECTOR_VALUETYPE = v2i8, LAST_VECTOR_VALUETYPE = v4f64, LAST_VALUETYPE = 34, MAX_ALLOWED_VALUETYPE = 64, Metadata = 250, iPTRAny = 251, vAny = 252, fAny = 253, iAny = 254, iPTR = 255, LastSimpleValueType = 255, INVALID_SIMPLE_VALUE_TYPE = LastSimpleValueType + 1 } |
Public Member Functions | |
| MVT () | |
| MVT (SimpleValueType SVT) | |
| bool | operator> (const MVT &S) const |
| bool | operator< (const MVT &S) const |
| bool | operator== (const MVT &S) const |
| bool | operator>= (const MVT &S) const |
| bool | operator<= (const MVT &S) const |
| bool | isFloatingPoint () const |
| isFloatingPoint - Return true if this is a FP, or a vector FP type. | |
| bool | isInteger () const |
| isInteger - Return true if this is an integer, or a vector integer type. | |
| bool | isVector () const |
| isVector - Return true if this is a vector value type. | |
| bool | isPow2VectorType () const |
| isPow2VectorType - Retuns true if the given vector is a power of 2. | |
| MVT | getPow2VectorType () const |
| MVT | getVectorElementType () const |
| unsigned | getVectorNumElements () const |
| unsigned | getSizeInBits () const |
Static Public Member Functions | |
| static MVT | getFloatingPointVT (unsigned BitWidth) |
| static MVT | getIntegerVT (unsigned BitWidth) |
| static MVT | getVectorVT (MVT VT, unsigned NumElements) |
| static MVT | getIntVectorWithNumElements (unsigned NumElts) |
Public Attributes | |
| SimpleValueType | SimpleTy |
Definition at line 29 of file ValueTypes.h.
Definition at line 31 of file ValueTypes.h.
| llvm::MVT::MVT | ( | ) | [inline] |
Definition at line 123 of file ValueTypes.h.
| llvm::MVT::MVT | ( | SimpleValueType | SVT | ) | [inline] |
Definition at line 124 of file ValueTypes.h.
| bool llvm::MVT::isFloatingPoint | ( | ) | const [inline] |
isFloatingPoint - Return true if this is a FP, or a vector FP type.
Definition at line 133 of file ValueTypes.h.
References f32, ppcf128, SimpleTy, v2f32, and v4f64.
Referenced by llvm::TargetLowering::SimplifyDemandedBits().
| bool llvm::MVT::isInteger | ( | ) | const [inline] |
isInteger - Return true if this is an integer, or a vector integer type.
Definition at line 139 of file ValueTypes.h.
References FIRST_INTEGER_VALUETYPE, LAST_INTEGER_VALUETYPE, SimpleTy, v2i8, and v4i64.
Referenced by MeetsMaxMemopRequirement().
| bool llvm::MVT::isVector | ( | ) | const [inline] |
isVector - Return true if this is a vector value type.
Definition at line 146 of file ValueTypes.h.
References FIRST_VECTOR_VALUETYPE, LAST_VECTOR_VALUETYPE, and SimpleTy.
Referenced by llvm::TargetLowering::SimplifyDemandedBits().
| bool llvm::MVT::isPow2VectorType | ( | ) | const [inline] |
isPow2VectorType - Retuns true if the given vector is a power of 2.
Definition at line 152 of file ValueTypes.h.
References getVectorNumElements().
Referenced by getPow2VectorType().
| MVT llvm::MVT::getPow2VectorType | ( | ) | const [inline] |
getPow2VectorType - Widens the length of the given vector EVT up to the nearest power of 2 and returns that type.
Definition at line 159 of file ValueTypes.h.
References getVectorElementType(), getVectorNumElements(), getVectorVT(), isPow2VectorType(), and llvm::Log2_32_Ceil().
Referenced by llvm::TargetLowering::computeRegisterProperties().
| MVT llvm::MVT::getVectorElementType | ( | ) | const [inline] |
Definition at line 170 of file ValueTypes.h.
References f32, f64, i16, i32, i64, i8, INVALID_SIMPLE_VALUE_TYPE, SimpleTy, v16i16, v16i8, v1i64, v2f32, v2f64, v2i16, v2i32, v2i64, v2i8, v32i8, v4f32, v4f64, v4i16, v4i32, v4i64, v4i8, v8f32, v8i16, v8i32, and v8i8.
Referenced by llvm::TargetLowering::computeRegisterProperties(), getPow2VectorType(), llvm::EVT::getVectorElementType(), and getVectorTypeBreakdownMVT().
| unsigned llvm::MVT::getVectorNumElements | ( | ) | const [inline] |
Definition at line 197 of file ValueTypes.h.
References SimpleTy, v16i16, v16i8, v1i64, v2f32, v2f64, v2i16, v2i32, v2i64, v2i8, v32i8, v4f32, v4f64, v4i16, v4i32, v4i64, v4i8, v8f32, v8i16, v8i32, and v8i8.
Referenced by llvm::TargetLowering::computeRegisterProperties(), getPow2VectorType(), llvm::EVT::getVectorNumElements(), getVectorTypeBreakdownMVT(), and isPow2VectorType().
| unsigned llvm::MVT::getSizeInBits | ( | ) | const [inline] |
Definition at line 224 of file ValueTypes.h.
References f128, f32, f64, f80, fAny, i1, i128, i16, i32, i64, i8, iAny, iPTR, iPTRAny, ppcf128, SimpleTy, v16i16, v16i8, v1i64, v2f32, v2f64, v2i16, v2i32, v2i64, v2i8, v32i8, v4f32, v4f64, v4i16, v4i32, v4i64, v4i8, v8f32, v8i16, v8i32, and v8i8.
Referenced by llvm::EVT::getSizeInBits(), getVectorTypeBreakdownMVT(), and MeetsMaxMemopRequirement().
Definition at line 268 of file ValueTypes.h.
References f128, f32, f64, and f80.
Referenced by llvm::EVT::getFloatingPointVT().
Definition at line 283 of file ValueTypes.h.
References i1, i128, i16, i32, i64, i8, and INVALID_SIMPLE_VALUE_TYPE.
Referenced by llvm::EVT::getIntegerVT(), and llvm::TargetLowering::TargetLowering().
Definition at line 302 of file ValueTypes.h.
References f32, f64, i16, i32, i64, i8, INVALID_SIMPLE_VALUE_TYPE, SimpleTy, v16i16, v16i8, v1i64, v2f32, v2f64, v2i16, v2i32, v2i64, v2i8, v32i8, v4f32, v4f64, v4i16, v4i32, v4i64, v4i8, v8f32, v8i16, v8i32, and v8i8.
Referenced by getPow2VectorType(), getVectorTypeBreakdownMVT(), and llvm::EVT::getVectorVT().
Definition at line 342 of file ValueTypes.h.
References INVALID_SIMPLE_VALUE_TYPE, v16i8, v1i64, v2i32, v4i16, and v8i8.
Referenced by llvm::EVT::getIntVectorWithNumElements(), and RewriteAsNarrowerShuffle().
Definition at line 121 of file ValueTypes.h.
Referenced by llvm::TargetLowering::AddPromotedToType(), llvm::TargetLowering::addRegisterClass(), llvm::ARMTargetLowering::allowsUnalignedMemoryAccesses(), EVTToAPFloatSemantics(), ExpandConstantFP(), ExpandUnalignedStore(), llvm::TargetLowering::getCondCodeAction(), llvm::TargetLowering::getConvertAction(), llvm::TargetLowering::getIndexedLoadAction(), llvm::TargetLowering::getIndexedStoreAction(), llvm::EVT::getIntegerVT(), llvm::EVT::getIntVectorWithNumElements(), llvm::TargetLowering::getLoadExtAction(), llvm::TargetLowering::getNumRegisters(), llvm::TargetLowering::getOperationAction(), llvm::EVT::getRawBits(), llvm::TargetLowering::getRegClassFor(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), llvm::TargetLowering::getRegisterType(), llvm::TargetLowering::getSetCCResultType(), llvm::SPUTargetLowering::getSetCCResultType(), getSizeInBits(), llvm::TargetLowering::getTruncStoreAction(), llvm::TargetLowering::ValueTypeActionImpl::getTypeAction(), llvm::TargetLowering::getTypeToPromoteTo(), llvm::TargetLowering::getTypeToTransformTo(), llvm::SelectionDAG::getValueType(), getVectorElementType(), getVectorNumElements(), llvm::EVT::getVectorVT(), getVectorVT(), getVZextMovL(), llvm::getX86SubSuperRegister(), llvm::TargetRegisterClass::hasType(), isFloatingPoint(), isInteger(), isLegalAddressImmediate(), llvm::ARMTargetLowering::isLegalAddressingMode(), isLegalT1AddressImmediate(), isLegalT2AddressImmediate(), llvm::ARMTargetLowering::isLegalT2ScaledAddressingMode(), llvm::EVT::isSimple(), llvm::TargetLowering::isTypeLegal(), isVector(), LowerBUILD_VECTOR(), llvm::SPUTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall(), LowerCTPOP(), LowerEXTRACT_VECTOR_ELT(), llvm::SPUTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments(), LowerSCALAR_TO_VECTOR(), MeetsMaxMemopRequirement(), llvm::EVT::operator!=(), llvm::EVT::compareRawBits::operator()(), operator<(), operator<=(), llvm::EVT::operator==(), operator==(), operator>(), operator>=(), RewriteAsNarrowerShuffle(), llvm::TargetLowering::setCondCodeAction(), llvm::TargetLowering::setConvertAction(), llvm::TargetLowering::setIndexedLoadAction(), llvm::TargetLowering::setIndexedStoreAction(), llvm::TargetLowering::setLoadExtAction(), llvm::TargetLowering::setOperationAction(), llvm::TargetLowering::setTruncStoreAction(), llvm::TargetLowering::ValueTypeActionImpl::setTypeAction(), llvm::TargetRegisterClass::vt_end(), X86ChooseCmpImmediateOpcode(), X86ChooseCmpOpcode(), and llvm::X86TargetLowering::X86TargetLowering().