================ @@ -14,12 +14,33 @@ #define LLVM_LIB_TARGET_RISCV_RISCVREGISTERINFO_H #include "llvm/CodeGen/TargetRegisterInfo.h" +#include "llvm/TargetParser/RISCVTargetParser.h" #define GET_REGINFO_HEADER #include "RISCVGenRegisterInfo.inc" namespace llvm { +enum { + // The VLMul value of this RegisterClass. + VLMulShift = 0, + VLMulShiftMask = 0b111 << VLMulShift, + + // The NF value of this RegisterClass. + NFShift = VLMulShift + 3, + NFShiftMask = 0b111 << NFShift, +}; + +/// \returns the LMUL for the register class. +static inline RISCVII::VLMUL getLMul(uint64_t TSFlags) { ---------------- topperc wrote:
Or maybe RISCRI since we the other TSFLags is in RISCVII where I think `II` is Instruction Info. https://github.com/llvm/llvm-project/pull/84894 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits