[flang-commits] [flang] [llvm] [flang][OpenMP] Move clause validity checks into OpenMP-specific code (PR #205607)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Thu Jun 25 05:13:10 PDT 2026
================
@@ -414,6 +414,12 @@ void OmpStructureChecker::Enter(const parser::OpenMPLoopConstruct &x) {
HasInvalidWorksharingNesting(beginName, llvm::omp::nestedWorkshareErrSet);
}
+ if (llvm::omp::allTaskloopSet.test(beginName.v)) {
+ OmpClauseSet exclusive{
+ llvm::omp::Clause::OMPC_grainsize, llvm::omp::Clause::OMPC_num_tasks};
+ CheckExclusiveClauses(exclusive, x.BeginDir());
+ }
+
----------------
kparzysz wrote:
Mutual-exclusion checks are done per-clause. There are two cases of this (this is just preserving the current functionality).
https://github.com/llvm/llvm-project/pull/205607
More information about the flang-commits
mailing list