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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon May 19 06:41:26 PDT 2025


================
@@ -36,6 +37,76 @@ template <typename ToTest> constexpr bool isCombinedType = false;
 template <typename T>
 constexpr bool isCombinedType<CombinedConstructClauseInfo<T>> = true;
 
+namespace {
+struct DataOperandInfo {
+  mlir::Location beginLoc;
+  mlir::Value varValue;
+  llvm::StringRef name;
+  mlir::ValueRange bounds;
+
+  DataOperandInfo(mlir::Location beginLoc, mlir::Value varValue,
+                  llvm::StringRef name, mlir::ValueRange bounds)
+      : beginLoc(beginLoc), varValue(varValue), name(name), bounds(bounds) {}
+};
+
+inline mlir::Value createIntExpr(CIRGen::CIRGenFunction &cgf,
----------------
erichkeane wrote:

Yeah, *sigh*.  I was thinking about that over the weekend.  After this patch I'm going to try to re-factor how clause-emitting works entirely.  For now, I'll change this to `emitOpenACCIntExpr` to be more clear.

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


More information about the cfe-commits mailing list