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

via flang-commits flang-commits at lists.llvm.org
Tue Mar 12 07:34:49 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,
----------------
agozillon wrote:

Thank you very much @anchuraj please do take the concerns I stated above with a grain of salt and feel free to tell me if I am wrong (as there's a good chance I am), it's thoughts from my previous work on declare target which didn't touch on common blocks other than to know it's something that OpenMP seems to require handling of. So at the very least it's something we can learn about together as we go :-) 

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


More information about the flang-commits mailing list