This is an archive of the discontinued LLVM Phabricator instance.

[NFC][PPC][AIX] Add stack frame layout diagram to PPCISelLowering.cpp
ClosedPublic

Authored by ZarkoCA on Jun 23 2020, 1:59 PM.

Diff Detail

Event Timeline

ZarkoCA created this revision.Jun 23 2020, 1:59 PM

Looks good Zarko. I think we should either flip this over to show the stack growing down, or keep it as is but add High Memory at the bottom and Low memory at the top to show the stack grows downwards.

llvm/lib/Target/PowerPC/PPCISelLowering.cpp
7204

Can we add something over on the right hand side to show which of these make up the linkage area? Something like:

--|
  |
  |
  |
  | Linkage Area
  |
  |
  |
  |
 --
7207

Minor nit: Conditional --> Condition

7235

minor nit: +---> should be +--- . The first makes it look like the backchains point to each other as opposed to each backchain pointing ot the previous backchain.

ZarkoCA marked 4 inline comments as done.Jun 24 2020, 8:32 AM
ZarkoCA added inline comments.
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
7204

Good suggestion, we should definitely have that.

ZarkoCA updated this revision to Diff 273035.Jun 24 2020, 8:34 AM
ZarkoCA marked an inline comment as done.

Addressed Sean's comments:

Fixed typos and labelled linkage area in the stack frame.

ZarkoCA updated this revision to Diff 273047.Jun 24 2020, 8:39 AM

Added High/Low Memory labels to diagram.

This revision is now accepted and ready to land.Jun 24 2020, 11:49 AM
ZarkoCA edited the summary of this revision. (Show Details)Jun 25 2020, 6:40 AM
This revision was automatically updated to reflect the committed changes.