[clang] [llvm] [Clang][OpenMP] Non-contiguous strided update (PR #144635)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 17 04:47:27 PDT 2025


================
@@ -8713,6 +8713,33 @@ AST_MATCHER_P(OMPExecutableDirective, hasAnyClause,
                                     Builder) != Clauses.end();
 }
 
+/// Matches any ``#pragma omp target update`` executable directive.
+///
+/// Given
+///
+/// \code
+///   #pragma omp target update from(a)
+///   #pragma omp target update to(b)
+/// \endcode
+///
+/// ``ompTargetUpdateDirective()`` matches both ``omp target update from(a)``
+/// and ``omp target update to(b)``.
+extern const internal::VariadicDynCastAllOfMatcher<Stmt,
+                                                   OMPTargetUpdateDirective>
+    ompTargetUpdateDirective;
----------------
alexey-bataev wrote:

Why do you need this?

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


More information about the cfe-commits mailing list