LLVM  6.0.0svn
Classes | Public Member Functions | Static Public Member Functions | List of all members
llvm::EVT Struct Reference

Extended Value Type. More...

#include "llvm/CodeGen/ValueTypes.h"

Classes

struct  compareRawBits
 A meaningless but well-behaved order, useful for constructing containers. More...
 

Public Member Functions

constexpr EVT ()=default
 
constexpr EVT (MVT::SimpleValueType SVT)
 
constexpr EVT (MVT S)
 
bool operator== (EVT VT) const
 
bool operator!= (EVT VT) const
 
EVT changeVectorElementTypeToInteger () const
 Return a vector with the same number of elements as this vector, but with the element type converted to an integer type with the same bitwidth. More...
 
EVT changeTypeToInteger ()
 Return the type converted to an equivalently sized integer or vector with integer element type. More...
 
bool isSimple () const
 Test if the given EVT is simple (as opposed to being extended). More...
 
bool isExtended () const
 Test if the given EVT is extended (as opposed to being simple). More...
 
bool isFloatingPoint () const
 Return true if this is a FP or a vector FP type. More...
 
bool isInteger () const
 Return true if this is an integer or a vector integer type. More...
 
bool isScalarInteger () const
 Return true if this is an integer, but not a vector. More...
 
bool isVector () const
 Return true if this is a vector value type. More...
 
bool isScalableVector () const
 Return true if this is a vector type where the runtime length is machine dependent. More...
 
bool is16BitVector () const
 Return true if this is a 16-bit vector type. More...
 
bool is32BitVector () const
 Return true if this is a 32-bit vector type. More...
 
bool is64BitVector () const
 Return true if this is a 64-bit vector type. More...
 
bool is128BitVector () const
 Return true if this is a 128-bit vector type. More...
 
bool is256BitVector () const
 Return true if this is a 256-bit vector type. More...
 
bool is512BitVector () const
 Return true if this is a 512-bit vector type. More...
 
bool is1024BitVector () const
 Return true if this is a 1024-bit vector type. More...
 
bool is2048BitVector () const
 Return true if this is a 2048-bit vector type. More...
 
bool isOverloaded () const
 Return true if this is an overloaded type for TableGen. More...
 
bool isByteSized () const
 Return true if the bit size is a multiple of 8. More...
 
bool isRound () const
 Return true if the size is a power-of-two number of bytes. More...
 
bool bitsEq (EVT VT) const
 Return true if this has the same number of bits as VT. More...
 
bool bitsGT (EVT VT) const
 Return true if this has more bits than VT. More...
 
bool bitsGE (EVT VT) const
 Return true if this has no less bits than VT. More...
 
bool bitsLT (EVT VT) const
 Return true if this has less bits than VT. More...
 
bool bitsLE (EVT VT) const
 Return true if this has no more bits than VT. More...
 
MVT getSimpleVT () const
 Return the SimpleValueType held in the specified simple EVT. More...
 
EVT getScalarType () const
 If this is a vector type, return the element type, otherwise return this. More...
 
EVT getVectorElementType () const
 Given a vector type, return the type of each element. More...
 
unsigned getVectorNumElements () const
 Given a vector type, return the number of elements it contains. More...
 
MVT::ElementCount getVectorElementCount () const
 
unsigned getSizeInBits () const
 Return the size of the specified value type in bits. More...
 
unsigned getScalarSizeInBits () const
 
unsigned getStoreSize () const
 Return the number of bytes overwritten by a store of the specified value type. More...
 
unsigned getStoreSizeInBits () const
 Return the number of bits overwritten by a store of the specified value type. More...
 
EVT getRoundIntegerType (LLVMContext &Context) const
 Rounds the bit-width of the given integer EVT up to the nearest power of two (and at least to eight), and returns the integer EVT with that number of bits. More...
 
EVT getHalfSizedIntegerVT (LLVMContext &Context) const
 Finds the smallest simple value type that is greater than or equal to half the width of this EVT. More...
 
EVT widenIntegerVectorElementType (LLVMContext &Context) const
 Return a VT for an integer vector type with the size of the elements doubled. More...
 
EVT getHalfNumVectorElementsVT (LLVMContext &Context) const
 
bool isPow2VectorType () const
 Returns true if the given vector is a power of 2. More...
 
EVT getPow2VectorType (LLVMContext &Context) const
 Widens the length of the given vector EVT up to the nearest power of 2 and returns that type. More...
 
std::string getEVTString () const
 This function returns value type as a string, e.g. "i32". More...
 
TypegetTypeForEVT (LLVMContext &Context) const
 This method returns an LLVM type corresponding to the specified EVT. More...
 
intptr_t getRawBits () const
 

Static Public Member Functions

static EVT getFloatingPointVT (unsigned BitWidth)
 Returns the EVT that represents a floating-point type with the given number of bits. More...
 
static EVT getIntegerVT (LLVMContext &Context, unsigned BitWidth)
 Returns the EVT that represents an integer with the given number of bits. More...
 
static EVT getVectorVT (LLVMContext &Context, EVT VT, unsigned NumElements, bool IsScalable=false)
 Returns the EVT that represents a vector NumElements in length, where each element is of type VT. More...
 
static EVT getVectorVT (LLVMContext &Context, EVT VT, MVT::ElementCount EC)
 Returns the EVT that represents a vector EC.Min elements in length, where each element is of type VT. More...
 
static EVT getEVT (Type *Ty, bool HandleUnknown=false)
 Return the value type corresponding to the specified type. More...
 

Detailed Description

Extended Value Type.

Capable of holding value types which are not native for any processor (such as the i12345 type), as well as the types an MVT can represent.

Definition at line 34 of file ValueTypes.h.

Constructor & Destructor Documentation

◆ EVT() [1/3]

constexpr llvm::EVT::EVT ( )
default

◆ EVT() [2/3]

constexpr llvm::EVT::EVT ( MVT::SimpleValueType  SVT)
inline

Definition at line 41 of file ValueTypes.h.

◆ EVT() [3/3]

constexpr llvm::EVT::EVT ( MVT  S)
inline

Definition at line 42 of file ValueTypes.h.

Member Function Documentation

◆ bitsEq()

bool llvm::EVT::bitsEq ( EVT  VT) const
inline

Return true if this has the same number of bits as VT.

Definition at line 223 of file ValueTypes.h.

References getSizeInBits().

Referenced by combineMinNumMaxNum(), getConstantValue(), narrowExtractedVectorLoad(), and useSinCos().

◆ bitsGE()

bool llvm::EVT::bitsGE ( EVT  VT) const
inline

◆ bitsGT()

bool llvm::EVT::bitsGT ( EVT  VT) const
inline

◆ bitsLE()

bool llvm::EVT::bitsLE ( EVT  VT) const
inline

◆ bitsLT()

bool llvm::EVT::bitsLT ( EVT  VT) const
inline

◆ changeTypeToInteger()

EVT llvm::EVT::changeTypeToInteger ( )
inline

Return the type converted to an equivalently sized integer or vector with integer element type.

Similar to changeVectorElementTypeToInteger, but also handles scalars.

Definition at line 115 of file ValueTypes.h.

References changeVectorElementTypeToInteger(), llvm::MVT::getIntegerVT(), getSizeInBits(), isSimple(), and isVector().

Referenced by emitRemovedIntrinsicError().

◆ changeVectorElementTypeToInteger()

EVT llvm::EVT::changeVectorElementTypeToInteger ( ) const
inline

◆ getEVT()

EVT EVT::getEVT ( Type Ty,
bool  HandleUnknown = false 
)
static

◆ getEVTString()

std::string EVT::getEVTString ( ) const

This function returns value type as a string, e.g. "i32".

getEVTString - This function returns value type as a string, e.g. "i32".

Definition at line 120 of file ValueTypes.cpp.

References llvm::MVT::f128, llvm::MVT::f16, llvm::MVT::f32, llvm::MVT::f64, llvm::MVT::f80, getEVTString(), getSizeInBits(), getVectorElementType(), getVectorNumElements(), llvm::MVT::Glue, llvm::MVT::i1, llvm::MVT::i128, llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, isInteger(), isVector(), llvm::MVT::isVoid, llvm_unreachable, llvm::MVT::Metadata, llvm::MVT::Other, llvm::MVT::ppcf128, llvm::MVT::SimpleTy, llvm::MVT::Untyped, llvm::utostr(), llvm::MVT::v1024i1, llvm::MVT::v128i16, llvm::MVT::v128i8, llvm::MVT::v16f32, llvm::MVT::v16i1, llvm::MVT::v16i16, llvm::MVT::v16i32, llvm::MVT::v16i64, llvm::MVT::v16i8, llvm::MVT::v1f32, llvm::MVT::v1f64, llvm::MVT::v1i1, llvm::MVT::v1i128, llvm::MVT::v1i16, llvm::MVT::v1i32, llvm::MVT::v1i64, llvm::MVT::v1i8, llvm::MVT::v256i8, llvm::MVT::v2f16, llvm::MVT::v2f32, llvm::MVT::v2f64, llvm::MVT::v2i1, llvm::MVT::v2i16, llvm::MVT::v2i32, llvm::MVT::v2i64, llvm::MVT::v2i8, llvm::MVT::v32i1, llvm::MVT::v32i16, llvm::MVT::v32i32, llvm::MVT::v32i64, llvm::MVT::v32i8, llvm::MVT::v4f16, llvm::MVT::v4f32, llvm::MVT::v4f64, llvm::MVT::v4i1, llvm::MVT::v4i16, llvm::MVT::v4i32, llvm::MVT::v4i64, llvm::MVT::v4i8, llvm::MVT::v512i1, llvm::MVT::v64i1, llvm::MVT::v64i16, llvm::MVT::v64i32, llvm::MVT::v64i8, llvm::MVT::v8f16, llvm::MVT::v8f32, llvm::MVT::v8f64, llvm::MVT::v8i1, llvm::MVT::v8i16, llvm::MVT::v8i32, llvm::MVT::v8i64, llvm::MVT::v8i8, and llvm::MVT::x86mmx.

