[llvm] [offload] Add Windows offload support (PR #187006)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 03:32:20 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/plugins-nextgen/common/src/RPC_Windows.cpp offload/include/Shared/Utils.h offload/include/omptarget.h offload/liboffload/src/OffloadImpl.cpp offload/plugins-nextgen/common/include/ErrorReporting.h offload/plugins-nextgen/common/include/GlobalHandler.h offload/plugins-nextgen/common/src/GlobalHandler.cpp offload/plugins-nextgen/common/src/Utils/ELF.cpp offload/plugins-nextgen/level_zero/include/L0Device.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/offload/include/Shared/Utils.h b/offload/include/Shared/Utils.h
index 3b677921f..91ad692e8 100644
--- a/offload/include/Shared/Utils.h
+++ b/offload/include/Shared/Utils.h
@@ -14,8 +14,8 @@
#ifndef OMPTARGET_SHARED_UTILS_H
#define OMPTARGET_SHARED_UTILS_H
-#include <stdint.h>
#include "llvm/ADT/bit.h"
+#include <stdint.h>
namespace utils {
diff --git a/offload/plugins-nextgen/common/src/RPC_Windows.cpp b/offload/plugins-nextgen/common/src/RPC_Windows.cpp
index 20b9897fb..9dffd3342 100644
--- a/offload/plugins-nextgen/common/src/RPC_Windows.cpp
+++ b/offload/plugins-nextgen/common/src/RPC_Windows.cpp
@@ -1,4 +1,5 @@
-//===- RPC_Windows.cpp - Windows stub implementation of RPC ----------------===//
+//===- RPC_Windows.cpp - Windows stub implementation of RPC
+//----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,8 +13,8 @@
//
//===----------------------------------------------------------------------===//
-#include "RPC.h"
#include "PluginInterface.h"
+#include "RPC.h"
using namespace llvm;
using namespace omp;
@@ -26,21 +27,18 @@ Error RPCServerTy::shutDown(plugin::GenericPluginTy &Plugin) {
return Error::success();
}
-Error RPCServerTy::startThread() {
- return Error::success();
-}
+Error RPCServerTy::startThread() { return Error::success(); }
-Expected<bool> RPCServerTy::isDeviceUsingRPC(
- plugin::GenericDeviceTy &Device,
- plugin::GenericGlobalHandlerTy &Handler,
- plugin::DeviceImageTy &Image) {
+Expected<bool>
+RPCServerTy::isDeviceUsingRPC(plugin::GenericDeviceTy &Device,
+ plugin::GenericGlobalHandlerTy &Handler,
+ plugin::DeviceImageTy &Image) {
return false;
}
-Error RPCServerTy::initDevice(
- plugin::GenericDeviceTy &Device,
- plugin::GenericGlobalHandlerTy &Handler,
- plugin::DeviceImageTy &Image) {
+Error RPCServerTy::initDevice(plugin::GenericDeviceTy &Device,
+ plugin::GenericGlobalHandlerTy &Handler,
+ plugin::DeviceImageTy &Image) {
return Error::success();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/187006
More information about the llvm-commits
mailing list