[clang] [OpenACC][CIR] Implement beginning of 'copy' lowering for compute con… (PR #140304)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri May 16 15:45:55 PDT 2025


================
@@ -527,6 +709,20 @@ class OpenACCClauseCIREmitter final
       llvm_unreachable("Unknown construct kind in VisitGangClause");
     }
   }
+
+  void VisitCopyClause(const OpenACCCopyClause &clause) {
+    if constexpr (isOneOfTypes<OpTy, mlir::acc::ParallelOp, mlir::acc::SerialOp,
+                               mlir::acc::KernelsOp>) {
+      for (auto Var : clause.getVarList())
----------------
andykaylor wrote:

```suggestion
      for (auto var : clause.getVarList())
```

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


More information about the cfe-commits mailing list