[Mlir-commits] [mlir] [flang][MLIR][OpenMP] Add support for `target update` directive. (PR #75047)

Kareem Ergawy llvmlistbot at llvm.org
Tue Dec 12 20:46:59 PST 2023


================
@@ -1658,4 +1658,77 @@ func.func @omp_target_exit_data(%map1: memref<?xi32>) {
   return
 }
 
+// -----
+
+func.func @omp_target_update_data_if(%if_cond : i1) {
+  // expected-error @below {{`if` clause can appear at most once in the expansion of the oilist directive}}
+  omp.target_update_data if(%if_cond : i1) if(%if_cond : i1)
+  return
+}
----------------
ergawy wrote:

> By your argument why not test that it doesn't work for other random clauses as well?

That I agree with. Removed the extra tests. Thanks for the discussion.

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


More information about the Mlir-commits mailing list