This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ] [NFC] Add SystemZELFFrameLowering and SystemZXPLINKFrameLowering classes.
ClosedPublic

Authored by Everybody0523 on Aug 26 2021, 11:57 AM.

Details

Summary

This patch adds class SystemZFrameLowering which is a SystemZ-specific class detailing special registers used by calling conventions on the target. SystemZELFFrameLowering and SystemZXPLINKFrameLowering implement this class for ELF and XPLINK64 respectively. Previous functionality in SystemZFrameLowering is moved to SystemZELFFrameLowering. SystemZXPLINKFrameLowering can then be implemented in future patches.

Diff Detail

Event Timeline

Everybody0523 created this revision.Aug 26 2021, 11:57 AM
Everybody0523 requested review of this revision.Aug 26 2021, 11:57 AM
This revision is now accepted and ready to land.Aug 27 2021, 8:53 AM

Fix some formatting issues + use make_unique in create method instead of having it return a raw ptr.

More formatting issues.

Kai accepted this revision.Aug 31 2021, 10:25 AM

LGTM.
Please have a look of the formatting of the line I commented. Thanks.

llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
768–770

This line seems to be too long. Please, can you check again?

Update length of line in accordance with feedback

No change, hopefully applying patch won't result in a bug again.

Kai requested changes to this revision.Sep 7 2021, 1:14 PM

Sorry, after seeing the pre-check builds, I checked the formatting again.
The code looks ok, but almost all function heads with argument lists running over several lines needs reformatting.

llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
64

Formatting looks wrong.

79

Formatting looks wrong.

80

Trailing space at end of line.

208

Formatting seems to be wrong.

This revision now requires changes to proceed.Sep 7 2021, 1:14 PM

Formatting changes as per clang-format.

uweigand accepted this revision.Sep 9 2021, 3:13 AM

Formatting looks good to me now as well. Still LGTM.

Kai accepted this revision.Sep 9 2021, 8:36 AM

LGTM.

This revision is now accepted and ready to land.Sep 9 2021, 8:36 AM
This revision was landed with ongoing or failed builds.Sep 9 2021, 9:26 AM
This revision was automatically updated to reflect the committed changes.