[llvm-branch-commits] [llvm] [RISCV] Store VLMul/NF into RegisterClass's TSFlags (PR #84894)

Wang Pengcheng via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Mar 24 22:39:09 PDT 2024


================
@@ -127,8 +127,21 @@ def XLenRI : RegInfoByHwMode<
       [RV32,              RV64],
       [RegInfo<32,32,32>, RegInfo<64,64,64>]>;
 
+class RISCVRegisterClass<list<ValueType> regTypes, int align, dag regList>
+    : RegisterClass<"RISCV", regTypes, align, regList> {
+  bit IsVRegClass = 0;
+  int VLMul = 1;
+  int NF = 1;
----------------
wangpc-pp wrote:

And `NF=1` means no segment, I think it's obvious. :-)

https://github.com/llvm/llvm-project/pull/84894


More information about the llvm-branch-commits mailing list