[PATCH] D68559: [RISCV] Support fast calling convention

Shiva Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 6 19:16:54 PDT 2019


shiva0217 created this revision.
shiva0217 added reviewers: asb, lenary, luismarques.
Herald added subscribers: pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, MaskRay, jrtc27, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar, mgorny.
Herald added a project: LLVM.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D68559

Files:
  lib/Target/RISCV/CMakeLists.txt
  lib/Target/RISCV/RISCVCallingConv.td
  lib/Target/RISCV/RISCVISelLowering.cpp
  test/CodeGen/RISCV/fastcc-float.ll
  test/CodeGen/RISCV/fastcc-int.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68559.223450.patch
Type: text/x-patch
Size: 8705 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191007/b810415a/attachment.bin>


More information about the llvm-commits mailing list