Referenced by llvm::CCState::AnalyzeCallOperands(), llvm::CCState::AnalyzeCallResult(), llvm::CCState::AnalyzeFormalArguments(), llvm::CCState::AnalyzeReturn(), AnalyzeReturnValues(), CC_Lanai32_VarArg(), CC_MipsO32_FP64(), llvm::RISCVTargetLowering::EmitInstrWithCustomInserter(), getEVTString(), getMangledTypeStr(), getPow2VectorType(), llvm::CCState::getRemainingRegParmsForType(), LowerCallResult(), llvm::BPFTargetLowering::LowerOperation(), PrepareCall(), llvm::SDNode::print_types(), and llvm::DAGTypeLegalizer::run().

◆ getFloatingPointVT()

static EVT llvm::EVT::getFloatingPointVT ( unsigned  BitWidth)
inlinestatic

Returns the EVT that represents a floating-point type with the given number of bits.

There are two floating-point types with 128 bits - this returns f128 rather than ppcf128.

Definition at line 58 of file ValueTypes.h.

References llvm::MVT::getFloatingPointVT().

Referenced by combineConcatVectorOfScalars(), IsSingleInstrConstant(), lowerFP_TO_SINT_STORE(), llvm::MipsTargetLowering::lowerSTORE(), and LowerVECTOR_SHUFFLE().

◆ getHalfNumVectorElementsVT()

EVT llvm::EVT::getHalfNumVectorElementsVT ( LLVMContext Context) const
inline

◆ getHalfSizedIntegerVT()

EVT llvm::EVT::getHalfSizedIntegerVT ( LLVMContext Context) const
inline

Finds the smallest simple value type that is greater than or equal to half the width of this EVT.

If no simple value type can be found, an extended integer value type of half the size (rounded up) is returned.

Definition at line 328 of file ValueTypes.h.

References assert(), EVT(), llvm::MVT::FIRST_INTEGER_VALUETYPE, getIntegerVT(), getSizeInBits(), isInteger(), isVector(), and llvm::MVT::LAST_INTEGER_VALUETYPE.

Referenced by llvm::TargetLowering::expandUnalignedStore(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), and useSinCos().

◆ getIntegerVT()

static EVT llvm::EVT::getIntegerVT ( LLVMContext Context,
unsigned  BitWidth 
)
inlinestatic

Returns the EVT that represents an integer with the given number of bits.

Definition at line 64 of file ValueTypes.h.

References llvm::MVT::getIntegerVT(), llvm::MVT::INVALID_SIMPLE_VALUE_TYPE, and llvm::MVT::SimpleTy.

