LLVM 17.0.0git
Functions
llvm::RISCVVType Namespace Reference

Functions

static bool isValidSEW (unsigned SEW)
 
static bool isValidLMUL (unsigned LMUL, bool Fractional)
 
unsigned encodeVTYPE (RISCVII::VLMUL VLMUL, unsigned SEW, bool TailAgnostic, bool MaskAgnostic)
 
static RISCVII::VLMUL getVLMUL (unsigned VType)
 
std::pair< unsigned, booldecodeVLMUL (RISCVII::VLMUL VLMUL)
 
static RISCVII::VLMUL encodeLMUL (unsigned LMUL, bool Fractional)
 
static unsigned decodeVSEW (unsigned VSEW)
 
static unsigned encodeSEW (unsigned SEW)
 
static unsigned getSEW (unsigned VType)
 
static bool isTailAgnostic (unsigned VType)
 
static bool isMaskAgnostic (unsigned VType)
 
void printVType (unsigned VType, raw_ostream &OS)
 
unsigned getSEWLMULRatio (unsigned SEW, RISCVII::VLMUL VLMul)
 

Function Documentation

◆ decodeVLMUL()

std::pair< unsigned, bool > llvm::RISCVVType::decodeVLMUL ( RISCVII::VLMUL  VLMUL)

◆ decodeVSEW()

static unsigned llvm::RISCVVType::decodeVSEW ( unsigned  VSEW)
inlinestatic

Definition at line 474 of file RISCVBaseInfo.h.

References assert().

Referenced by getSEW(), and llvm::RISCVDAGToDAGISel::selectVSETVLI().

◆ encodeLMUL()

static RISCVII::VLMUL llvm::RISCVVType::encodeLMUL ( unsigned  LMUL,
bool  Fractional 
)
inlinestatic

Definition at line 468 of file RISCVBaseInfo.h.

References assert(), isValidLMUL(), and llvm::Log2_32().

◆ encodeSEW()

static unsigned llvm::RISCVVType::encodeSEW ( unsigned  SEW)
inlinestatic

Definition at line 479 of file RISCVBaseInfo.h.

References assert(), isValidSEW(), llvm::Log2_32(), and SEW.

Referenced by lowerVectorIntrinsicScalars().

◆ encodeVTYPE()

unsigned llvm::RISCVVType::encodeVTYPE ( RISCVII::VLMUL  VLMUL,
unsigned  SEW,
bool  TailAgnostic,
bool  MaskAgnostic 
)

Definition at line 141 of file RISCVBaseInfo.cpp.

References assert(), MaskAgnostic, SEW, and TailAgnostic.

Referenced by llvm::RISCVDAGToDAGISel::selectVSETVLI().

◆ getSEW()

static unsigned llvm::RISCVVType::getSEW ( unsigned  VType)
inlinestatic

Definition at line 484 of file RISCVBaseInfo.h.

References decodeVSEW().

Referenced by isConvertibleToVMV_V_V(), and llvm::RISCVInstPrinter::printVTypeI().

◆ getSEWLMULRatio()

unsigned llvm::RISCVVType::getSEWLMULRatio ( unsigned  SEW,
RISCVII::VLMUL  VLMul 
)

Definition at line 196 of file RISCVBaseInfo.cpp.

References assert(), decodeVLMUL(), SEW, and VLMul.

◆ getVLMUL()

static RISCVII::VLMUL llvm::RISCVVType::getVLMUL ( unsigned  VType)
inlinestatic

Definition at line 460 of file RISCVBaseInfo.h.

Referenced by isConvertibleToVMV_V_V(), and llvm::RISCVInstPrinter::printVTypeI().

◆ isMaskAgnostic()

static bool llvm::RISCVVType::isMaskAgnostic ( unsigned  VType)
inlinestatic

Definition at line 491 of file RISCVBaseInfo.h.

◆ isTailAgnostic()

static bool llvm::RISCVVType::isTailAgnostic ( unsigned  VType)
inlinestatic

Definition at line 489 of file RISCVBaseInfo.h.

Referenced by isConvertibleToVMV_V_V().

◆ isValidLMUL()

static bool llvm::RISCVVType::isValidLMUL ( unsigned  LMUL,
bool  Fractional 
)
inlinestatic

Definition at line 453 of file RISCVBaseInfo.h.

References llvm::isPowerOf2_32().

Referenced by encodeLMUL().

◆ isValidSEW()

static bool llvm::RISCVVType::isValidSEW ( unsigned  SEW)
inlinestatic

◆ printVType()

void llvm::RISCVVType::printVType ( unsigned  VType,
raw_ostream OS 
)