[llvm] [OFFLOAD][OMP] Move OpenMP kernel argument processing from plugins (PR #213867)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 4 01:12:58 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 cpp,h -- offload/liboffload/src/OffloadImpl.cpp offload/libomptarget/device.cpp offload/plugins-nextgen/amdgpu/src/rtl.cpp offload/plugins-nextgen/common/include/PluginInterface.h offload/plugins-nextgen/common/include/RecordReplay.h offload/plugins-nextgen/common/src/PluginInterface.cpp offload/plugins-nextgen/common/src/RecordReplay.cpp offload/plugins-nextgen/cuda/src/rtl.cpp offload/plugins-nextgen/host/src/rtl.cpp offload/plugins-nextgen/level_zero/include/L0Kernel.h offload/plugins-nextgen/level_zero/src/L0Device.cpp offload/plugins-nextgen/level_zero/src/L0Kernel.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/offload/libomptarget/device.cpp b/offload/libomptarget/device.cpp
index 8bdde45df..8bd6107db 100644
--- a/offload/libomptarget/device.cpp
+++ b/offload/libomptarget/device.cpp
@@ -358,7 +358,7 @@ int32_t DeviceTy::notifyDataUnmapped(void *HstPtr) {
/// Resolve \p NumArgs (base pointer, offset) pairs into a flattened array of
/// argument-value pointers suitable for a kernel launch, writing the result
-/// into \p LaunchArgs.NumArgs/Args.
+/// into \p LaunchArgs.NumArgs/Args.
static void resolveKernelLaunchParams(void **TgtArgs, ptrdiff_t *TgtOffsets,
uint32_t NumArgs,
llvm::SmallVector<void *> &Args,
``````````
</details>
https://github.com/llvm/llvm-project/pull/213867
More information about the llvm-commits
mailing list