[flang-commits] [flang] [llvm] Reland "[flang][cuda] Add support for derived-type initialization on device #172568" (PR #172741)
via flang-commits
flang-commits at lists.llvm.org
Wed Dec 17 13:54:29 PST 2025
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 cpp,h -- flang-rt/include/flang-rt/runtime/derived.h flang-rt/include/flang-rt/runtime/work-queue.h flang-rt/lib/cuda/allocatable.cpp flang-rt/lib/cuda/memmove-function.cpp flang-rt/lib/cuda/pointer.cpp flang-rt/lib/runtime/allocatable.cpp flang-rt/lib/runtime/derived.cpp flang-rt/lib/runtime/pointer.cpp flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h flang/include/flang/Runtime/CUDA/allocatable.h flang/include/flang/Runtime/CUDA/memmove-function.h flang/include/flang/Runtime/CUDA/pointer.h flang/include/flang/Runtime/allocatable.h flang/include/flang/Runtime/freestanding-tools.h flang/include/flang/Runtime/pointer.h flang/lib/Lower/Allocatable.cpp flang/lib/Optimizer/Builder/Runtime/Allocatable.cpp flang/lib/Optimizer/Transforms/CUDA/CUFAllocationConversion.cpp --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-rt/include/flang-rt/runtime/work-queue.h b/flang-rt/include/flang-rt/runtime/work-queue.h
index c213df624..4b56540d6 100644
--- a/flang-rt/include/flang-rt/runtime/work-queue.h
+++ b/flang-rt/include/flang-rt/runtime/work-queue.h
@@ -456,8 +456,7 @@ public:
if (runTicketsImmediately_) {
return InitializeTicket{descriptor, derived, memcpyFct}.Run(*this);
} else {
- StartTicket().u.emplace<InitializeTicket>(
- descriptor, derived, memcpyFct);
+ StartTicket().u.emplace<InitializeTicket>(descriptor, derived, memcpyFct);
return StatContinue;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/172741
More information about the flang-commits
mailing list