[PATCH] D130249: [LoongArch] Improve the calling convention
Ray Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 21 04:40:34 PDT 2022
wangleiat created this revision.
wangleiat added reviewers: SixWeining, MaskRay, xen0n, xry111, gonglingqin.
Herald added subscribers: luke957, StephenFan, luismarques, s.egerton, PkmX, simoncook, hiraditya, arichardson.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
According to the description of the LoongArch abi documentation,
(https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html)
the calling convention of LoongArch is almost the same as the RISCV's
(except for the vector part), so we borrow the implementation of RISCV.
This patch only guarantees the correctness of lp64d, because only the
part of lp64d is described in detail in the documentation.
Depends on D130248 <https://reviews.llvm.org/D130248>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130249
Files:
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/lib/Target/LoongArch/LoongArchISelLowering.h
llvm/test/CodeGen/LoongArch/calling-conv-lp64d.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130249.446432.patch
Type: text/x-patch
Size: 45735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220721/58fea3e0/attachment.bin>
More information about the llvm-commits
mailing list