[llvm-branch-commits] [flang] [flang][openmp] Add parser/semantic support for workdistribute (PR #154377)

Kareem Ergawy via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Aug 20 22:21:14 PDT 2025


================
@@ -896,6 +964,17 @@ void OmpStructureChecker::Enter(const parser::OpenMPBlockConstruct &x) {
     HasInvalidWorksharingNesting(
         beginSpec.source, llvm::omp::nestedWorkshareErrSet);
     break;
+  case llvm::omp::OMPD_workdistribute:
+    if (!CurrentDirectiveIsNested()) {
+      context_.Say(beginSpec.source,
+          "A workdistribute region must be nested inside teams region only."_err_en_US);
----------------
ergawy wrote:

nit: capitalization of construct names here as well.

https://github.com/llvm/llvm-project/pull/154377


More information about the llvm-branch-commits mailing list