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

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 13:13:43 PDT 2021


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVRegisterInfo.td:199
+
+def GPRP : RegisterClass<"RISCV",
+                         [XLenVT, XLenI8VT, XLenI16VT, XLenI32VT], 32, (add
----------------
Why do we need a special register class? If the size, alignment, spill size are the same, why can't we just add the types to the regular GPR class?


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

https://reviews.llvm.org/D95588



More information about the llvm-commits mailing list