[Mlir-commits] [mlir] [OpenMP][Flang] Add "IsolatedFromAbove" trait to omp.target (PR #67164)

Kiran Chandramohan llvmlistbot at llvm.org
Mon Oct 30 04:49:22 PDT 2023


================
@@ -2463,10 +2556,113 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
                  Fortran::parser::OmpClause::Defaultmap>(
       currentLocation, llvm::omp::Directive::OMPD_target);
 
-  return genOpWithBody<mlir::omp::TargetOp>(
-      converter, eval, currentLocation, outerCombined, &clauseList,
-      ifClauseOperand, deviceOperand, threadLimitOperand, nowaitAttr,
-      mapOperands);
+  auto captureImplicitMap = [&](const Fortran::semantics::Symbol &sym) {
----------------
kiranchandramohan wrote:

Please add a comment for the piece of code below. I believe it is going through all the symbols in the  construct and creating `MapInfo` for all of them. Please quote the relevant section from the standard that says everything has to be mapped.

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


More information about the Mlir-commits mailing list