[PATCH] D137495: [LoongArch] Add GHC Calling Convention

Lin Runze via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 5 11:39:22 PDT 2022


lrzlin created this revision.
lrzlin added reviewers: xen0n, xry111, SixWeining, gonglingqin, MaskRay.
lrzlin added projects: All, LLVM.
Herald added subscribers: s.egerton, PkmX, simoncook, hiraditya, arichardson.
lrzlin requested review of this revision.
Herald added a subscriber: llvm-commits.

This is a calling convention which needed by the Glasgow Haskell Compiler. 
Also, due to the `getAddr()` function haven't implement the small CodeModel yet, so using the PseudoLA_PCREL instead.
Reference: RISCV GHC calling convention <https://reviews.llvm.org/D89788>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137495

Files:
  llvm/lib/Target/LoongArch/LoongArchFrameLowering.cpp
  llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
  llvm/lib/Target/LoongArch/LoongArchRegisterInfo.cpp
  llvm/test/CodeGen/LoongArch/ghc-cc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137495.473447.patch
Type: text/x-patch
Size: 12521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221105/0b20c546/attachment.bin>


More information about the llvm-commits mailing list