[clang] [llvm] Support for dispatch construct (Sema & Codegen) support. (PR #117904)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 5 11:31:45 PST 2024


================
@@ -621,6 +621,11 @@ bool clang::isOpenMPParallelDirective(OpenMPDirectiveKind DKind) {
          llvm::is_contained(getLeafConstructs(DKind), OMPD_parallel);
 }
 
+bool clang::isOpenMPDispatchDirective(OpenMPDirectiveKind DKind) {
+  return DKind == OMPD_dispatch ||
+         llvm::is_contained(getLeafConstructs(DKind), OMPD_target);
----------------
alexey-bataev wrote:

Why does it look for OMPD_target?

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


More information about the cfe-commits mailing list