[Mlir-commits] [mlir] [mlir][OpenMP] Convert omp.cancel parallel to LLVMIR (PR #137192)

Sergio Afonso llvmlistbot at llvm.org
Fri Apr 25 05:47:35 PDT 2025


================
@@ -158,6 +158,12 @@ static LogicalResult checkImplementationStatus(Operation &op) {
     if (op.getBare())
       result = todo("ompx_bare");
   };
+  auto checkCancelDirective = [&todo](auto op, LogicalResult &result) {
+    omp::ClauseCancellationConstructType cancelledDirective =
+        op.getCancelDirective();
+    if (cancelledDirective != omp::ClauseCancellationConstructType::Parallel)
+      result = todo("cancel directive");
----------------
skatrak wrote:

Nit: Maybe specify in the error message that only parallel is supported.

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


More information about the Mlir-commits mailing list