[PATCH] D111662: [SystemZ][z/OS] Initial implementation for lowerCall on z/OS

Anirudh Prasad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 12 10:53:04 PDT 2021


anirudhp created this revision.
Herald added a subscriber: hiraditya.
anirudhp requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

- This patch provides the initial implementation for lowering a call on z/OS according to the XPLINK64 calling convention
- A series of changes have been made to SystemZCallingConv.td to account for these additional XPLINK64 changes including adding a new helper function to shadow the stack along with allocation of a register wherever appropriate
- For the cases of copying a f64 to a gr64 and a f128 / 128-bit vector type to a gr64, a `CCBitConvertToType` has been added and has been bitcasted appropriately in the lowering phase
- Support for the ADA register (R5 <https://reviews.llvm.org/source/polly/>) will be provided in a later patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111662

Files:
  llvm/lib/Target/SystemZ/SystemZCallingConv.cpp
  llvm/lib/Target/SystemZ/SystemZCallingConv.h
  llvm/lib/Target/SystemZ/SystemZCallingConv.td
  llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
  llvm/lib/Target/SystemZ/SystemZRegisterInfo.h
  llvm/lib/Target/TargetMachine.cpp
  llvm/test/CodeGen/SystemZ/call-zos-01.ll
  llvm/test/CodeGen/SystemZ/call-zos-vararg.ll
  llvm/test/CodeGen/SystemZ/call-zos-vec.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111662.379105.patch
Type: text/x-patch
Size: 29751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211012/996ee973/attachment-0001.bin>


More information about the llvm-commits mailing list