[flang-commits] [flang] [Flang][OpenMP] Fix nested PARALLEL SECTIONS validation (PR #179419)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Tue Feb 3 06:15:54 PST 2026
================
@@ -633,11 +633,31 @@ void OmpStructureChecker::CheckMultListItems() {
CheckMultipleOccurrence(listVars, nameList, clause->source, "LINEAR");
}
}
+bool OmpStructureChecker::IsCombinedParallelWorksharing(
+ llvm::omp::Directive directive) const {
+ // Combined parallel-worksharing constructs create their own parallel region
+ // They should not be subject to worksharing nesting restrictions
+ switch (directive) {
----------------
kparzysz wrote:
All the cases below that have the same return could be grouped together, i.e.
```
case OMPD_parallel_do:
case OMPD_parallel_do_simd:
case ...
return true;
default:
return false;
```
https://github.com/llvm/llvm-project/pull/179419
More information about the flang-commits
mailing list