[clang] [clang][OpenMP] Use leaf constructs in `mapLoopConstruct` (PR #97446)
Krzysztof Parzyszek via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 2 13:02:22 PDT 2024
================
@@ -6270,16 +6270,20 @@ bool SemaOpenMP::mapLoopConstruct(
if (BindKind == OMPC_BIND_unknown) {
// Setting the enclosing teams or parallel construct for the loop
// directive without bind clause.
+ // [5.0:129:25-28] If the bind clause is not present on the construct and
+ // the loop construct is closely nested inside a teams or parallel
+ // construct, the binding region is the corresponding teams or parallel
+ // region. If none of those conditions hold, the binding region is not
+ // defined.
BindKind = OMPC_BIND_thread; // Default bind(thread) if binding is unknown
+ auto ParentLeafs = getLeafConstructsOrSelf(ParentDirective);
----------------
kparzysz wrote:
Done
https://github.com/llvm/llvm-project/pull/97446
More information about the cfe-commits
mailing list