[flang-commits] [flang] [mlir] [flang][OpenMP] Support for "!$omp dispatch". (PR #203320)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Tue Jun 16 04:10:03 PDT 2026


================
@@ -2286,6 +2286,22 @@ def MaskedOp : OpenMP_Op<"masked", clauses = [
   ];
 }
 
+//===----------------------------------------------------------------------===//
+// [Spec 5.1] 12.3 dispatch Construct
+//===----------------------------------------------------------------------===//
+def DispatchOp : OpenMP_Op<"dispatch", singleRegion = true> {
+  let summary = "dispatch construct";
+  let description = [{
+    The dispatch construct enables the invocation of a variant of a
+    base procedure (without any construct's clauses: device, is_device_ptr,
+    nowait, nocontext, novariants). The structured block of a dispatch
----------------
skatrak wrote:

```suggestion
    base procedure. The structured block of a dispatch
```

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


More information about the flang-commits mailing list