[llvm-branch-commits] [flang] [mlir] [OpenMP][MLIR] Set omp.composite attr for composite loop wrappers and add verifier checks (PR #102341)

Sergio Afonso via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 12 04:44:35 PDT 2024


================
@@ -2383,3 +2383,165 @@ func.func @masked_arg_count_mismatch(%arg0: i32, %arg1: i32) {
     }) : (i32, i32) -> ()
   return
 }
+
+// -----
+func.func @omp_parallel_missing_composite(%lb: index, %ub: index, %step: index) -> () {
+  omp.distribute {
+  // expected-error at +1 {{'omp.composite' attribute missing from composite wrapper}}
----------------
skatrak wrote:

```suggestion
    // expected-error at +1 {{'omp.composite' attribute missing from composite wrapper}}
```

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


More information about the llvm-branch-commits mailing list