This is an archive of the discontinued LLVM Phabricator instance.

[flang] Adding fir::getSymbolAttrName attribute to the function corresponding to the main program
ClosedPublic

Authored by Renaud-K on Feb 17 2023, 1:00 PM.

Details

Summary

It is not possible to arrive to the source name of the main program by deconstructing the name _QQmain
Adding the attribute fir::getSymbolAttrName to capture the name

Diff Detail

Event Timeline

Renaud-K created this revision.Feb 17 2023, 1:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2023, 1:00 PM
Renaud-K requested review of this revision.Feb 17 2023, 1:00 PM
This revision is now accepted and ready to land.Feb 17 2023, 3:24 PM
PeteSteinfeld accepted this revision.Feb 17 2023, 3:36 PM

All builds and tests correctly and looks good.

Isn't this actually the fortran name and not a name arising from a bind c? If that's true, do we have to overload the meaning of bind c do the needful?

It is the attribute we decided to use for now. But the plan is to rename it at some point.