[clang] [OpenMP][Clang] Fix parsing of num_teams lower-bound modifier (PR #205700)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 25 06:55:00 PDT 2026


================
@@ -215,6 +215,15 @@ unsigned clang::getOpenMPSimpleClauseType(OpenMPClauseKind Kind, StringRef Str,
       return OMPC_NUMTASKS_unknown;
     return Type;
   }
+  case OMPC_num_teams: {
+    unsigned Type = llvm::StringSwitch<unsigned>(Str)
+#define OPENMP_NUMTEAMS_MODIFIER(Name) .Case(#Name, OMPC_NUMTEAMS_##Name)
+#include "clang/Basic/OpenMPKinds.def"
+                        .Default(OMPC_NUMTEAMS_unknown);
+    if (LangOpts.OpenMP < 51)
----------------
alexey-bataev wrote:

51 or 52? Is this feature in OpenMP 5.1 or 5.2?

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


More information about the cfe-commits mailing list