[flang-commits] [flang] [openmp] Changes to support link clause of declare target with common block (PR #84825)

Anchu Rajendran S via flang-commits flang-commits at lists.llvm.org
Tue Mar 12 07:15:30 PDT 2024


================
@@ -1037,6 +1037,31 @@ static void genBodyOfTargetOp(
     genNestedEvaluations(converter, eval);
 }
 
+// If the symbol is specified in declare target directive, the function returns
+// the corresponding declare target operation.
+static mlir::omp::DeclareTargetInterface
+getDeclareTargetOp(const Fortran::semantics::Symbol &sym,
----------------
anchuraj wrote:

Thanks @agozillon  for reviewing my PR. For the scalar, it seems to refer the common block global. However, for arrays it does not seem to. Let me dive a little deeper and will update this thread with my findings

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


More information about the flang-commits mailing list