[PATCH] D95588: [RISCV] Implement the MC layer support of P extension

Jim Lin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 12 23:32:35 PDT 2021


Jim added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVRegisterInfo.td:69
 
+def sub_lo : SubRegIndex<32>;
+def sub_hi : SubRegIndex<32, 32>;
----------------
Jim wrote:
> luismarques wrote:
> > jrtc27 wrote:
> > > This assumes RV32, and is not clear it applies to register pairs
> > What's the best way to address this?
> sub_lo and sub_hi are only used for GPRPair register class to extract a register from pair registers on RV32.
Do you mean that sub_lo and sub_hi only used on RV32? Does it need to rename or ..?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95588/new/

https://reviews.llvm.org/D95588



More information about the cfe-commits mailing list