This is an archive of the discontinued LLVM Phabricator instance.

[Systemz/z/OS] Introduce CCAssignToRegAndStack to calling convention
ClosedPublic

Authored by yusra.syeda on Jun 8 2022, 11:44 AM.

Details

Summary

This patch introduces new action CCAssignToRegAndStack, which makes code more readable.

Diff Detail

Event Timeline

yusra.syeda created this revision.Jun 8 2022, 11:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 11:44 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
yusra.syeda requested review of this revision.Jun 8 2022, 11:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 11:44 AM
Kai added a comment.Jun 9 2022, 6:19 AM

Since this change is potential useful for other platforms, it would be nice to also mention CCAssignToRegAndStack in WritingAnLLVMBackend.txt (in the bullet list at the end of chapter "Calling Conventions").

From a SystemZ perspective this looks good to me (and a clear readability enhancement). I'd still like to hear comments from other backend maintainers whether this common tablegen feature might be useful to them as well ...

FYI @craig.topper @t.p.northover @asl @kazu

Update documentation for CCAssignToRegAndStack in WritingAnLLVMBackend.rst

asl added a comment.Jun 11 2022, 2:57 AM

It seems reasonable to me. Even if it is only used on a single platform, it is small enough from maintenance perspective to have it.

uweigand accepted this revision.Jul 15 2022, 4:48 AM

Given Anton's comment, and since nobody else objected, I'm going to approve this. It is indeed a nice improvement for our backend. LGTM.

This revision is now accepted and ready to land.Jul 15 2022, 4:48 AM
This revision was landed with ongoing or failed builds.Jul 19 2022, 10:57 AM
This revision was automatically updated to reflect the committed changes.