[flang-commits] [flang] [llvm] [flang][OpenMP] Move clause validity checks into OpenMP-specific code (PR #205607)
Abid Qadeer via flang-commits
flang-commits at lists.llvm.org
Thu Jun 25 10:51:24 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());
+ }
+
----------------
abidh wrote:
Non-blocking but I was wondering if we could derive exclusivity from `allowedExclusiveClauses` rather than these 2 hand written calls.
https://github.com/llvm/llvm-project/pull/205607
More information about the flang-commits
mailing list