This is an archive of the discontinued LLVM Phabricator instance.

[Flang][OpenMP][Lower] Support lowering of `teams` directive to MLIR
ClosedPublic

Authored by skatrak on Aug 2 2023, 6:05 AM.

Details

Summary

This patch adds support for translating teams OpenMP directives to MLIR, when appearing as either loop or block constructs and as part of combined constructs or on its own.

The current Fortran parser does not allow the specification of the optional lower bound for the "num_teams" clause, so only the num_teams_upper MLIR argument is set by this patch.

Depends on D156809

Diff Detail

Event Timeline

skatrak created this revision.Aug 2 2023, 6:05 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
skatrak requested review of this revision.Aug 2 2023, 6:05 AM
kiranchandramohan accepted this revision.Aug 2 2023, 2:35 PM

LG.

flang/test/Lower/OpenMP/teams-reduction-add.f90
1 ↗(On Diff #546429)

It might be good to issue a TODO error since the full flow for reduction is not supported ,

This revision is now accepted and ready to land.Aug 2 2023, 2:35 PM
skatrak updated this revision to Diff 547747.Aug 7 2023, 5:48 AM

Update patch and trigger TODO for teams reduction.

skatrak marked an inline comment as done.Aug 7 2023, 5:48 AM
skatrak updated this revision to Diff 547755.Aug 7 2023, 5:59 AM

Remove leftover TODO.