[llvm] [offload] Add Windows offload support (PR #187006)
Nick Sarnie via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 07:24:23 PDT 2026
================
@@ -0,0 +1,54 @@
+//===- 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.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file provides Windows stub implementations for the RPC interface.
+// Remote Procedure Calls are not supported on Windows, so all RPC functions
+// are no-ops that return success.
+//
+//===----------------------------------------------------------------------===//
+
+#include "PluginInterface.h"
+#include "RPC.h"
+
+using namespace llvm;
+using namespace omp;
+using namespace target;
+
+// Windows stub: RPC not supported
+RPCServerTy::RPCServerTy(plugin::GenericPluginTy &Plugin) {}
+
+Error RPCServerTy::shutDown(plugin::GenericPluginTy &Plugin) {
+ return Error::success();
+}
+
+Error RPCServerTy::startThread() { return Error::success(); }
+
+Expected<bool>
+RPCServerTy::isDeviceUsingRPC(plugin::GenericDeviceTy &Device,
+ plugin::GenericGlobalHandlerTy &Handler,
+ plugin::DeviceImageTy &Image) {
+ return false;
----------------
sarnex wrote:
should we add ``// TODO` for these functions?
https://github.com/llvm/llvm-project/pull/187006
More information about the llvm-commits
mailing list