[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,
----------------
erichkeane wrote:

There is some oddity I never looked into about the `mlir::ValueRange` which resulted in a warning about a dangling reference.  Instead, I've decided to remove the `bounds` from this, and I'll deal with it in a future patch, which means I can remove this.

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


More information about the cfe-commits mailing list