[llvm] [Target][RISCV] Add HwMode support to subregister index size/offset. (PR #86368)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 23 14:35:26 PDT 2024


================
@@ -64,9 +64,14 @@ def sub_vrm1_6 : ComposedSubRegIndex<sub_vrm2_3, sub_vrm1_0>;
 def sub_vrm1_7 : ComposedSubRegIndex<sub_vrm2_3, sub_vrm1_1>;
 
 // GPR sizes change with HwMode.
-// FIXME: Support HwMode in SubRegIndex?
-def sub_gpr_even : SubRegIndex<-1>;
-def sub_gpr_odd  : SubRegIndex<-1, -1>;
+def sub_gpr_even : SubRegIndex<32> {
----------------
jrtc27 wrote:

I guess if we do that then it's fine

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


More information about the llvm-commits mailing list