Referenced by llvm::BasicTTIImplBase< AMDGPUTTIImpl >::allowsMisalignedMemoryAccesses(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), calculateByteProvider(), canFoldInAddressingMode(), combineConcatVectorOfScalars(), combineHorizontalPredicateResult(), combineShuffleToVectorExtend(), combineSIntToFP(), llvm::TargetLowering::expandFP_TO_SINT(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), foldBitcastedFPLogic(), getCopyFromParts(), getCopyToParts(), getCopyToPartsVector(), llvm::AMDGPUTargetLowering::getEquivalentMemType(), getEVT(), getExpandedMinMaxOps(), getHalfSizedIntegerVT(), getMemCmpLoad(), getMemsetValue(), GetPromotionOpcode(), getRoundIntegerType(), getStrictFPOpcodeAction(), getUnderlyingArgReg(), llvm::MVT::getVT(), llvm::TargetLowering::IncrementMemoryAddress(), isBoolSGPR(), isTruncateOf(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), LowerExtendedLoad(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SelectionDAGBuilder::lowerRangeToAssertZExt(), peekThroughBitcast(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), replaceShuffleOfInsert(), llvm::DAGTypeLegalizer::run(), llvm::FastISel::selectFNeg(), llvm::TargetLoweringBase::setJumpIsExpensive(), llvm::TargetLowering::ShrinkDemandedOp(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), truncateVectorWithPACK(), useSinCos(), and widenIntegerVectorElementType().

◆ getPow2VectorType()

EVT llvm::EVT::getPow2VectorType ( LLVMContext Context) const
inline

◆ getRawBits()

intptr_t llvm::EVT::getRawBits ( ) const
inline

◆ getRoundIntegerType()

EVT llvm::EVT::getRoundIntegerType ( LLVMContext Context) const
inline

Rounds the bit-width of the given integer EVT up to the nearest power of two (and at least to eight), and returns the integer EVT with that number of bits.

Definition at line 317 of file ValueTypes.h.

References assert(), EVT(), getIntegerVT(), getSizeInBits(), llvm::MVT::i8, isInteger(), isVector(), and llvm::Log2_32_Ceil().

Referenced by llvm::TargetLoweringBase::setJumpIsExpensive().

◆ getScalarSizeInBits()

unsigned llvm::EVT::getScalarSizeInBits ( ) const
inline

Definition at line 298 of file ValueTypes.h.

References getScalarType(), and getSizeInBits().

Referenced by llvm::TargetLowering::BuildSDIV(), buildVector(), calculateByteProvider(), canReduceVMulWidth(), combineAnd(), CombineBaseUpdate(), combineBVOfConsecutiveLoads(), combineBVOfVecSExt(), combineLogicBlendIntoPBLENDV(), combineMaskedLoad(), combineMaskedStore(), combineShuffleToVectorExtend(), combineSIntToFP(), combineStore(), combineSubToSubus(), combineToExtendVectorInReg(), combineTruncatedArithmetic(), combineTruncationShuffle(), combineVectorPack(), combineVectorShiftImm(), combineVSelectWithAllOnesOrZeros(), llvm::SelectionDAG::computeKnownBits(), llvm::AArch64TargetLowering::computeKnownBitsForTargetNode(), llvm::ARMTargetLowering::computeKnownBitsForTargetNode(), llvm::X86TargetLowering::computeKnownBitsForTargetNode(), llvm::SelectionDAG::ComputeNumSignBits(), ConvertSelectToConcatVector(), createBSWAPShuffleMask(), detectUSatPattern(), llvm::TargetLowering::expandMUL_LOHI(), ExtendUsesToFormExtLoad(), FoldIntToFPToInt(), getAbsolute(), llvm::SelectionDAG::getAllOnesConstant(), getAsCarry(), llvm::TargetLowering::getConstTrueVal(), getCopyFromPartsVector(), getExpandedMinMaxOps(), getExtendInVec(), getFauxShuffleMask(), getMad64_32(), getMemsetValue(), llvm::SelectionDAG::getNode(), llvm::SystemZTargetLowering::getPreferredVectorAction(), llvm::PPCTargetLowering::getPreferredVectorAction(), getTargetConstantBitsFromNode(), llvm::SystemZTargetLowering::getTargetNodeName(), llvm::TargetLowering::IncrementMemoryAddress(), llvm::ISD::isBuildVectorAllOnes(), llvm::ISD::isBuildVectorAllZeros(), llvm::BuildVectorSDNode::isConstantSplat(), llvm::X86TargetLowering::isDesirableToCombineBuildVectorToShuffleTruncate(), isExtendedBUILD_VECTOR(), llvm::SelectionDAG::isKnownToBeAPowerOfTwo(), llvm::AMDGPUTargetLowering::isLoadBitCastBeneficial(), isPerfectIncrement(), isREVMask(), isSETCCorConvertedSETCC(), llvm::ARMTargetLowering::isShuffleMaskLegal(), IsSingleInstrConstant(), isTruncateOf(), isVREVMask(), isVShiftLImm(), isVShiftRImm(), isVTRN_v_undef_Mask(), isVTRNMask(), isVUZP_v_undef_Mask(), isVUZPMask(), isVZIP_v_undef_Mask(), isVZIPMask(), LowerADDSUBCARRY(), llvm::R600TargetLowering::LowerFormalArguments(), lowerMSABitClearImm(), LowerVECTOR_SHUFFLE(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), lowerVSELECTtoVectorShuffle(), LowerVSETCC(), maskMatters(), matchRotateSub(), narrowExtractedVectorLoad(), NormalizeBuildVector(), peekThroughBitcast(), performConcatVectorsCombine(), performDSPShiftCombine(), performExtendCombine(), performPostLD1Combine(), PerformSTORECombine(), PerformVDUPLANECombine(), llvm::AArch64TargetLowering::ReconstructShuffle(), replaceShuffleOfInsert(), llvm::HexagonDAGToDAGISel::SelectZeroExtend(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), SkipExtensionForVMULL(), stripModuloOnShift(), truncateVectorWithPACK(), tryCombineToBSL(), tryFoldToZero(), tryLowerToSLI(), tryToFoldExtendOfConstant(), useSinCos(), and WidenMaskArithmetic().

◆ getScalarType()

EVT llvm::EVT::getScalarType ( ) const
inline

If this is a vector type, return the element type, otherwise return this.

Definition at line 260 of file ValueTypes.h.

References getVectorElementType(), and isVector().

Referenced by llvm::AMDGPUTargetLowering::allUsesHaveSourceMods(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), combineAnd(), combineConcatVectorOfExtracts(), combineFMA(), combineFneg(), combineHorizontalMinMaxResult(), combineLoad(), combineMaskedLoad(), combineMaskedStore(), combineSelect(), combineShuffleOfScalars(), combineSIntToFP(), combineStore(), combineToExtendBoolVectorInReg(), combineToExtendVectorInReg(), combineTruncatedArithmetic(), combineUIntToFP(), CombineVMOVDRRCandidateWithVecOp(), ConstantAddressBlock(), createBSWAPShuffleMask(), llvm::SelectionDAG::EVTToAPFloatSemantics(), FoldCONCAT_VECTORS(), llvm::SelectionDAG::FoldConstantArithmetic(), llvm::SelectionDAG::FoldConstantVectorArithmetic(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getConstantFP(), getCopyFromPartsVector(), getCopyToPartsVector(), llvm::DAGTypeLegalizer::getDAG(), getEstimate(), getEstimateRefinementSteps(), getExpandedMinMaxOps(), getFPTernOp(), llvm::SelectionDAG::getLoad(), llvm::SelectionDAG::getLogicalNOT(), getMemsetValue(), llvm::SelectionDAG::getNode(), llvm::SelectionDAG::getNOT(), llvm::SITargetLowering::getPreferredVectorAction(), llvm::NVPTXTargetLowering::getPreferredVectorAction(), getReciprocalOpName(), getScalarSizeInBits(), llvm::SDValue::getScalarValueSizeInBits(), getStrictFPOpcodeAction(), llvm::SelectionDAG::getTruncStore(), getVectorCompareInfo(), llvm::SelectionDAG::getZeroExtendInReg(), llvm::SITargetLowering::hasBitPreservingFPLogic(), hasOnlySelectUsers(), isCanonicalized(), llvm::isConstOrConstSplat(), isConstOrDemandedConstSplat(), llvm::SITargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::AArch64TargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::SystemZTargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::PPCTargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::X86TargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::AMDGPUTargetLowering::isFPExtFoldable(), llvm::AMDGPUTargetLowering::isFPImmLegal(), llvm::AMDGPUTargetLowering::isLoadBitCastBeneficial(), isSATValidOnAVX512Subtarget(), isSETCCorConvertedSETCC(), isTruncateOf(), LowerBUILD_VECTORAsVariablePermute(), LowerExtended1BitVectorLoad(), LowerExtendedLoad(), lowerMSASplatImm(), llvm::AMDGPUTargetLowering::LowerSIGN_EXTEND_INREG(), matchBinaryPredicate(), matchUnaryPredicate(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), peekThroughBitcast(), llvm::PPCTargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::performMulCombine(), PerformSTORECombine(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::TargetLowering::scalarizeVectorStore(), llvm::AMDGPUTargetLowering::shouldCombineMemoryType(), llvm::AMDGPUTargetLowering::ShouldShrinkFPConstant(), llvm::TargetLowering::SimplifyDemandedBits(), tryToFoldExtendOfConstant(), and useSinCos().

◆ getSimpleVT()

MVT llvm::EVT::getSimpleVT ( ) const
inline

Return the SimpleValueType held in the specified simple EVT.

Definition at line 253 of file ValueTypes.h.

References assert(), and isSimple().

Referenced by AddCombineBUILD_VECTORToVPADDL(), llvm::MipsSETargetLowering::allowsMisalignedMemoryAccesses(), llvm::HexagonTargetLowering::allowsMisalignedMemoryAccesses(), llvm::ARMTargetLowering::allowsMisalignedMemoryAccesses(), llvm::PPCTargetLowering::allowsMisalignedMemoryAccesses(), llvm::AMDGPUTargetLowering::allUsesHaveSourceMods(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), AnalyzeReturnValues(), llvm::AVRDAGToDAGISel::select< ISD::LOAD >(), CallingConvSupported(), canFoldInAddressingMode(), CC_Lanai32_VarArg(), CC_MipsO32_FP64(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), changeVectorElementTypeToInteger(), combineBitcastvxi1(), combineVectorPack(), combineVectorShiftImm(), combineVectorSignBitsTruncation(), computeBytesPoppedByCalleeForSRet(), llvm::AArch64TargetLowering::computeKnownBitsForTargetNode(), EmitKTEST(), EnsureStackAlignment(), llvm::SelectionDAG::EVTToAPFloatSemantics(), llvm::PPCTargetLowering::expandVSXLoadForLE(), llvm::PPCTargetLowering::expandVSXStoreForLE(), FindOptimalMemOpLowering(), llvm::SelectionDAG::FoldSetCC(), foldVectorXorShiftIntoCmp(), getAL(), llvm::X86TTIImpl::getCastInstrCost(), llvm::AArch64TTIImpl::getCastInstrCost(), llvm::ARMTTIImpl::getCastInstrCost(), llvm::AArch64TTIImpl::getCmpSelInstrCost(), llvm::ARMTTIImpl::getCmpSelInstrCost(), getCompareCC(), getComparePred(), getContiguousRangeOfSetBits(), getDivRemArgList(), getExpandedMinMaxOps(), getExtensionTo64Bits(), GetFPLibCall(), getFPTernOp(), getImplicitScaleFactor(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX2(), llvm::TargetLoweringBase::getLoadExtAction(), llvm::SelectionDAG::getNode(), llvm::TargetLoweringBase::getNumRegisters(), llvm::TargetLoweringBase::getOperationAction(), llvm::AArch64TargetLowering::getPreferredVectorAction(), llvm::X86TargetLowering::getPreferredVectorAction(), llvm::FastISel::getRegForGEPIndex(), llvm::FastISel::getRegForValue(), llvm::TargetLoweringBase::getRegisterType(), llvm::AVRTargetLowering::getSetCCResultType(), llvm::X86TargetLowering::getSetCCResultType(), llvm::SDValue::getSimpleValueType(), llvm::TargetLoweringBase::getTruncStoreAction(), llvm::TargetLoweringBase::getTypeLegalizationCost(), llvm::SelectionDAG::getValueType(), getVCmpInst(), llvm::TargetLoweringBase::getVectorTypeBreakdown(), getX86SSEConditionCode(), llvm::ISD::InputArg::InputArg(), is32Bit(), llvm::X86TargetLowering::isDesirableToCombineBuildVectorToShuffleTruncate(), isDivRemLibcallAvailable(), llvm::SITargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::AArch64TargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::SystemZTargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::PPCTargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::X86TargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::PPCTargetLowering::isFPImmLegal(), isFusableLoadOpStorePattern(), llvm::TargetLoweringBase::isIndexedLoadLegal(), llvm::TargetLoweringBase::isIndexedStoreLegal(), isLegalAddressImmediate(), llvm::ARMTargetLowering::isLegalAddressingMode(), isLegalT1AddressImmediate(), isLegalT2AddressImmediate(), llvm::ARMTargetLowering::isLegalT2ScaledAddressingMode(), llvm::TargetLoweringBase::isLoadBitCastBeneficial(), isMemOPCandidate(), isMulPowOf2(), isPerfectIncrement(), isPreferredADD(), isSExtLoad(), llvm::X86TargetLowering::isShuffleMaskLegal(), isSupportedType(), llvm::HexagonTargetLowering::isTruncateFree(), llvm::TargetLoweringBase::isTypeLegal(), llvm::HexagonInstrInfo::isValidAutoIncImm(), isValidIndexedLoad(), llvm::XCoreTargetLowering::isZExtFree(), llvm::ARMTargetLowering::isZExtFree(), llvm::X86TargetLowering::isZExtFree(), llvm::AVRTargetLowering::LowerAsmOperandForConstraint(), lowerCallResult(), LowerCallResult(), LowerExtended1BitVectorLoad(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::BPFTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), lowerRegToMasks(), llvm::HexagonTargetLowering::LowerVECTOR_SHIFT(), mayTailCallThisCC(), NarrowVector(), llvm::ISD::OutputArg::OutputArg(), performBitcastCombine(), performConcatVectorsCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performShiftToAllZeros(), pickOpcodeForVT(), llvm::SITargetLowering::PostISelFolding(), PrepareCall(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::FastISel::selectBinaryOp(), llvm::FastISel::selectBitCast(), llvm::FastISel::selectCast(), llvm::FastISel::selectExtractValue(), llvm::FastISel::selectFNeg(), llvm::AVRDAGToDAGISel::selectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedStore(), llvm::HvxSelector::selectRor(), llvm::HvxSelector::selectShuffle(), llvm::TargetLoweringBase::setJumpIsExpensive(), llvm::HexagonTargetLowering::shouldExpandAtomicRMWInIR(), llvm::X86InstrInfo::shouldScheduleLoadsNear(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), SubIdx2Lane(), useSinCos(), VerifySDNode(), llvm::SelectionDAGBuilder::visitBitTestHeader(), WidenVector(), X86ChooseCmpImmediateOpcode(), X86ChooseCmpOpcode(), and XFormVExtractWithShuffleIntoLoad().

◆ getSizeInBits()

unsigned llvm::EVT::getSizeInBits ( ) const
inline

Return the size of the specified value type in bits.

Definition at line 292 of file ValueTypes.h.

References llvm::MVT::getSizeInBits(), and isSimple().

Referenced by addRequiredExtensionForVectorMULL(), AddRequiredExtensionForVMULL(), llvm::StatepointLoweringState::allocateStackSlot(), llvm::SITargetLowering::allowsMisalignedMemoryAccesses(), llvm::X86TargetLowering::allowsMisalignedMemoryAccesses(), llvm::SelectionDAG::areNonVolatileConsecutiveLoads(), atomicSizeSupported(), bitsEq(), bitsGE(), bitsGT(), bitsLE(), bitsLT(), llvm::X86TargetLowering::BuildFILD(), buildVector(), BuildVectorFromScalar(), llvm::R600TargetLowering::canMergeStoresTo(), llvm::SITargetLowering::canMergeStoresTo(), llvm::AArch64TargetLowering::canMergeStoresTo(), llvm::ARMTargetLowering::canMergeStoresTo(), llvm::X86TargetLowering::canMergeStoresTo(), changeTypeToInteger(), clampDynamicVectorIndex(), combineAddOrSubToADCOrSBB(), CombineBaseUpdate(), combineBasicSADPattern(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineExtractVectorElt(), combineExtractWithShuffle(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineLoopSADPattern(), combineMaskedLoad(), combineMaskedStore(), combineOr(), combineShiftRightArithmetic(), combineSignExtendInReg(), combineStore(), combineToExtendBoolVectorInReg(), combineToExtendVectorInReg(), combineVectorCompareAndMaskUnaryOp(), combineVectorPack(), combineVectorSizedSetCCEquality(), combineVectorTruncation(), combineVectorTruncationWithPACKUS(), combineVSelectWithAllOnesOrZeros(), computeBytesPoppedByCalleeForSRet(), llvm::SelectionDAG::computeKnownBits(), llvm::AMDGPUTargetLowering::computeKnownBitsForTargetNode(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), ConvertSelectToConcatVector(), createBSWAPShuffleMask(), createPSADBW(), detectAVGPattern(), llvm::HexagonDAGToDAGISel::DetectUseSxtw(), EltsFromConsecutiveLoads(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), EmitKTEST(), llvm::NVPTXAsmPrinter::emitLineNumberAsDotLoc(), emitRemovedIntrinsicError(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), EmitVectorComparison(), EnsureStackAlignment(), llvm::TargetLowering::expandFP_TO_SINT(), llvm::TargetLowering::expandMUL_LOHI(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), ExtendUsesToFormExtLoad(), extractSubVector(), FindMemType(), FindOptimalMemOpLowering(), foldBitcastedFPLogic(), FoldIntToFPToInt(), foldVectorXorShiftIntoCmp(), foldXorTruncShiftIntoCmp(), GeneratePerfectShuffle(), GenerateTBL(), getAbsolute(), llvm::SelectionDAG::getAnyExtendVectorInReg(), llvm::SelectionDAG::getConstant(), getConstantValue(), getCopyFromParts(), getCopyFromPartsVector(), getCopyToParts(), getCopyToPartsVector(), getDUPLANEOp(), getEstimate(), getEVTString(), getExpandedMinMaxOps(), getExtendInVec(), getExtensionTo64Bits(), getExtFactor(), GetFPLibCall(), getHalfSizedIntegerVT(), getIntOperandFromRegisterString(), getLeftShift(), getLoadStackGuard(), llvm::SelectionDAG::getLogicalNOT(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getMemsetStringVal(), llvm::SelectionDAG::getNode(), llvm::SelectionDAG::getNOT(), llvm::TargetLoweringBase::getNumRegisters(), llvm::MipsTargetLowering::getNumRegistersForCallingConv(), getOnesVector(), getOpenCLAlignment(), getPromotedVectorElementType(), GetPromotionOpcode(), llvm::FastISel::getRegForValue(), llvm::SITargetLowering::getRegisterByName(), llvm::MipsTargetLowering::getRegisterTypeForCallingConv(), getRoundIntegerType(), getScalarSizeInBits(), llvm::SDValue::getScalarValueSizeInBits(), llvm::SelectionDAG::getSignExtendVectorInReg(), getStoreSize(), getStrictFPOpcodeAction(), getTargetConstantBitsFromNode(), llvm::SystemZTargetLowering::getTargetNodeName(), getTestBitOperand(), llvm::SDValue::getValueSizeInBits(), getVectorCompareInfo(), llvm::TargetLowering::getVectorElementPointer(), llvm::TargetLoweringBase::getVectorTypeBreakdown(), llvm::MipsTargetLowering::getVectorTypeBreakdownForCallingConv(), llvm::SelectionDAG::getZeroExtendInReg(), llvm::SelectionDAG::getZeroExtendVectorInReg(), getZeroVector(), llvm::AArch64TargetLowering::hasPairedLoad(), hasSameExtUse(), hasSingleUsesFromRoot(), llvm::TargetLowering::IncrementMemoryAddress(), insertSubVector(), isADDADDMUL(), isBitfieldDstMask(), isBitfieldExtractOpFromSExtInReg(), isBitfieldExtractOpFromShr(), isBitfieldPositioningOp(), isByteSized(), isConcatMask(), isConditionalZeroOrAllOnes(), isConsecutiveLSLoc(), llvm::BuildVectorSDNode::isConstantSplat(), llvm::ISD::isConstantSplatVector(), llvm::X86TargetLowering::isExtractSubvectorCheap(), isFusableLoadOpStorePattern(), isI24(), llvm::AMDGPUTargetLowering::isLoadBitCastBeneficial(), IsMulWideOperandDemotable(), llvm::AMDGPUTargetLowering::isNarrowingProfitable(), isPerfectIncrement(), isPreferredADD(), isRound(), isSATValidOnAVX512Subtarget(), isScaledConstantInRange(), isSETCCorConvertedSETCC(), llvm::AArch64TargetLowering::isShuffleMaskLegal(), IsSingleInstrConstant(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::AMDGPUTargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isTruncateFree(), llvm::ARMTargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::PPCTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isTruncateFree(), isTruncateOf(), llvm::HexagonInstrInfo::isValidAutoIncImm(), isVectorReductionOp(), llvm::AArch64TargetLowering::isZExtFree(), llvm::NVPTXTargetLowering::LowerCall(), llvm::TargetLowering::LowerCallTo(), llvm::TargetLowering::lowerCmpEqZeroToCtlzSrl(), LowerCTTZ(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), LowerExtendedLoad(), llvm::Nios2TargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), lowerMSABitClearImm(), lowerMSASplatImm(), LowerMULH(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), LowerTruncatingStore(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), LowerVAARG(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), lowerX86CmpEqZeroToCtlzSrl(), llvm::ARMTargetLowering::LowerXConstraint(), maskMatters(), mayTailCallThisCC(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), narrowIfNeeded(), NarrowVector(), NormalizeBuildVector(), llvm::AMDGPUTargetLowering::numBitsSigned(), llvm::AMDGPUTargetLowering::numBitsUnsigned(), peekThroughBitcast(), performANDCombine(), PerformARMBUILD_VECTORCombine(), llvm::ARMTargetLowering::PerformCMOVToBFICombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::ARMTargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performExtendCombine(), performIntegerAbsCombine(), performIntToFpCombine(), llvm::AMDGPUTargetLowering::performMulCombine(), llvm::AMDGPUTargetLowering::performMulhuCombine(), performNEONPostLDSTCombine(), performORCombine(), performSelectCombine(), performSHLCombine(), performSRACombine(), PerformSTORECombine(), performVectorCompareAndMaskUnaryOpCombine(), performVSelectCombine(), PrepareCall(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceVMULWidth(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), replaceZeroVectorStore(), resolveBuildVector(), llvm::DAGTypeLegalizer::run(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::TargetLowering::scalarizeVectorStore(), llvm::HexagonDAGToDAGISel::SelectAnyInt(), llvm::HexagonDAGToDAGISel::SelectBitcast(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::FastISel::selectFNeg(), selectI64Imm(), llvm::HexagonDAGToDAGISel::SelectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedStore(), llvm::HexagonDAGToDAGISel::SelectZeroExtend(), llvm::TargetLoweringBase::setJumpIsExpensive(), shouldGuaranteeTCO(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), simplifyI24(), llvm::TargetLowering::SimplifySetCC(), splitStores(), splitStoreSplat(), stripExtractLoElt(), llvm::AArch64TargetLowering::targetShrinkDemandedConstant(), truncateVectorWithPACK(), tryBitfieldInsertOpFromOr(), tryBitfieldInsertOpFromOrAndImm(), tryCombineToEXTR(), tryLowerToSLI(), TryMULWIDECombine(), tryToElideArgumentCopy(), tryToFoldExtendOfConstant(), UnpackFromArgumentSlot(), useSinCos(), VerifySDNode(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::WebAssemblyTargetLowering::WebAssemblyTargetLowering(), and widenIntegerVectorElementType().

◆ getStoreSize()

unsigned llvm::EVT::getStoreSize ( ) const
inline

Return the number of bytes overwritten by a store of the specified value type.

Definition at line 304 of file ValueTypes.h.

References getSizeInBits().

Referenced by llvm::StatepointLoweringState::allocateStackSlot(), llvm::SITargetLowering::allowsMisalignedMemoryAccesses(), llvm::AArch64TargetLowering::allowsMisalignedMemoryAccesses(), CalculateStackSlotAlignment(), CalculateStackSlotSize(), CanMergeParamLoadStoresStartingAt(), ComputePTXValueVTs(), ConstantAddressBlock(), ConvertSelectToConcatVector(), llvm::SelectionDAG::CreateStackTemporary(), llvm::HexagonDAGToDAGISel::DetectUseSxtw(), emitRemovedIntrinsicError(), EnsureStackAlignment(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), ExtendUsesToFormExtLoad(), findBaseOffset(), findConsecutiveLoad(), llvm::IRTranslator::getAnalysisUsage(), llvm::SelectionDAG::getAtomic(), llvm::SelectionDAG::getAtomicCmpSwap(), getBuildPairElt(), getExpandedMinMaxOps(), getGeneralPermuteNode(), llvm::SelectionDAG::getLoad(), llvm::SelectionDAG::getMemIntrinsicNode(), getParamsForOneTrueMaskedElt(), llvm::SelectionDAG::getStore(), getStoreSizeInBits(), llvm::SystemZTargetLowering::getTargetNodeName(), llvm::PPCTargetLowering::getTgtMemIntrinsic(), llvm::SelectionDAG::getTruncStore(), getUniformBase(), getVectorCompareInfo(), getVPermMask(), hasOnlySelectUsers(), haveEfficientBuildVectorPattern(), llvm::TargetLowering::IncrementMemoryAddress(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerADDC_ADDE_SUBC_SUBE(), llvm::SITargetLowering::LowerFormalArguments(), lowerVectorShuffleAsBroadcast(), maskMatters(), llvm::MemSDNode::MemSDNode(), narrowExtractedVectorLoad(), peekThroughBitcast(), llvm::PPCTargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::performLoadCombine(), llvm::AMDGPUTargetLowering::performStoreCombine(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::AMDGPUTargetLowering::shouldCombineMemoryType(), shouldGuaranteeTCO(), ShrinkLoadReplaceStoreWithStore(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), llvm::AMDGPUTargetLowering::SplitVectorStore(), tryBuildVectorByteMask(), and tryToElideArgumentCopy().

◆ getStoreSizeInBits()

unsigned llvm::EVT::getStoreSizeInBits ( ) const
inline

◆ getTypeForEVT()

Type * EVT::getTypeForEVT ( LLVMContext Context) const

This method returns an LLVM type corresponding to the specified EVT.

getTypeForEVT - This method returns an LLVM type corresponding to the specified EVT.

For integer types, this returns an unsigned type. Note that this will abort for types that cannot be represented.

Definition at line 205 of file ValueTypes.cpp.

References assert(), llvm::MVT::f128, llvm::MVT::f16, llvm::MVT::f32, llvm::MVT::f64, llvm::MVT::f80, llvm::IntegerType::get(), llvm::VectorType::get(), llvm::Type::getDoubleTy(), llvm::Type::getFloatTy(), llvm::Type::getFP128Ty(), llvm::Type::getHalfTy(), llvm::Type::getInt128Ty(), llvm::Type::getInt16Ty(), llvm::Type::getInt1Ty(), llvm::Type::getInt32Ty(), llvm::Type::getInt64Ty(), llvm::Type::getInt8Ty(), llvm::Type::getMetadataTy(), llvm::Type::getPPC_FP128Ty(), llvm::Type::getVoidTy(), llvm::Type::getX86_FP80Ty(), llvm::Type::getX86_MMXTy(), llvm::MVT::i1, llvm::MVT::i128, llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, isExtended(), llvm::MVT::isVoid, llvm::MVT::Metadata, llvm::MVT::ppcf128, llvm::MVT::SimpleTy, llvm::MVT::v1024i1, llvm::MVT::v128i16, llvm::MVT::v128i8, llvm::MVT::v16f32, llvm::MVT::v16i1, llvm::MVT::v16i16, llvm::MVT::v16i32, llvm::MVT::v16i64, llvm::MVT::v16i8, llvm::MVT::v1f32, llvm::MVT::v1f64, llvm::MVT::v1i1, llvm::MVT::v1i128, llvm::MVT::v1i16, llvm::MVT::v1i32, llvm::MVT::v1i64, llvm::MVT::v1i8, llvm::MVT::v256i8, llvm::MVT::v2f16, llvm::MVT::v2f32, llvm::MVT::v2f64, llvm::MVT::v2i1, llvm::MVT::v2i16, llvm::MVT::v2i32, llvm::MVT::v2i64, llvm::MVT::v2i8, llvm::MVT::v32i1, llvm::MVT::v32i16, llvm::MVT::v32i32, llvm::MVT::v32i64, llvm::MVT::v32i8, llvm::MVT::v4f16, llvm::MVT::v4f32, llvm::MVT::v4f64, llvm::MVT::v4i1, llvm::MVT::v4i16, llvm::MVT::v4i32, llvm::MVT::v4i64, llvm::MVT::v4i8, llvm::MVT::v512i1, llvm::MVT::v64i1, llvm::MVT::v64i16, llvm::MVT::v64i32, llvm::MVT::v64i8, llvm::MVT::v8f16, llvm::MVT::v8f32, llvm::MVT::v8f64, llvm::MVT::v8i1, llvm::MVT::v8i16, llvm::MVT::v8i32, llvm::MVT::v8i64, llvm::MVT::v8i8, and llvm::MVT::x86mmx.

Referenced by llvm::TargetLoweringBase::allowsMemoryAccess(), buildPCRelGlobalAddress(), CallingConvSupported(), canFoldInAddressingMode(), llvm::SelectionDAG::CreateStackTemporary(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), ExpandBVWithShuffles(), llvm::SelectionDAG::expandVAArg(), getBuildPairElt(), getDivRemArgList(), llvm::SelectionDAG::getEVTAlignment(), getExpandedMinMaxOps(), getFPTernOp(), llvm::SelectionDAG::getMemcpy(), llvm::SelectionDAG::getMemmove(), llvm::SelectionDAG::getMemset(), getMemsetStringVal(), getPow2VectorType(), llvm::AVRTargetLowering::getSetCCResultType(), getStrictFPOpcodeAction(), llvm::TargetLoweringBase::getValueType(), isSupportedType(), llvm::SITargetLowering::isTypeDesirableForOp(), isWordAligned(), isXor1OfSetCC(), LowerADDC_ADDE_SUBC_SUBE(), LowerBUILD_VECTORAsVariablePermute(), llvm::TargetLowering::LowerCallTo(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), LowerFPOWI(), LowerFSINCOS(), LowerMULH(), llvm::NVPTXTargetLowering::LowerOperation(), LowerVectorINT_TO_FP(), llvm::TargetLowering::makeLibCall(), mayTailCallThisCC(), peekThroughBitcast(), llvm::PPCTargetLowering::PerformDAGCombine(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::DAGTypeLegalizer::run(), ShrinkLoadReplaceStoreWithStore(), tryToElideArgumentCopy(), useSinCos(), llvm::X86CallLowering::X86CallLowering(), and XFormVExtractWithShuffleIntoLoad().

◆ getVectorElementCount()

MVT::ElementCount llvm::EVT::getVectorElementCount ( ) const
inline

◆ getVectorElementType()

EVT llvm::EVT::getVectorElementType ( ) const
inline

Given a vector type, return the type of each element.

Definition at line 265 of file ValueTypes.h.

References assert(), llvm::MVT::getVectorElementType(), isSimple(), and isVector().

Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineVUZPToVPADDL(), BuildVectorFromScalar(), canReduceVMulWidth(), CombineBaseUpdate(), combineBasicSADPattern(), combineExtractVectorElt(), combineExtractWithShuffle(), combineLoopSADPattern(), combineMaskedLoad(), combineMaskedStore(), combineSelect(), combineSetCC(), combineShuffleOfConcatUndef(), combineVectorTruncation(), combineVectorTruncationWithPACKUS(), combineVSelectWithAllOnesOrZeros(), ComputePTXValueVTs(), createBSWAPShuffleMask(), detectAVGPattern(), detectZextAbsDiff(), emitRemovedIntrinsicError(), EmitVectorComparison(), ExpandBVWithShuffles(), extractSubVector(), llvm::SelectionDAG::ExtractVectorElements(), FindMemType(), foldBitcastedFPLogic(), foldVectorXorShiftIntoCmp(), GeneratePerfectShuffle(), GenerateTBL(), getConstantValue(), getContiguousRangeOfSetBits(), getCopyFromPartsVector(), getCopyToPartsVector(), getDUPLANEOp(), getEVTString(), getExpandedMinMaxOps(), getExtFactor(), GetFPLibCall(), getGeneralPermuteNode(), getHalfNumVectorElementsVT(), getIntOperandFromRegisterString(), getMemsetStringVal(), getMOVL(), llvm::SelectionDAG::getNode(), getParamsForOneTrueMaskedElt(), getPow2VectorType(), llvm::X86TargetLowering::getPreferredVectorAction(), GetPromotionOpcode(), getScalarType(), getShuffleScalarElt(), llvm::SelectionDAG::getSplatBuildVector(), getStrictFPOpcodeAction(), llvm::SystemZTargetLowering::getTargetNodeName(), getVectorCompareInfo(), llvm::TargetLowering::getVectorElementPointer(), llvm::TargetLoweringBase::getVectorTypeBreakdown(), getVPermMask(), hasOnlySelectUsers(), insertSubVector(), llvm::ISD::isConstantSplatVector(), llvm::X86TargetLowering::isExtractSubvectorCheap(), isPerfectIncrement(), isPreferredADD(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), isSplatVector(), isTruncateOf(), llvm::NVPTXTargetLowering::LowerCall(), LowerCTPOP(), LowerCTTZ(), llvm::R600TargetLowering::LowerFormalArguments(), lowerMSABitClearImm(), lowerMSACopyIntr(), llvm::NVPTXTargetLowering::LowerOperation(), LowerTruncatingStore(), lowerVECTOR_SHUFFLE_VSHF(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), lowerVectorShuffleAsTruncBroadcast(), LowerVSETCC(), narrowExtractedVectorLoad(), NarrowVector(), NormalizeBuildVector(), originalEVTTypeIsVectorFloat(), Passv64i1ArgInRegs(), peekThroughBitcast(), PerformARMBUILD_VECTORCombine(), PerformBUILD_VECTORCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), performExtendCombine(), PerformInsertEltCombine(), performPostLD1Combine(), PerformVDUPCombine(), performVSelectCombine(), pickOpcodeForVT(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceMaskedLoadToScalarLoad(), reduceMaskedStoreToScalarStore(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), replaceZeroVectorStore(), llvm::DAGTypeLegalizer::run(), llvm::HexagonDAGToDAGISel::SelectBitcast(), llvm::HexagonDAGToDAGISel::SelectZeroExtend(), llvm::TargetLoweringBase::setJumpIsExpensive(), splitStores(), SubIdx2Lane(), tryBuildVectorByteMask(), tryFormConcatFromShuffle(), llvm::SelectionDAG::UnrollVectorOp(), useSinCos(), VerifySDNode(), widenIntegerVectorElementType(), WidenMaskArithmetic(), and WidenVector().

◆ getVectorNumElements()

unsigned llvm::EVT::getVectorNumElements ( ) const
inline

Given a vector type, return the number of elements it contains.

Definition at line 273 of file ValueTypes.h.

References assert(), llvm::MVT::getVectorNumElements(), isSimple(), and isVector().

Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineVUZPToVPADDL(), AddNodeIDCustom(), addShuffleForVecExtend(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), buildScalarToVector(), buildVector(), BuildVectorFromScalar(), calculateByteProvider(), changeVectorElementTypeToInteger(), clampDynamicVectorIndex(), combineAnd(), CombineBaseUpdate(), combineBasicSADPattern(), combineConcatVectorOfExtracts(), combineExtractWithShuffle(), combineGatherScatter(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineLoopMAddPattern(), combineMaskedLoad(), combineMaskedLoadConstantMask(), combineMaskedStore(), combineShuffle(), combineShuffleOfConcatUndef(), combineShuffleOfScalars(), combineShuffleToVectorExtend(), combineSIntToFP(), combineToExtendBoolVectorInReg(), combineTruncationShuffle(), combineUIntToFP(), combineVectorPack(), combineVectorShiftImm(), combineVectorTruncation(), CombineVMOVDRRCandidateWithVecOp(), llvm::SelectionDAG::computeKnownBits(), llvm::X86TargetLowering::computeKnownBitsForTargetNode(), llvm::SelectionDAG::ComputeNumSignBits(), ComputePTXValueVTs(), ConstantAddressBlock(), ConvertSelectToConcatVector(), createBSWAPShuffleMask(), detectAVGPattern(), emitRemovedIntrinsicError(), ExpandBITCAST(), ExtendUsesToFormExtLoad(), extractSubVector(), llvm::SelectionDAG::ExtractVectorElements(), foldBitcastedFPLogic(), FoldCONCAT_VECTORS(), llvm::SelectionDAG::FoldConstantArithmetic(), llvm::SelectionDAG::FoldConstantVectorArithmetic(), llvm::SelectionDAG::getAnyExtendVectorInReg(), getBuildVectorSplat(), getCompareCC(), llvm::SelectionDAG::getConstant(), getConstantValue(), getContiguousRangeOfSetBits(), getCopyFromPartsVector(), getCopyToPartsVector(), getDUPLANEOp(), getEVTString(), getExpandedMinMaxOps(), getFauxShuffleMask(), llvm::SelectionDAG::getLoad(), llvm::ShuffleVectorSDNode::getMask(), llvm::SelectionDAG::getMaskedGather(), llvm::SelectionDAG::getMaskedScatter(), getMemsetStringVal(), llvm::SelectionDAG::getNode(), getOneTrueElt(), getPow2VectorType(), llvm::SITargetLowering::getPreferredVectorAction(), llvm::TargetLoweringBase::getPreferredVectorAction(), llvm::NVPTXTargetLowering::getPreferredVectorAction(), llvm::X86TargetLowering::getPreferredVectorAction(), GetPromotionOpcode(), llvm::HexagonTargetLowering::getSetCCResultType(), llvm::SITargetLowering::getSetCCResultType(), llvm::NVPTXTargetLowering::getSetCCResultType(), llvm::PPCTargetLowering::getSetCCResultType(), llvm::X86TargetLowering::getSetCCResultType(), getShuffleScalarElt(), llvm::SelectionDAG::getSignExtendVectorInReg(), llvm::SelectionDAG::getSplatBuildVector(), llvm::ShuffleVectorSDNode::getSplatIndex(), llvm::SelectionDAG::getTruncStore(), llvm::SelectionDAG::getVectorShuffle(), llvm::TargetLoweringBase::getVectorTypeBreakdown(), llvm::MipsTargetLowering::getVectorTypeBreakdownForCallingConv(), getVPermMask(), llvm::SelectionDAG::getZeroExtendVectorInReg(), hasNormalLoadOperand(), hasOnlySelectUsers(), llvm::TargetLowering::IncrementMemoryAddress(), isAllConstantBuildVector(), isBSwapHWordElement(), isConcatMask(), isConstantOrUndefBUILD_VECTOR(), isConstOrDemandedConstSplat(), llvm::X86TargetLowering::isDesirableToCombineBuildVectorToShuffleTruncate(), isEXTMask(), llvm::ARMTargetLowering::isExtractSubvectorCheap(), llvm::X86TargetLowering::isExtractSubvectorCheap(), isHorizontalBinOp(), isNonZeroElementsInOrder(), isPow2VectorType(), isPreferredADD(), isReverseMask(), isREVMask(), isSETCCorConvertedSETCC(), llvm::AArch64TargetLowering::isShuffleMaskLegal(), llvm::ARMTargetLowering::isShuffleMaskLegal(), IsSingleInstrConstant(), isSingletonEXTMask(), isSingletonVEXTMask(), llvm::ShuffleVectorSDNode::isSplatMask(), isTRN_v_undef_Mask(), isTRNMask(), isTruncateOf(), isUZP_v_undef_Mask(), isUZPMask(), isVEXTMask(), isVREVMask(), isVTRN_v_undef_Mask(), isVTRNMask(), isVUZP_v_undef_Mask(), isVUZPMask(), isVZIP_v_undef_Mask(), isVZIPMask(), isZIP_v_undef_Mask(), isZIPMask(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AMDGPUTargetLowering::LowerEXTRACT_SUBVECTOR(), LowerINTRINSIC_W_CHAIN(), lowerMSABitClearImm(), lowerMSASplatZExt(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::SITargetLowering::LowerReturn(), LowerVECTOR_SHUFFLE(), lowerVECTOR_SHUFFLE_VSHF(), LowerVectorAllZeroTest(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), LowerVSETCC(), maskMatters(), matchBinOpReduction(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), NarrowVector(), NormalizeBuildVector(), partitionShuffleOfConcats(), peekThroughBitcast(), PerformARMBUILD_VECTORCombine(), performBitcastCombine(), PerformBUILD_VECTORCombine(), performConcatVectorsCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), performExtendCombine(), performFDivCombine(), performFpToIntCombine(), PerformInsertEltCombine(), performNEONPostLDSTCombine(), PerformSTORECombine(), PerformVCVTCombine(), PerformVDIVCombine(), PerformVECTOR_SHUFFLECombine(), performVSelectCombine(), pickOpcodeForVT(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceVMULWidth(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), replaceSplatVectorStore(), replaceZeroVectorStore(), llvm::DAGTypeLegalizer::run(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::TargetLowering::scalarizeVectorStore(), llvm::NVPTXDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::HexagonDAGToDAGISel::SelectZeroExtend(), llvm::TargetLoweringBase::setJumpIsExpensive(), setTargetShuffleZeroElements(), simplifyShuffleMask(), simplifyShuffleOperandRecursively(), simplifyShuffleOperands(), splitStores(), llvm::SelectionDAG::SplitVector(), llvm::AMDGPUTargetLowering::SplitVectorStore(), stripExtractLoElt(), truncateVectorWithPACK(), tryBuildVectorShuffle(), tryCombineToBSL(), tryFormConcatFromShuffle(), tryToFoldExtendOfConstant(), useSinCos(), VerifySDNode(), WidenVector(), and XFormVExtractWithShuffleIntoLoad().

◆ getVectorVT() [1/2]

static EVT llvm::EVT::getVectorVT ( LLVMContext Context,
EVT  VT,
unsigned  NumElements,
bool  IsScalable = false 
)
inlinestatic

Returns the EVT that represents a vector NumElements in length, where each element is of type VT.

Definition at line 73 of file ValueTypes.h.

References assert(), llvm::MVT::getVectorVT(), llvm::MVT::INVALID_SIMPLE_VALUE_TYPE, and llvm::MVT::SimpleTy.

Referenced by AddCombineVUZPToVPADDL(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), BuildVectorFromScalar(), calculateByteProvider(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineGatherScatter(), combineHorizontalMinMaxResult(), combineLoad(), combineLoopMAddPattern(), combineMaskedLoad(), combineMaskedStore(), combineShuffleToVectorExtend(), combineSIntToFP(), combineStore(), combineToExtendBoolVectorInReg(), combineToExtendVectorInReg(), combineUIntToFP(), combineVectorTruncation(), CombineVMOVDRRCandidateWithVecOp(), createBSWAPShuffleMask(), extractSubVector(), foldBitcastedFPLogic(), llvm::SelectionDAG::getConstant(), getCopyFromPartsVector(), getCopyToPartsVector(), llvm::AMDGPUTargetLowering::getEquivalentMemType(), getEVT(), getHalfNumVectorElementsVT(), getMemsetStringVal(), getPow2VectorType(), llvm::HexagonTargetLowering::getSetCCResultType(), llvm::SITargetLowering::getSetCCResultType(), llvm::NVPTXTargetLowering::getSetCCResultType(), llvm::PPCTargetLowering::getSetCCResultType(), llvm::X86TargetLowering::getSetCCResultType(), llvm::AArch64TargetLowering::getTgtMemIntrinsic(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), getUniformBase(), llvm::TargetLoweringBase::getValueType(), getVectorCompareInfo(), llvm::TargetLoweringBase::getVectorTypeBreakdown(), llvm::MVT::getVT(), hasOnlySelectUsers(), isPerfectIncrement(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), isTruncateOf(), LowerAsSplatVectorLoad(), LowerBITCAST(), LowerBUILD_VECTORAsVariablePermute(), LowerExtendedLoad(), llvm::NVPTXTargetLowering::LowerFormalArguments(), LowerVECTOR_SHUFFLE(), LowerVSETCC(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), NormalizeBuildVector(), peekThroughBitcast(), PerformARMBUILD_VECTORCombine(), PerformBUILD_VECTORCombine(), performExtendCombine(), PerformInsertEltCombine(), performSelectCombine(), PerformSTORECombine(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceVMULWidth(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), llvm::DAGTypeLegalizer::run(), llvm::TargetLoweringBase::setJumpIsExpensive(), splitStores(), truncateVectorWithPACK(), tryFormConcatFromShuffle(), llvm::SelectionDAG::UnrollVectorOp(), useSinCos(), and widenIntegerVectorElementType().

◆ getVectorVT() [2/2]

static EVT llvm::EVT::getVectorVT ( LLVMContext Context,
EVT  VT,
MVT::ElementCount  EC 
)
inlinestatic

Returns the EVT that represents a vector EC.Min elements in length, where each element is of type VT.

Definition at line 85 of file ValueTypes.h.

References assert(), llvm::MVT::getVectorVT(), llvm::MVT::INVALID_SIMPLE_VALUE_TYPE, llvm::MVT::ElementCount::Min, llvm::MVT::ElementCount::Scalable, and llvm::MVT::SimpleTy.

◆ is1024BitVector()

bool llvm::EVT::is1024BitVector ( ) const
inline

Return true if this is a 1024-bit vector type.

Definition at line 197 of file ValueTypes.h.

References llvm::MVT::is1024BitVector(), and isSimple().

◆ is128BitVector()

bool llvm::EVT::is128BitVector ( ) const
inline

◆ is16BitVector()

bool llvm::EVT::is16BitVector ( ) const
inline

Return true if this is a 16-bit vector type.

Definition at line 167 of file ValueTypes.h.

References llvm::MVT::is16BitVector(), and isSimple().

◆ is2048BitVector()

bool llvm::EVT::is2048BitVector ( ) const
inline

Return true if this is a 2048-bit vector type.

Definition at line 202 of file ValueTypes.h.

References llvm::MVT::is2048BitVector(), and isSimple().

◆ is256BitVector()

bool llvm::EVT::is256BitVector ( ) const
inline

◆ is32BitVector()

bool llvm::EVT::is32BitVector ( ) const
inline

Return true if this is a 32-bit vector type.

Definition at line 172 of file ValueTypes.h.

References llvm::MVT::is32BitVector(), and isSimple().

◆ is512BitVector()

bool llvm::EVT::is512BitVector ( ) const
inline

◆ is64BitVector()

bool llvm::EVT::is64BitVector ( ) const
inline

◆ isByteSized()

bool llvm::EVT::isByteSized ( ) const
inline

◆ isExtended()

bool llvm::EVT::isExtended ( ) const
inline

◆ isFloatingPoint()

bool llvm::EVT::isFloatingPoint ( ) const
inline

Return true if this is a FP or a vector FP type.

Definition at line 136 of file ValueTypes.h.

References llvm::MVT::isFloatingPoint(), and isSimple().

Referenced by combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineExtractWithShuffle(), combineMinNumMaxNum(), combineSelect(), combineShuffle(), llvm::SelectionDAG::computeKnownBits(), llvm::SelectionDAG::ComputeNumSignBits(), convertIntLogicToFPLogic(), createFPCmp(), EmitCMP(), emitComparison(), emitConditionalComparison(), emitConjunctionDisjunctionTreeRec(), EmitKTEST(), EmitVectorComparison(), llvm::PPCTargetLowering::enableAggressiveFMAFusion(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), expandV4F32ToV2F64(), FindOptimalMemOpLowering(), foldBitcastedFPLogic(), llvm::TargetLoweringBase::getBooleanContents(), llvm::ARMTTIImpl::getCastInstrCost(), llvm::SelectionDAG::getConstantFP(), getCopyFromParts(), getCopyFromPartsVector(), getCopyToParts(), getEstimate(), llvm::SelectionDAG::getNode(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::ARMTargetLowering::getSchedulingPreference(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::AArch64TargetLowering::hasPairedLoad(), INITIALIZE_PASS(), llvm::AMDGPUTargetLowering::isFAbsFree(), llvm::TargetLoweringBase::isFAbsFree(), isFNEG(), llvm::AMDGPUTargetLowering::isFNegFree(), llvm::TargetLoweringBase::isFNegFree(), llvm::TargetLoweringBase::isFPExtFoldable(), llvm::PPCTargetLowering::isFPExtFree(), llvm::TargetLoweringBase::isFPExtFree(), llvm::X86TargetLowering::isMultiStoresCheaperThanBitsMerge(), llvm::ARMTargetLowering::isReadOnly(), IsSingleInstrConstant(), isSupportedType(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::ConstantFPSDNode::isValueValidForType(), isXor1OfSetCC(), llvm::NVPTXTargetLowering::LowerCall(), LowerVSETCC(), llvm::ARMTargetLowering::LowerXConstraint(), llvm::X86TargetLowering::LowerXConstraint(), llvm::TargetLowering::LowerXConstraint(), mayTailCallThisCC(), NormalizeBuildVector(), originalEVTTypeIsVectorFloat(), PerformARMBUILD_VECTORCombine(), PrepareCall(), replaceSplatVectorStore(), llvm::TargetLowering::SimplifyDemandedBits(), useSinCos(), and VerifySDNode().

◆ isInteger()

bool llvm::EVT::isInteger ( ) const
inline

Return true if this is an integer or a vector integer type.

Definition at line 141 of file ValueTypes.h.

References llvm::MVT::isInteger(), and isSimple().

Referenced by AddCombineBUILD_VECTORToVPADDL(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), calculateByteProvider(), combineAddOrSubToADCOrSBB(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineLogicBlendIntoPBLENDV(), combineMinNumMaxNum(), combineShiftRightArithmetic(), combineShuffle(), combineShuffleOfScalars(), combineShuffleToVectorExtend(), combineTruncationShuffle(), combineVSelectWithAllOnesOrZeros(), llvm::SelectionDAG::computeKnownBits(), llvm::SelectionDAG::ComputeNumSignBits(), createVirtualRegs(), llvm::HexagonDAGToDAGISel::DetectUseSxtw(), EltsFromConsecutiveLoads(), emitConjunctionDisjunctionTreeRec(), llvm::NVPTXAsmPrinter::emitLineNumberAsDotLoc(), EmitVectorComparison(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), FindOptimalMemOpLowering(), findUnwindDestinations(), foldBitcastedFPLogic(), llvm::SelectionDAG::FoldConstantArithmetic(), llvm::SelectionDAG::FoldConstantVectorArithmetic(), FoldIntToFPToInt(), llvm::SelectionDAG::FoldSetCC(), llvm::ARMTTIImpl::getCastInstrCost(), llvm::SelectionDAG::getConstant(), getCopyFromParts(), getCopyToParts(), llvm::DAGTypeLegalizer::getDAG(), getDUPLANEOp(), getEVTString(), getHalfSizedIntegerVT(), llvm::SelectionDAG::getLoad(), getMemcpyLoadsAndStores(), getMemsetStringVal(), getMemsetValue(), llvm::SelectionDAG::getNode(), llvm::TargetLoweringBase::getNumRegisters(), getOpenCLAlignment(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getPromotedVectorElementType(), llvm::TargetLoweringBase::getRegisterType(), llvm::GetReturnInfo(), getRoundIntegerType(), llvm::TargetLoweringBase::getShiftAmountTy(), llvm::SelectionDAG::getSplatBuildVector(), llvm::SystemZTargetLowering::getTargetNodeName(), llvm::SelectionDAG::getTruncStore(), llvm::AArch64TargetLowering::hasPairedLoad(), INITIALIZE_PASS(), isDivRemLibcallAvailable(), llvm::TargetLowering::isExtendedTrueVal(), isMemOPCandidate(), llvm::X86TargetLowering::isMultiStoresCheaperThanBitsMerge(), isSETCCorConvertedSETCC(), isSlicingProfitable(), isSplatVector(), isSupportedType(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isTruncateFree(), llvm::ARMTargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::PPCTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isTruncateFree(), isXor1OfSetCC(), llvm::XCoreTargetLowering::isZExtFree(), llvm::AArch64TargetLowering::isZExtFree(), llvm::ARMTargetLowering::isZExtFree(), llvm::X86TargetLowering::isZExtFree(), LowerBR_CC(), lowerBuildVectorAsBroadcast(), llvm::NVPTXTargetLowering::LowerCall(), LowerMUL(), LowerMULH(), LowerSELECT_CC(), llvm::TargetLowering::LowerXConstraint(), maskMatters(), matchBinaryPredicate(), mayTailCallThisCC(), NormalizeBuildVector(), OptimizeNoopCopyExpression(), peekThroughBitcast(), PerformADDCombineWithOperands(), llvm::R600TargetLowering::PerformDAGCombine(), performIntegerAbsCombine(), llvm::AMDGPUTargetLowering::performSelectCombine(), performSELECTCombine(), performVSELECTCombine(), performXORCombine(), llvm::R600TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), reportFastISelFailure(), llvm::HexagonDAGToDAGISel::SelectAnyInt(), llvm::TargetLoweringBase::setJumpIsExpensive(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), useSinCos(), VerifySDNode(), and XFormVExtractWithShuffleIntoLoad().

◆ isOverloaded()

bool llvm::EVT::isOverloaded ( ) const
inline

Return true if this is an overloaded type for TableGen.

Definition at line 207 of file ValueTypes.h.

References llvm::MVT::fAny, llvm::MVT::iAny, llvm::MVT::iPTRAny, and llvm::MVT::vAny.

◆ isPow2VectorType()

bool llvm::EVT::isPow2VectorType ( ) const
inline

Returns true if the given vector is a power of 2.

Definition at line 359 of file ValueTypes.h.

References getVectorNumElements().

Referenced by ExtendUsesToFormExtLoad(), getPow2VectorType(), and llvm::TargetLoweringBase::setJumpIsExpensive().

◆ isRound()

bool llvm::EVT::isRound ( ) const
inline

Return true if the size is a power-of-two number of bytes.

Definition at line 217 of file ValueTypes.h.

References getSizeInBits().

Referenced by hasSameExtUse(), simplifyDivRem(), and llvm::TargetLowering::SimplifySetCC().

◆ isScalableVector()

bool llvm::EVT::isScalableVector ( ) const
inline

Return true if this is a vector type where the runtime length is machine dependent.

Definition at line 157 of file ValueTypes.h.

References llvm::MVT::isScalableVector(), and isSimple().

Referenced by changeVectorElementTypeToInteger(), getPow2VectorType(), and getVectorElementCount().

◆ isScalarInteger()

bool llvm::EVT::isScalarInteger ( ) const
inline

◆ isSimple()

bool llvm::EVT::isSimple ( ) const
inline

Test if the given EVT is simple (as opposed to being extended).

Definition at line 126 of file ValueTypes.h.

References llvm::MVT::INVALID_SIMPLE_VALUE_TYPE, and llvm::MVT::SimpleTy.

Referenced by llvm::R600TargetLowering::allowsMisalignedMemoryAccesses(), llvm::PPCTargetLowering::allowsMisalignedMemoryAccesses(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), CC_MipsO32_FP64(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), changeTypeToInteger(), changeVectorElementTypeToInteger(), combineAndMaskToShift(), combineBasicSADPattern(), combineBitcastvxi1(), combineLoopSADPattern(), combineVectorSignBitsTruncation(), combineVectorTruncation(), computeBytesPoppedByCalleeForSRet(), detectAVGPattern(), foldVectorXorShiftIntoCmp(), llvm::AMDGPUTTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getCastInstrCost(), llvm::AArch64TTIImpl::getCastInstrCost(), llvm::ARMTTIImpl::getCastInstrCost(), llvm::AArch64TTIImpl::getCmpSelInstrCost(), llvm::ARMTTIImpl::getCmpSelInstrCost(), getCompareCC(), getComparePred(), getDivRemArgList(), getExtensionTo64Bits(), getImplicitScaleFactor(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX2(), llvm::SelectionDAG::getNode(), llvm::TargetLoweringBase::getNumRegisters(), getRawBits(), llvm::FastISel::getRegForValue(), llvm::TargetLoweringBase::getRegisterType(), getSimpleVT(), getSizeInBits(), llvm::SystemZTargetLowering::getTargetNodeName(), llvm::SelectionDAG::getValueType(), getVectorElementCount(), getVectorElementType(), getVectorNumElements(), getX86SSEConditionCode(), llvm::AArch64TargetLowering::hasPairedLoad(), is1024BitVector(), is128BitVector(), is16BitVector(), is2048BitVector(), is256BitVector(), is32BitVector(), is512BitVector(), is64BitVector(), isDivRemLibcallAvailable(), isExtended(), isFloatingPoint(), llvm::AArch64TargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::SystemZTargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::PPCTargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::X86TargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::PPCTargetLowering::isFPImmLegal(), llvm::TargetLoweringBase::isIndexedLoadLegal(), llvm::TargetLoweringBase::isIndexedStoreLegal(), isInteger(), isLegalAddressImmediate(), llvm::ARMTargetLowering::isLegalAddressingMode(), llvm::TargetLoweringBase::isLoadBitCastBeneficial(), isMemOPCandidate(), isMulPowOf2(), isSATValidOnAVX512Subtarget(), isScalableVector(), isScalarInteger(), isSExtLoad(), llvm::X86TargetLowering::isShuffleMaskLegal(), isSupportedType(), llvm::HexagonTargetLowering::isTruncateFree(), llvm::TargetLoweringBase::isTypeLegal(), isVector(), llvm::XCoreTargetLowering::isZExtFree(), llvm::AArch64TargetLowering::isZExtFree(), llvm::ARMTargetLowering::isZExtFree(), llvm::X86TargetLowering::isZExtFree(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::NVPTXTargetLowering::LowerOperation(), mayTailCallThisCC(), peekThroughBitcast(), llvm::PPCTargetLowering::PerformDAGCombine(), performExtendCombine(), performFDivCombine(), performFpToIntCombine(), PerformVCVTCombine(), PerformVDIVCombine(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::FastISel::selectBinaryOp(), llvm::FastISel::selectCast(), llvm::FastISel::selectExtractValue(), llvm::HexagonDAGToDAGISel::SelectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedStore(), llvm::TargetLoweringBase::setJumpIsExpensive(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), and X86ChooseCmpImmediateOpcode().

◆ isVector()

bool llvm::EVT::isVector ( ) const
inline

Return true if this is a vector value type.

Definition at line 151 of file ValueTypes.h.

References isSimple(), and llvm::MVT::isVector().

Referenced by llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), BuildVectorFromScalar(), calculateByteProvider(), CanCombineFCOPYSIGN_EXTEND_ROUND(), CC_MipsO32_FP64(), changeTypeToInteger(), combineAnd(), combineBitcastvxi1(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineFMinNumFMaxNum(), combineLoopSADPattern(), combineMul(), combineSelect(), combineSetCC(), combineShiftLeft(), combineShiftRightArithmetic(), combineShuffle(), combineSignExtendInReg(), combineSIntToFP(), combineToExtendBoolVectorInReg(), combineToExtendVectorInReg(), combineTruncatedArithmetic(), combineUIntToFP(), combineVectorCompareAndMaskUnaryOp(), combineVectorSignBitsTruncation(), combineVectorTruncation(), CombineVMOVDRRCandidateWithVecOp(), combineVSelectWithAllOnesOrZeros(), llvm::SelectionDAG::computeKnownBits(), llvm::SelectionDAG::ComputeNumSignBits(), ComputePTXValueVTs(), ConstantAddressBlock(), llvm::X86TargetLowering::convertSelectOfConstantsToMath(), createVirtualRegs(), detectAVGPattern(), EmitKTEST(), emitRemovedIntrinsicError(), ExpandBITCAST(), llvm::TargetLowering::expandMUL_LOHI(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), expandV4F32ToV2F64(), ExtendUsesToFormExtLoad(), FindOptimalMemOpLowering(), foldBitcastedFPLogic(), llvm::SelectionDAG::FoldConstantArithmetic(), llvm::SelectionDAG::FoldConstantVectorArithmetic(), FoldIntToFPToInt(), foldVectorXorShiftIntoCmp(), getAbsolute(), llvm::SelectionDAG::getAnyExtendVectorInReg(), getAsCarry(), getAsNonOpaqueConstant(), llvm::TargetLoweringBase::getBooleanContents(), llvm::ARMTTIImpl::getCastInstrCost(), getCompareCC(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getConstantFP(), getCopyFromParts(), getCopyFromPartsVector(), getCopyToParts(), getCopyToPartsVector(), llvm::DAGTypeLegalizer::getDAG(), getEstimate(), getEVTString(), getExpandedMinMaxOps(), getHalfSizedIntegerVT(), llvm::SelectionDAG::getLoad(), getMad64_32(), getMemcpyLoadsAndStores(), getMemsetStores(), getMemsetStringVal(), getMOVL(), llvm::SelectionDAG::getNode(), getNullFPConstForNullVal(), llvm::TargetLoweringBase::getNumRegisters(), llvm::MipsTargetLowering::getNumRegistersForCallingConv(), llvm::PPCTargetLowering::getPreIndexedAddressParts(), getPromotedVectorElementType(), getReciprocalOpName(), llvm::TargetLoweringBase::getRegisterType(), llvm::MipsTargetLowering::getRegisterTypeForCallingConv(), getRoundIntegerType(), getScalarType(), llvm::ARMTargetLowering::getSchedulingPreference(), llvm::SelectionDAG::getSelect(), llvm::SelectionDAG::getSetCC(), llvm::R600TargetLowering::getSetCCResultType(), llvm::AVRTargetLowering::getSetCCResultType(), llvm::SparcTargetLowering::getSetCCResultType(), llvm::HexagonTargetLowering::getSetCCResultType(), llvm::SITargetLowering::getSetCCResultType(), llvm::ARMTargetLowering::getSetCCResultType(), llvm::AArch64TargetLowering::getSetCCResultType(), llvm::MipsTargetLowering::getSetCCResultType(), llvm::SystemZTargetLowering::getSetCCResultType(), llvm::NVPTXTargetLowering::getSetCCResultType(), llvm::TargetLoweringBase::getSetCCResultType(), llvm::PPCTargetLowering::getSetCCResultType(), llvm::X86TargetLowering::getSetCCResultType(), llvm::SelectionDAG::getShiftAmountOperand(), llvm::TargetLoweringBase::getShiftAmountTy(), getShuffleScalarElt(), llvm::SelectionDAG::getSignExtendVectorInReg(), llvm::SelectionDAG::GetSplitDestVTs(), getStrictFPOpcodeAction(), llvm::SystemZTargetLowering::getTargetNodeName(), llvm::SelectionDAG::getTruncStore(), llvm::TargetLoweringBase::getTypeToExpandTo(), getUniformBase(), getVCmpInst(), getVectorElementCount(), getVectorElementType(), getVectorNumElements(), llvm::SelectionDAG::getZeroExtendInReg(), llvm::SelectionDAG::getZeroExtendVectorInReg(), getZeroVector(), llvm::X86TargetLowering::hasBitPreservingFPLogic(), hasOnlySelectUsers(), isBSwapHWordElement(), isConstantOrUndefBUILD_VECTOR(), llvm::BuildVectorSDNode::isConstantSplat(), isDivRemLibcallAvailable(), isFMulNegTwo(), isHorizontalBinOp(), llvm::AArch64TargetLowering::isIntDivCheap(), llvm::X86TargetLowering::isIntDivCheap(), isSATValidOnAVX512Subtarget(), isSETCCorConvertedSETCC(), isSortedByValueNo(), isSupportedType(), llvm::AArch64TargetLowering::isTruncateFree(), llvm::ARMTargetLowering::isTruncateFree(), isTruncateOf(), isVShiftLImm(), isVShiftRImm(), llvm::AArch64TargetLowering::isZExtFree(), lowerBuildVectorAsBroadcast(), llvm::TargetLowering::LowerCallTo(), LowerCTTZ(), LowerExtended1BitVectorLoad(), LowerExtendedLoad(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::ARMTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::HexagonTargetLowering::LowerSETCC(), LowerShift(), LowerTruncatingStore(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), lowerVectorShuffleAsTruncBroadcast(), llvm::ARMTargetLowering::LowerXConstraint(), matchBinaryPredicate(), mayTailCallThisCC(), narrowExtractedVectorBinOp(), NormalizeBuildVector(), originalEVTTypeIsVectorFloat(), Passv64i1ArgInRegs(), peekThroughBitcast(), PerformADDCombineWithOperands(), performBitcastCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), performExtendCombine(), performFDivCombine(), performFpToIntCombine(), llvm::AMDGPUTargetLowering::performLoadCombine(), PerformLOADCombine(), performMADD_MSUBCombine(), llvm::AMDGPUTargetLowering::performMulCombine(), performMULCombine(), llvm::AMDGPUTargetLowering::performMulhsCombine(), llvm::AMDGPUTargetLowering::performMulhuCombine(), PerformORCombine(), performSelectCombine(), llvm::AMDGPUTargetLowering::performStoreCombine(), PerformSTORECombine(), PerformVCVTCombine(), PerformVDIVCombine(), performVectorCompareAndMaskUnaryOpCombine(), pickOpcodeForVT(), PrepareCall(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), reportFastISelFailure(), llvm::DAGTypeLegalizer::run(), llvm::HexagonDAGToDAGISel::SelectBitcast(), llvm::NVPTXDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::HexagonDAGToDAGISel::SelectZeroExtend(), llvm::TargetLoweringBase::setJumpIsExpensive(), llvm::AMDGPUTargetLowering::shouldCombineMemoryType(), llvm::TargetLowering::ShrinkDemandedOp(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), splitStores(), stripModuloOnShift(), llvm::AArch64TargetLowering::targetShrinkDemandedConstant(), tryCombineToBSL(), tryFoldToZero(), tryLowerToSLI(), tryToFoldExtendOfConstant(), llvm::SelectionDAG::UnrollVectorOp(), useSinCos(), VerifySDNode(), VerifyVectorType(), and XFormVExtractWithShuffleIntoLoad().

◆ operator!=()

bool llvm::EVT::operator!= ( EVT  VT) const
inline

Definition at line 47 of file ValueTypes.h.

References llvm::MVT::INVALID_SIMPLE_VALUE_TYPE, and llvm::MVT::SimpleTy.

◆ operator==()

bool llvm::EVT::operator== ( EVT  VT) const
inline

Definition at line 44 of file ValueTypes.h.

◆ widenIntegerVectorElementType()

EVT llvm::EVT::widenIntegerVectorElementType ( LLVMContext Context) const
inline

Return a VT for an integer vector type with the size of the elements doubled.

The typed returned may be an extended type.

Definition at line 342 of file ValueTypes.h.

References getIntegerVT(), getSizeInBits(), getVectorElementCount(), getVectorElementType(), and getVectorVT().


The documentation for this struct was generated from the following files: