LLVM 24.0.0git
llvm::RISCVVType::IME Namespace Reference

Functions

static bool isValidLambda (unsigned Lambda)
LLVM_ABI unsigned encodeLambda (unsigned Lambda)
LLVM_ABI std::optional< unsigned > decodeLambda (unsigned Encoding)
LLVM_ABI uint64_t getVTypeFieldsMask (unsigned XLen)
LLVM_ABI uint64_t encodeVTypeFields (unsigned XLen, unsigned Lambda, bool AltFmtA, bool AltFmtB, bool BlockSize16)
LLVM_ABI uint64_t addVTypeFields (uint64_t VType, unsigned XLen, unsigned Lambda, bool AltFmtA, bool AltFmtB, bool BlockSize16)
LLVM_ABI unsigned getLambdaEncoding (uint64_t VType, unsigned XLen)
LLVM_ABI std::optional< unsigned > getLambda (uint64_t VType, unsigned XLen)
LLVM_ABI bool isAltFmtA (uint64_t VType, unsigned XLen)
LLVM_ABI bool isAltFmtB (uint64_t VType, unsigned XLen)
LLVM_ABI bool isBlockSize16 (uint64_t VType, unsigned XLen)
static void assertValidXLenForVType (unsigned XLen)
static unsigned getLambdaShift (unsigned XLen)
static unsigned getAltFmtAShift (unsigned XLen)
static unsigned getAltFmtBShift (unsigned XLen)
static unsigned getBSShift (unsigned XLen)

Function Documentation

◆ addVTypeFields()

uint64_t llvm::RISCVVType::IME::addVTypeFields ( uint64_t VType,
unsigned XLen,
unsigned Lambda,
bool AltFmtA,
bool AltFmtB,
bool BlockSize16 )

Definition at line 455 of file RISCVTargetParser.cpp.

References encodeVTypeFields(), getVTypeFieldsMask(), and uint64_t.

◆ assertValidXLenForVType()

void llvm::RISCVVType::IME::assertValidXLenForVType ( unsigned XLen)
static

◆ decodeLambda()

std::optional< unsigned > llvm::RISCVVType::IME::decodeLambda ( unsigned Encoding)

Definition at line 429 of file RISCVTargetParser.cpp.

References assert().

Referenced by getLambda().

◆ encodeLambda()

unsigned llvm::RISCVVType::IME::encodeLambda ( unsigned Lambda)

Definition at line 422 of file RISCVTargetParser.cpp.

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

Referenced by encodeVTypeFields().

◆ encodeVTypeFields()

uint64_t llvm::RISCVVType::IME::encodeVTypeFields ( unsigned XLen,
unsigned Lambda,
bool AltFmtA,
bool AltFmtB,
bool BlockSize16 )

◆ getAltFmtAShift()

unsigned llvm::RISCVVType::IME::getAltFmtAShift ( unsigned XLen)
static

Definition at line 407 of file RISCVTargetParser.cpp.

References assertValidXLenForVType().

Referenced by encodeVTypeFields(), getVTypeFieldsMask(), and isAltFmtA().

◆ getAltFmtBShift()

unsigned llvm::RISCVVType::IME::getAltFmtBShift ( unsigned XLen)
static

Definition at line 412 of file RISCVTargetParser.cpp.

References assertValidXLenForVType().

Referenced by encodeVTypeFields(), getVTypeFieldsMask(), and isAltFmtB().

◆ getBSShift()

unsigned llvm::RISCVVType::IME::getBSShift ( unsigned XLen)
static

◆ getLambda()

std::optional< unsigned > llvm::RISCVVType::IME::getLambda ( uint64_t VType,
unsigned XLen )

Definition at line 466 of file RISCVTargetParser.cpp.

References decodeLambda(), getLambdaEncoding(), and uint64_t.

◆ getLambdaEncoding()

unsigned llvm::RISCVVType::IME::getLambdaEncoding ( uint64_t VType,
unsigned XLen )

Definition at line 461 of file RISCVTargetParser.cpp.

References assertValidXLenForVType(), getLambdaShift(), and uint64_t.

Referenced by getLambda().

◆ getLambdaShift()

unsigned llvm::RISCVVType::IME::getLambdaShift ( unsigned XLen)
static

◆ getVTypeFieldsMask()

uint64_t llvm::RISCVVType::IME::getVTypeFieldsMask ( unsigned XLen)

◆ isAltFmtA()

bool llvm::RISCVVType::IME::isAltFmtA ( uint64_t VType,
unsigned XLen )

Definition at line 470 of file RISCVTargetParser.cpp.

References assertValidXLenForVType(), getAltFmtAShift(), and uint64_t.

◆ isAltFmtB()

bool llvm::RISCVVType::IME::isAltFmtB ( uint64_t VType,
unsigned XLen )

Definition at line 475 of file RISCVTargetParser.cpp.

References assertValidXLenForVType(), getAltFmtBShift(), and uint64_t.

◆ isBlockSize16()

bool llvm::RISCVVType::IME::isBlockSize16 ( uint64_t VType,
unsigned XLen )

Definition at line 480 of file RISCVTargetParser.cpp.

References assertValidXLenForVType(), getBSShift(), and uint64_t.

◆ isValidLambda()

bool llvm::RISCVVType::IME::isValidLambda ( unsigned Lambda)
inlinestatic

Definition at line 150 of file RISCVTargetParser.h.

References llvm::isPowerOf2_32().

Referenced by encodeLambda().