[RISCV] Add GHC calling convention
authorLuís Marques <luismarques@lowrisc.org>
Tue, 24 Nov 2020 22:29:56 +0000 (22:29 +0000)
committerLuís Marques <luismarques@lowrisc.org>
Tue, 24 Nov 2020 22:35:23 +0000 (22:35 +0000)
commita8dc2110cd4dd69212a204bc1074729f95d5402a
treeff49e98d91a15ef79e915efe431379ad0c44d77e
parente4d9380245518ee8dcb765eb2e5f4f2788b53cc6
[RISCV] Add GHC calling convention

This is a special calling convention to be used by the GHC compiler.

Patch by Andreas Schwab (schwab)

Differential Revision: https://reviews.llvm.org/D89788
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
llvm/test/CodeGen/RISCV/ghccc-rv32.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/ghccc-rv64.ll [new file with mode: 0644]