[all-commits] [llvm/llvm-project] b373ec: [AIX] Implement caller arguments passed in stack m...

Sean Fertile via All-commits all-commits at lists.llvm.org
Thu Feb 6 09:08:16 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b373ec8ce76a00cd079f70d108b13129c3a4a7b9
      https://github.com/llvm/llvm-project/commit/b373ec8ce76a00cd079f70d108b13129c3a4a7b9
  Author: Chris Bowler <cebowleratibm at gmail.com>
  Date:   2020-02-06 (Thu, 06 Feb 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/aix-cc-abi.ll
    R llvm/test/CodeGen/PowerPC/aix-stackargs.ll

  Log Message:
  -----------
  [AIX] Implement caller arguments passed in stack memory.

This patch implements the caller side of placing function call arguments
in stack memory. This removes the current limitation where LLVM on AIX
will report fatal error when arguments can't be contained in registers.

There is a particular oddity that a float argument that passes in a
register and also in stack memory requires that the caller initialize
both. From what AIX "ABI" documentation I have it's not clear that this
needs to be done, however, it is necessary for compatibility with the
AIX XL compiler so I think it's best to implement it the same way.

Note a later patch will follow to address the callee side.

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




More information about the All-commits mailing list