[Mlir-commits] [mlir] Adding masked operation to OpenMP Dialect (PR #96022)

Sergio Afonso llvmlistbot at llvm.org
Thu Jun 27 05:57:05 PDT 2024


================
@@ -2149,4 +2149,25 @@ def DeclareReductionOp : OpenMP_Op<"declare_reduction", [Symbol,
   let hasRegionVerifier = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// [Spec 5.2] 10.5 masked Construct
+//===----------------------------------------------------------------------===//
+def MaskedOp : OpenMP_Op<"masked"> {
+  let summary = "masked construct";
+  let description = [{
+    Masked construct allows to specify a structured block to be executed by a subset of 
+    threads of the current team. Filter clause allows to select the threads expected to
+    execute the region
+  }];
+
+  let arguments = (ins Optional<I32>:$filteredThreadId);
----------------
skatrak wrote:

Also, the argument should be called `filtered_thread_id` instead, to follow the convention used elsewhere.

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


More information about the Mlir-commits mailing list