[all-commits] [llvm/llvm-project] bff6b9: [flang][OpenMP] Map `teams loop` to `teams distrib...
Kareem Ergawy via All-commits
all-commits at lists.llvm.org
Fri Feb 21 06:40:16 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bff6b926e2a42c15451058828fca313ff40e36dd
https://github.com/llvm/llvm-project/commit/bff6b926e2a42c15451058828fca313ff40e36dd
Author: Kareem Ergawy <kareem.ergawy at amd.com>
Date: 2025-02-21 (Fri, 21 Feb 2025)
Changed paths:
M flang/lib/Optimizer/OpenMP/GenericLoopConversion.cpp
M flang/test/Lower/OpenMP/loop-directive.f90
Log Message:
-----------
[flang][OpenMP] Map `teams loop` to `teams distribute` when required. (#127489)
This extends support for generic `loop` rewriting by:
1. Preventing nesting multiple worksharing loops inside each other. This
is checked by walking the `teams loop` region searching for any `loop`
directive whose `bind` modifier is `parallel`.
2. Preventing convert to worksharing loop if calls to unknow functions
are found in the `loop` directive's body.
We walk the `teams loop` body to identify either of the above 2
conditions, if either of them is found to be true, we map the `loop`
directive to `distribute`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list