[Openmp-commits] [clang] [llvm] [openmp] [Clang][OpenMP] Implement Loop splitting `#pragma omp split` directive (PR #183261)
Amit Tiwari via Openmp-commits
openmp-commits at lists.llvm.org
Tue Mar 31 04:46:08 PDT 2026
================
@@ -1023,6 +1024,105 @@ class OMPSizesClause final
}
};
+/// This represents the 'counts' clause in the '#pragma omp split' directive.
+///
+/// \code
+/// #pragma omp split counts(3, omp_fill, 2)
+/// for (int i = 0; i < n; ++i) { ... }
+/// \endcode
+class OMPCountsClause final
+ : public OMPClause,
+ private llvm::TrailingObjects<OMPCountsClause, Expr *> {
+ friend class OMPClauseReader;
+ friend class llvm::TrailingObjects<OMPCountsClause, Expr *>;
+
+ /// Location of '('.
+ SourceLocation LParenLoc;
+
+ /// Number of count expressions in the clause.
+ unsigned NumCounts;
+
+ /// 0-based index of the omp_fill list item, or UINT_MAX if absent.
+ unsigned OmpFillIndex;
----------------
amitamd7 wrote:
Addressed.
https://github.com/llvm/llvm-project/pull/183261
More information about the Openmp-commits
mailing list