LLVM API Documentation

llvm::MVT Class Reference

#include <ValueTypes.h>

Collaboration diagram for llvm::MVT:
[legend]

List of all members.

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


Detailed Description

Definition at line 29 of file ValueTypes.h.


Member Enumeration Documentation

Enumerator:
Other 
i1 
i8 
i16 
i32 
i64 
i128 
FIRST_INTEGER_VALUETYPE 
LAST_INTEGER_VALUETYPE 
f32 
f64 
f80 
f128 
ppcf128 
Flag 
isVoid 
v2i8 
v4i8 
v8i8 
v16i8 
v32i8 
v2i16 
v4i16 
v8i16 
v16i16 
v2i32 
v4i32 
v8i32 
v1i64 
v2i64 
v4i64 
v2f32 
v4f32 
v8f32 
v2f64 
v4f64 
FIRST_VECTOR_VALUETYPE 
LAST_VECTOR_VALUETYPE 
LAST_VALUETYPE 
MAX_ALLOWED_VALUETYPE 
Metadata 
iPTRAny 
vAny 
fAny 
iAny 
iPTR 
LastSimpleValueType 
INVALID_SIMPLE_VALUE_TYPE 

Definition at line 31 of file ValueTypes.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

bool llvm::MVT::operator> ( const MVT &  S  )  const [inline]

Definition at line 126 of file ValueTypes.h.

References SimpleTy.

bool llvm::MVT::operator< ( const MVT &  S  )  const [inline]

Definition at line 127 of file ValueTypes.h.

References SimpleTy.

bool llvm::MVT::operator== ( const MVT &  S  )  const [inline]

Definition at line 128 of file ValueTypes.h.

References SimpleTy.

bool llvm::MVT::operator>= ( const MVT &  S  )  const [inline]

Definition at line 129 of file ValueTypes.h.

References SimpleTy.

bool llvm::MVT::operator<= ( const MVT &  S  )  const [inline]

Definition at line 130 of file ValueTypes.h.

References SimpleTy.

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]

unsigned llvm::MVT::getVectorNumElements (  )  const [inline]

unsigned llvm::MVT::getSizeInBits (  )  const [inline]

static MVT llvm::MVT::getFloatingPointVT ( unsigned  BitWidth  )  [inline, static]

Definition at line 268 of file ValueTypes.h.

References f128, f32, f64, and f80.

Referenced by llvm::EVT::getFloatingPointVT().

static MVT llvm::MVT::getIntegerVT ( unsigned  BitWidth  )  [inline, static]

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().

static MVT llvm::MVT::getVectorVT ( MVT  VT,
unsigned  NumElements 
) [inline, static]

static MVT llvm::MVT::getIntVectorWithNumElements ( unsigned  NumElts  )  [inline, static]


Member Data Documentation

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().


The documentation for this class was generated from the following file: