[llvm] [RISCV][NFC] Align RISCVCCAssignFn closer to CCAssignFn (PR #191071)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 18:27:01 PDT 2026
================
@@ -324,7 +324,7 @@ static MCRegister allocateRVVReg(MVT ValVT, unsigned ValNo, CCState &State,
// Implements the RISC-V calling convention. Returns true upon failure.
bool llvm::CC_RISCV(unsigned ValNo, MVT ValVT, MVT LocVT,
----------------
lenary wrote:
I'd probably call them `CC_RISCV_ARG` and `CC_RISCV_RET` but sure, I think that's doable, especially if this gets rid of a lot of the custom handling.
Even better if I can also hide the calls to `CC_RISCV_GHC` inside the call to `CC_RISCV_ARG` - I'll see if that's possible.
https://github.com/llvm/llvm-project/pull/191071
More information about the llvm-commits
mailing list