[llvm] [RISCV] Add 32 bit GPR sub-register for Zfinx. (PR #108336)
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 06:59:08 PDT 2024
================
@@ -156,6 +156,23 @@ static ArrayRef<MCPhysReg> getArgGPR16s(const RISCVABI::ABI ABI) {
return ArrayRef(ArgIGPRs);
}
+static ArrayRef<MCPhysReg> getArgGPR32s(const RISCVABI::ABI ABI) {
+ // The GPRs used for passing arguments in the ILP32* and LP64* ABIs, except
+ // the ILP32E ABI.
+ static const MCPhysReg ArgIGPRs[] = {RISCV::X10_W, RISCV::X11_W, RISCV::X12_W,
+ RISCV::X13_W, RISCV::X14_W, RISCV::X15_W,
+ RISCV::X16_W, RISCV::X17_W};
+ // The GPRs used for passing arguments in the ILP32E/ILP64E ABI.
----------------
asb wrote:
ILP64E => LP64E
https://github.com/llvm/llvm-project/pull/108336
More information about the llvm-commits
mailing list