[flang-commits] [flang] [flang][cuda] Keep data transfers for allocatable assignments with device data (PR #212855)

via flang-commits flang-commits at lists.llvm.org
Wed Jul 29 12:54:40 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h -- flang/include/flang/Evaluate/tools.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/include/flang/Evaluate/tools.h b/flang/include/flang/Evaluate/tools.h
index bf711050a..12d7de7ae 100644
--- a/flang/include/flang/Evaluate/tools.h
+++ b/flang/include/flang/Evaluate/tools.h
@@ -1441,7 +1441,8 @@ inline bool IsCUDADataTransfer(const A &lhs, const B &rhs) {
   bool rhsHasDeviceOnly{rhsNbSymbols > rhsNbManagedSymbols};
 
   // Assignments done on the host, with no copy.
-  // - A whole allocatable left-hand side with no device data. The assignment may
+  // - A whole allocatable left-hand side with no device data. The assignment
+  // may
   //   reallocate it, which is done on the host.
   // - A managed left-hand side with no whole managed array on either side. Only
   //   sections and elements are involved, and the host reads and writes them in

``````````

</details>


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


More information about the flang-commits mailing list