This is an archive of the discontinued LLVM Phabricator instance.

[flang][OpenMP] Fixed symbol details type for critical construct names
Needs RevisionPublic

Authored by NimishMishra on Apr 3 2022, 10:24 PM.

Details

Summary

D110502 (https://reviews.llvm.org/D110502) added UnknownDetails for the newly created symbols for critical construct names. That was undesirable. This patch fixes the same.

Also added an XFAIL test case regarding name collision involving a critical construct.

Diff Detail

Event Timeline

NimishMishra created this revision.Apr 3 2022, 10:24 PM
Herald added a project: Restricted Project. · View Herald Transcript
NimishMishra requested review of this revision.Apr 3 2022, 10:24 PM

Ping for review!

Please rebase.

gfortran and flang accept the testcase and compile successfully. Can you please make sure we are not implementing an incorrect check?

Also, can we display a graceful error message instead of a crash dump and check for that in the testcase?

shraiysh requested changes to this revision.May 18 2022, 2:17 AM

Requesting changes/addressing for the comments mentioned above.

This revision now requires changes to proceed.May 18 2022, 2:17 AM

@NimishMishra Can you please address the previous comments. I'd be happy to review it further.

Cheers