This patch adds the following nesting check for barrier constructs:
A barrier region may not be closely nested inside a worksharing, loop, task, taskloop, critical, ordered, atomic, or master region.
Also adds a test case for the check,
Differential D99888
[flang][OpenMP] Add semantic checks for occurrence of nested Barrier regions arnamoy10 on Apr 5 2021, 9:38 AM. Authored by
Details This patch adds the following nesting check for barrier constructs: A barrier region may not be closely nested inside a worksharing, loop, task, taskloop, critical, ordered, atomic, or master region. Also adds a test case for the check,
Diff Detail
Event Timeline
Comment Actions Updating patch to use newly landed API for checking close nesting. Also added a few more test cases when there is violation for more than 1 level of nesting.
|
Barriers are allowed in a parallel region. It is probably not allowed in parallel do, do simd etc.