]> granicus.if.org Git - llvm/commit
[RISCV] Support fast calling convention
authorShiva Chen <shiva0217@gmail.com>
Tue, 15 Oct 2019 02:04:29 +0000 (02:04 +0000)
committerShiva Chen <shiva0217@gmail.com>
Tue, 15 Oct 2019 02:04:29 +0000 (02:04 +0000)
commiteee3ea147ad51c7a799f9c15be69363877168645
treeb84345f5b0f6dfeabbe42e7c6098750390176043
parent60c24975c0cd2d2b40d6e53a9a6bfea86f7433fa
[RISCV] Support fast calling convention

LLVM may annotate the function with fastcc if there has only one caller
and there're no other caller out of the module and the function is not
naked or contain variable arguments.

The fastcc functions could pass the arguments by the caller saved registers.

Differential Revision: https://reviews.llvm.org/D68559

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374857 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVISelLowering.cpp
test/CodeGen/RISCV/fastcc-float.ll [new file with mode: 0644]
test/CodeGen/RISCV/fastcc-int.ll [new file with mode: 0644]