[flang-commits] [flang] [flang][MLIR][OpenMP] Emit `UpdateDataOp` from `!$omp target update` (PR #75345)

Akash Banerjee via flang-commits flang-commits at lists.llvm.org
Fri Dec 22 03:54:35 PST 2023


================
@@ -1892,6 +1908,63 @@ bool ClauseProcessor::processUseDevicePtr(
       });
 }
 
+bool ClauseProcessor::processToMotionClauses(
+    Fortran::semantics::SemanticsContext &semanticsContext,
+    Fortran::lower::StatementContext &stmtCtx,
+    llvm::SmallVectorImpl<mlir::Value> &mapOperands) {
+  return processMotionClauses<ClauseProcessor::ClauseTy::To>(
+      semanticsContext, stmtCtx, mapOperands);
+}
+
+bool ClauseProcessor::processFromMotionClauses(
----------------
TIFitis wrote:

I'd get rid of the separate To and From functions and instead have processMotionClauses handle both in a single call.

Or if you want to have two separate calls then remove the indirection and dirrctly make the call to processMotion.

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


More information about the flang-commits mailing list