[all-commits] [llvm/llvm-project] 57eb77: [LoongArch] Implement more of the ABI

wangleiat via All-commits all-commits at lists.llvm.org
Fri Aug 5 00:15:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57eb77d4112b6055d4b3a1b7a5e50e2822cf859b
      https://github.com/llvm/llvm-project/commit/57eb77d4112b6055d4b3a1b7a5e50e2822cf859b
  Author: wanglei <wanglei at loongson.cn>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
    A llvm/test/CodeGen/LoongArch/calling-conv-lp64d.ll

  Log Message:
  -----------
  [LoongArch] Implement more of the ABI

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.

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




More information about the All-commits mailing list