[clang] [Clang][OpenMP] Add parsing for dims modifier in num_teams and thread_limit (PR #206412)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 30 06:30:34 PDT 2026


================
@@ -7151,9 +7183,37 @@ class OMPThreadLimitClause final
     return const_cast<OMPThreadLimitClause *>(this)->getThreadLimit();
   }
 
+  /// Get the modifier.
+  OpenMPThreadLimitClauseModifier getModifier() const { return Modifier; }
+
+  /// Set the modifier.
+  void setModifier(OpenMPThreadLimitClauseModifier M) { Modifier = M; }
+
+  /// Get the expression of the modifier.
+  const Expr *getModifierExpr() const { return *varlist_end(); }
+
+  /// Get the expression of the modifier.
+  Expr *getModifierExpr() { return *varlist_end(); }
+
+  /// Set the expression of the modifier.
+  void setModifierExpr(Expr *E) { *varlist_end() = E; }
----------------
alexey-bataev wrote:

Make it private

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


More information about the cfe-commits mailing list