This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ][z/OS] Add support for function name field of PPA1
ClosedPublic

Authored by Everybody0523 on Aug 9 2023, 4:39 AM.

Details

Summary

This PR causes the PPA1 to emit the function's name if it exists. This field is not emitted for unnamed functions.

Diff Detail

Event Timeline

Everybody0523 created this revision.Aug 9 2023, 4:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2023, 4:39 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Everybody0523 requested review of this revision.Aug 9 2023, 4:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2023, 4:39 AM
uweigand accepted this revision.Aug 9 2023, 6:42 AM

See minor nit inline. Otherwise LGTM.

llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
1129

Please pass OutStreamer as first argument for consistency with emitPPA1Flags. Also, just pass in a StringRef OutName instead of all of MF.

This revision is now accepted and ready to land.Aug 9 2023, 6:42 AM

Change signature of emitPPA1Name() to match precedent.

Everybody0523 marked an inline comment as done.Aug 9 2023, 11:01 AM
uweigand accepted this revision.Aug 9 2023, 12:24 PM

LGTM, thanks!