Return an LMUL that preserves SEW/LMUL ratio Ratio for element width EEW.

Synopsis

Declared in <llvm/TargetParser/RISCVTargetParser.h>

std::optional<VLMUL>
getSameRatioLMUL(
    unsigned int Ratio,
    unsigned int EEW);

Return Value

Matching LMUL encoding, or nullopt if none is valid.

Parameters

Name

Description

Ratio

Existing SEW/LMUL ratio from getSEWLMULRatio.

EEW

Effective element width in bits.

Created with MrDocs