[llvm] [RISCV] Add getSameRatioLMUL (PR #69570)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 08:41:41 PDT 2023
================
@@ -206,6 +206,15 @@ unsigned RISCVVType::getSEWLMULRatio(unsigned SEW, RISCVII::VLMUL VLMul) {
return (SEW * 8) / LMul;
}
+RISCVII::VLMUL RISCVVType::getSameRatioLMUL(unsigned SEW, RISCVII::VLMUL VLMUL,
+ unsigned EEW) {
+ int Ratio = RISCVVType::getSEWLMULRatio(SEW, VLMUL);
----------------
topperc wrote:
Why `int`?
https://github.com/llvm/llvm-project/pull/69570
More information about the llvm-commits
mailing list