This is an archive of the discontinued LLVM Phabricator instance.

[flang][fir] Add support to mangle/deconstruct namelist group name
ClosedPublic

Authored by clementval on Sep 23 2021, 6:39 AM.

Details

Summary

Add support to create unique name for namelist group and be able to
deconstruct them.

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: jeanPerier
Co-authored-by: schweitz

Diff Detail

Event Timeline

clementval created this revision.Sep 23 2021, 6:39 AM
clementval requested review of this revision.Sep 23 2021, 6:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2021, 6:39 AM
clementval added a project: Restricted Project.
clementval edited the summary of this revision. (Show Details)

It looks like the test is failing with the windows build bot:

C:\ws\w4\llvm-project\premerge-checks\flang\unittests\Optimizer\InternalNamesTest.cpp(168): error: Expected equality of these values:
  actual.str()
    Which is: "\0QMmod1Gnlg"
  expectedMangledName
    Which is: "_QMmod1Gnlg"

It looks like the test is failing with the windows build bot:

C:\ws\w4\llvm-project\premerge-checks\flang\unittests\Optimizer\InternalNamesTest.cpp(168): error: Expected equality of these values:
  actual.str()
    Which is: "\0QMmod1Gnlg"
  expectedMangledName
    Which is: "_QMmod1Gnlg"

Right ... I'll have a look at that.

Fix windows tests

jeanPerier accepted this revision.Sep 24 2021, 4:03 AM
This revision is now accepted and ready to land.Sep 24 2021, 4:03 AM

Hi @clementval ,

Great to see that the upstreaming effort has been restarted, thanks for working on this!

Could you check https://lab.llvm.org/buildbot/#/builders/175/builds/3402? Looks related. The blame list is clearly incorrect there.

DavidSpickett added a subscriber: DavidSpickett.EditedSep 24 2021, 9:03 AM

Could you check https://lab.llvm.org/buildbot/#/builders/175/builds/3402? Looks related. The blame list is clearly incorrect there.

Yeah I expected the other flang bots to fail too but didn't for some reason but it's the right file. Not sure why it never showed up in the changelist.

Edit: now it's showing up elsewhere https://lab.llvm.org/buildbot/#/builders/180/builds/1263 so at least you know it's not due to an "out of tree"quirk.

clementval added a comment.EditedSep 24 2021, 9:23 AM

Hi @clementval ,

Great to see that the upstreaming effort has been restarted, thanks for working on this!

Could you check https://lab.llvm.org/buildbot/#/builders/175/builds/3402? Looks related. The blame list is clearly incorrect there.

Revert until I can fix the issue

clementval reopened this revision.Sep 24 2021, 1:07 PM
This revision is now accepted and ready to land.Sep 24 2021, 1:07 PM

Remove clang waring

This revision was landed with ongoing or failed builds.Sep 24 2021, 1:11 PM
This revision was automatically updated to reflect the committed changes.

Thanks for the quick fix!