[libc-commits] [libc] [llvm] [LLVM] Port 'llvm-gpu-loader' to use LLVMOffload (PR #162739)

via libc-commits libc-commits at lists.llvm.org
Tue Feb 17 12:39:00 PST 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 -- libc/startup/gpu/start.cpp llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp llvm/tools/llvm-gpu-loader/llvm-gpu-loader.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/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h b/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h
index d7fa57fd6..8e156768a 100644
--- a/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h
+++ b/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h
@@ -91,8 +91,7 @@ typedef struct ol_init_args_t {
   const ol_platform_backend_t *Platforms;
 } ol_init_args_t;
 
-#define OL_INIT_ARGS_INIT                                                      \
-  { sizeof(ol_init_args_t), 0, NULL }
+#define OL_INIT_ARGS_INIT {sizeof(ol_init_args_t), 0, NULL}
 
 typedef struct ol_device_impl_t *ol_device_handle_t;
 typedef struct ol_platform_impl_t *ol_platform_handle_t;

``````````

</details>


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


More information about the libc-commits mailing list