[llvm] [SYCL] Add libsycl, a SYCL RT library implementation project (PR #144372)

Kseniya Tikhomirova via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 03:10:32 PDT 2025


================
@@ -0,0 +1,31 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// This file contains the declaration of the Platform class, which encapsulates
+/// a single SYCL platform on which kernel functions may be executed.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBSYCL_PLATFORM_HPP
+#define _LIBSYCL_PLATFORM_HPP
+
+#include <sycl/__detail/config.hpp>
+
+_LIBSYCL_BEGIN_NAMESPACE_SYCL
+
+class _LIBSYCL_EXPORT platform {
+public:
+  /// Constructs a SYCL platform using the default device.
----------------
KseniyaTikhomirova wrote:

https://github.com/llvm/llvm-project/pull/144372/commits/4c17316110005a96fcce89b24e3a7ff668ed7e9c

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


More information about the llvm-commits mailing list