[llvm] [SYCL] Add platform enumeration and info query using liboffload (PR #166927)

Piotr Balcer via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 20 06:17:35 PST 2025


================
@@ -0,0 +1,65 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include <detail/offload/offload_utils.hpp>
+
+_LIBSYCL_BEGIN_NAMESPACE_SYCL
+namespace detail {
+
+const char *stringifyErrorCode(int32_t error) {
----------------
pbalcer wrote:

I think this API should become an liboffload entry point. I'll add that to my TODO list.

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


More information about the llvm-commits mailing list