[PATCH] D75863: [AIX} Implement by-val caller arguments in a single register

Chris Bowler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 10:46:51 PDT 2020


cebowleratibm created this revision.
cebowleratibm added reviewers: ZarkoCA, sfertile.
Herald added subscribers: llvm-commits, kbarton, hiraditya, nemanjai.
Herald added a project: LLVM.

This is the first of a series of patches that adds caller support for by-value arguments that are passed in a single GPR.

There are 3 limitation cases:
-The by-value argument is larger than a single register.
-There are no remaining GPRs even though the by-value argument would otherwise fit in a single GPR.
-The by-value argument requires alignment greater than register width.

Future patches will be required to add support for these cases as well as for the callee handling (in LowerFormalArguments_AIX) that corresponds to this work.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75863

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/test/CodeGen/PowerPC/aix-byval-param-limitation1.ll
  llvm/test/CodeGen/PowerPC/aix-byval-param-limitation2.ll
  llvm/test/CodeGen/PowerPC/aix-byval-param-limitation3.ll
  llvm/test/CodeGen/PowerPC/aix-byval-param.ll
  llvm/test/CodeGen/PowerPC/aix-cc-abi.ll
  llvm/test/CodeGen/PowerPC/aix64-cc-abi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75863.249147.patch
Type: text/x-patch
Size: 26011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200309/9b6600b5/attachment.bin>


More information about the llvm-commits mailing list