This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC][AIX] ByVal formal argument support: passing on the stack
ClosedPublic

Authored by sfertile on Apr 15 2020, 6:33 PM.

Details

Summary

Adds support for passing a ByVal formal argument completely on the stack (ie after all argument registers are exhausted).

Diff Detail

Event Timeline

sfertile created this revision.Apr 15 2020, 6:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2020, 6:33 PM
sfertile updated this revision to Diff 258039.Apr 16 2020, 6:42 AM

Fix unintended white space change.

cebowleratibm accepted this revision.Apr 16 2020, 1:21 PM

I think the review title "ByVal formal argument support: passing on the stack" implies that it covers the reg/stack split case. I noted you described it better in the review description. I think a slightly more descriptive abstract would be useful for the commit message.

I noted that test_byval_mem4 could have been defined for 64-bit, however 32-bit would emit an error. I expect you plan to follow up with another patch to handle the reg/stack split case, just be sure to add the definition of this function for that case when you do.

I think this one looks pretty straight forward. LGTM.

This revision is now accepted and ready to land.Apr 16 2020, 1:21 PM
This revision was automatically updated to reflect the committed changes.
llvm/lib/Target/PowerPC/PPCISelLowering.cpp