[flang-commits] [flang] [flang][openmp] - depend clause support in target, target enter/update/exit data constructs (PR #81610)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Fri Feb 16 06:01:55 PST 2024


================
@@ -14,6 +14,26 @@ subroutine omp_target_enter_simple
     return
 end subroutine omp_target_enter_simple
 
+!===============================================================================
+! Target_Enter `depend` clause
+!===============================================================================
+
+!CHECK-LABEL: func.func @_QPomp_target_enter_depend() {
+subroutine omp_target_enter_depend
+   !CHECK: %[[A:.*]]:2 = hlfir.declare %{{.*}}(%{{.*}}) {uniq_name = "_QFomp_target_enter_dependEa"} : (!fir.ref<!fir.array<1024xi32>>, !fir.shape<1>) -> (!fir.ref<!fir.array<1024xi32>>, !fir.ref<!fir.array<1024xi32>>)
----------------
skatrak wrote:

Nit: I think it's not necessary to check the `hlfir.declare` operation here, since we're only really interested in matching the same SSA value in `omp.task depend(taskdependout -> %[[A:.*]] : ...` and in `omp.target_enter_data ... depend(taskdependin -> %[[A]] : ...`. Same comment for the other tests added in this file.

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


More information about the flang-commits mailing list