[PATCH] D150417: [LoongArch] Move lp64s out of the unimplemented calling conv list

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 19:16:52 PDT 2023


SixWeining created this revision.
SixWeining added reviewers: xen0n, xry111, MaskRay, benshi001, hev, wangleiat.
Herald added a subscriber: hiraditya.
Herald added a project: All.
SixWeining requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

lp64s is same as lp64d execpt that floating point arguments and return
values are always passed via GPRs or stack which means `UseGPRForFloat`
is always `true` in `CC_LoongArch` for lp64s.

One motivation of this change is to build linux which uses
`-msoft-float` and `-mabi=lp64s` [1].

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/loongarch/Makefile?h=v6.4-rc1#n49


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150417

Files:
  llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
  llvm/test/CodeGen/LoongArch/calling-conv-lp64d.ll
  llvm/test/CodeGen/LoongArch/calling-conv-lp64s-lp64d-common.ll
  llvm/test/CodeGen/LoongArch/calling-conv-lp64s.ll
  llvm/test/CodeGen/LoongArch/e_flags.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150417.521534.patch
Type: text/x-patch
Size: 26895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230512/36fda4f7/attachment.bin>


More information about the llvm-commits mailing list