[Mlir-commits] [mlir] [flang][MLIR][OpenMP] Add support for `target update` directive. (PR #75047)
Akash Banerjee
llvmlistbot at llvm.org
Tue Dec 12 09:01:24 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
+}
----------------
TIFitis wrote:
We don't need to add checks for cases for which it isn't possible to create an mlir op. Please remove other such checks.
https://github.com/llvm/llvm-project/pull/75047
More information about the Mlir-commits
mailing list