LLVM 18.0.0git
|
#include "llvm/Support/TypeSize.h"
Public Member Functions | |
constexpr | TypeSize () |
constexpr | TypeSize (ScalarTy Quantity, bool Scalable) |
operator ScalarTy () const | |
![]() | |
constexpr bool | operator== (const FixedOrScalableQuantity &RHS) const |
constexpr bool | operator!= (const FixedOrScalableQuantity &RHS) const |
constexpr bool | isZero () const |
constexpr bool | isNonZero () const |
operator bool () const | |
constexpr TypeSize | getWithIncrement (ScalarTy RHS) const |
Add RHS to the underlying quantity. | |
constexpr ScalarTy | getKnownMinValue () const |
Returns the minimum value this quantity can represent. | |
constexpr bool | isScalable () const |
Returns whether the quantity is scaled by a runtime quantity (vscale). | |
constexpr bool | isKnownEven () const |
A return value of true indicates we know at compile time that the number of elements (vscale * Min) is definitely even. | |
constexpr bool | isKnownMultipleOf (ScalarTy RHS) const |
This function tells the caller whether the element count is known at compile time to be a multiple of the scalar value RHS. | |
constexpr ScalarTy | getFixedValue () const |
constexpr TypeSize | divideCoefficientBy (ScalarTy RHS) const |
We do not provide the '/' operator here because division for polynomial types does not work in the same way as for normal integer types. | |
constexpr TypeSize | multiplyCoefficientBy (ScalarTy RHS) const |
constexpr TypeSize | coefficientNextPowerOf2 () const |
constexpr bool | hasKnownScalarFactor (const FixedOrScalableQuantity &RHS) const |
Returns true if there exists a value X where RHS.multiplyCoefficientBy(X) will result in a value whose quantity matches our own. | |
constexpr ScalarTy | getKnownScalarFactor (const FixedOrScalableQuantity &RHS) const |
Returns a value X where RHS.multiplyCoefficientBy(X) will result in a value whose quantity matches our own. | |
void | print (raw_ostream &OS) const |
Printing function. | |
Static Public Member Functions | |
static constexpr TypeSize | get (ScalarTy Quantity, bool Scalable) |
static constexpr TypeSize | getFixed (ScalarTy ExactSize) |
static constexpr TypeSize | getScalable (ScalarTy MinimumSize) |
![]() | |
static constexpr bool | isKnownLT (const FixedOrScalableQuantity &LHS, const FixedOrScalableQuantity &RHS) |
static constexpr bool | isKnownGT (const FixedOrScalableQuantity &LHS, const FixedOrScalableQuantity &RHS) |
static constexpr bool | isKnownLE (const FixedOrScalableQuantity &LHS, const FixedOrScalableQuantity &RHS) |
static constexpr bool | isKnownGE (const FixedOrScalableQuantity &LHS, const FixedOrScalableQuantity &RHS) |
Friends | |
constexpr TypeSize | operator* (const TypeSize &LHS, const int RHS) |
constexpr TypeSize | operator* (const TypeSize &LHS, const unsigned RHS) |
constexpr TypeSize | operator* (const TypeSize &LHS, const int64_t RHS) |
constexpr TypeSize | operator* (const int LHS, const TypeSize &RHS) |
constexpr TypeSize | operator* (const unsigned LHS, const TypeSize &RHS) |
constexpr TypeSize | operator* (const int64_t LHS, const TypeSize &RHS) |
constexpr TypeSize | operator* (const uint64_t LHS, const TypeSize &RHS) |
Additional Inherited Members | |
![]() | |
using | ScalarTy = uint64_t |
![]() | |
constexpr | FixedOrScalableQuantity ()=default |
constexpr | FixedOrScalableQuantity (ScalarTy Quantity, bool Scalable) |
![]() | |
ScalarTy | Quantity |
bool | Scalable |
Definition at line 320 of file TypeSize.h.
|
inlineconstexpr |
Definition at line 325 of file TypeSize.h.
Referenced by get(), getFixed(), and getScalable().
Definition at line 327 of file TypeSize.h.
|
inlinestaticconstexpr |
Definition at line 330 of file TypeSize.h.
References llvm::details::FixedOrScalableQuantity< TypeSize, uint64_t >::Quantity, llvm::details::FixedOrScalableQuantity< TypeSize, uint64_t >::Scalable, and TypeSize().
Referenced by llvm::ComputeValueVTs(), unpackLoadToAggregate(), and unpackStoreToAggregate().
Definition at line 333 of file TypeSize.h.
References TypeSize().
Referenced by combineLoad(), combineStore(), combineTargetShuffle(), convertCalleeSaveRestoreToSPPrePostIncDec(), llvm::emitGEPOffset(), EmitUnrolledSetTag(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), llvm::at::getAssignmentInfo(), getBROADCAST_LOAD(), llvm::StructLayout::getElementContainingOffset(), llvm::AArch64RegisterBankInfo::getInstrAlternativeMappings(), llvm::AArch64RegisterBankInfo::getInstrMapping(), llvm::AMDGPURegisterBankInfo::getInstrMapping(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), llvm::AArch64InstrInfo::getMemOpInfo(), getMemsetStores(), getMinimalExtentFrom(), getObjectSize(), getParamsForOneTrueMaskedElt(), getPointerSize(), llvm::TargetTransformInfoImplBase::getRegisterBitWidth(), llvm::BasicTTIImplBase< T >::getRegisterBitWidth(), llvm::AArch64TTIImpl::getRegisterBitWidth(), llvm::ARMTTIImpl::getRegisterBitWidth(), llvm::HexagonTTIImpl::getRegisterBitWidth(), llvm::NVPTXTTIImpl::getRegisterBitWidth(), llvm::PPCTTIImpl::getRegisterBitWidth(), llvm::RISCVTTIImpl::getRegisterBitWidth(), llvm::SystemZTTIImpl::getRegisterBitWidth(), llvm::VETTIImpl::getRegisterBitWidth(), llvm::WebAssemblyTTIImpl::getRegisterBitWidth(), llvm::X86TTIImpl::getRegisterBitWidth(), llvm::GCNTTIImpl::getRegisterBitWidth(), llvm::R600TTIImpl::getRegisterBitWidth(), llvm::TargetRegisterInfo::getRegSizeInBits(), llvm::LLT::getSizeInBits(), llvm::DataLayout::getTypeSizeInBits(), HasAddressTaken(), llvm::LegalizerHelper::lowerExtractInsertVectorElt(), llvm::RISCVTargetLowering::LowerFormalArguments(), lowerShuffleAsBroadcast(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), lowerVECTOR_SHUFFLE(), performLOADCombine(), llvm::ARMTargetLowering::PerformMVEExtCombine(), llvm::ARMTargetLowering::PerformMVETruncCombine(), PerformSplittingMVEEXTToWideningLoad(), PerformSplittingMVETruncToNarrowingStores(), PerformSplittingToNarrowingStores(), PerformSplittingToWideningLoad(), llvm::RISCVDAGToDAGISel::PreprocessISelDAG(), llvm::AArch64TargetLowering::ReconstructShuffle(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::TargetLowering::scalarizeVectorStore(), scalarizeVectorStore(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifySetCC(), solveDIType(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), splitVectorStore(), and valueCoversEntireFragment().
Definition at line 336 of file TypeSize.h.
References TypeSize().
Referenced by llvm::AArch64InstrInfo::getMemOpInfo(), llvm::AArch64TTIImpl::getRegisterBitWidth(), llvm::ARMTTIImpl::getRegisterBitWidth(), llvm::HexagonTTIImpl::getRegisterBitWidth(), llvm::PPCTTIImpl::getRegisterBitWidth(), llvm::RISCVTTIImpl::getRegisterBitWidth(), llvm::SystemZTTIImpl::getRegisterBitWidth(), llvm::VETTIImpl::getRegisterBitWidth(), llvm::WebAssemblyTTIImpl::getRegisterBitWidth(), llvm::X86TTIImpl::getRegisterBitWidth(), and llvm::GCNTTIImpl::getRegisterBitWidth().
TypeSize::operator TypeSize::ScalarTy | ( | ) | const |
Definition at line 49 of file TypeSize.cpp.
References llvm::details::FixedOrScalableQuantity< TypeSize, uint64_t >::getFixedValue(), llvm::details::FixedOrScalableQuantity< TypeSize, uint64_t >::getKnownMinValue(), llvm::details::FixedOrScalableQuantity< TypeSize, uint64_t >::isScalable(), and llvm::reportInvalidSizeRequest().
Definition at line 377 of file TypeSize.h.
Definition at line 383 of file TypeSize.h.
Definition at line 368 of file TypeSize.h.
Definition at line 374 of file TypeSize.h.
Definition at line 371 of file TypeSize.h.
Definition at line 386 of file TypeSize.h.
Definition at line 380 of file TypeSize.h.