llvm::RISCVVType::getSEWLMULRatio

Return the SEW/LMUL ratio for the given SEW and LMUL.

Synopsis

Declared in <llvm/TargetParser/RISCVTargetParser.h>

unsigned int
getSEWLMULRatio(
    unsigned int SEW,
    VLMUL VLMul);

Return Value

Ratio of SEW to LMUL in a fixed-point representation.

Parameters

NameDescription
SEWStandard element width in bits.
VLMulEncoded LMUL value.