This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Remove single reduction clause limitation
ClosedPublic

Authored by razvanlupusoru on Jun 7 2023, 11:13 AM.

Details

Summary

The constraint that a single reduction clause is allowed is actually
not valid as per OpenACC specification. Multiple reduction clauses
are allowed, especially since reduction clauses can have different
reduction operators.

Diff Detail

Event Timeline

razvanlupusoru created this revision.Jun 7 2023, 11:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 11:13 AM
Herald added a subscriber: sunshaoce. · View Herald Transcript
razvanlupusoru requested review of this revision.Jun 7 2023, 11:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 11:13 AM

I am adding tests as part of this: https://reviews.llvm.org/D151955

But I separated this change since it is not in the flang folder. I did keep [flang] in the title, just as was done with the commits when this file was first created.

vzakhari accepted this revision.Jun 7 2023, 11:19 AM

LGTM. Thank you!

This revision is now accepted and ready to land.Jun 7 2023, 11:19 AM