[llvm] [libsycl] Add liboffload kernel creation (PR #188794)

Sergey Semenov via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 06:43:40 PDT 2026


================
@@ -0,0 +1,80 @@
+//===----------------------------------------------------------------------===//
+//
+// 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 class that aggregates information
+/// specific to device kernels (i.e. information that is uniform between
+/// different submissions of the same kernel).
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBSYCL_DEVICE_KERNEL_INFO
+#define _LIBSYCL_DEVICE_KERNEL_INFO
+
+#include <sycl/__impl/detail/config.hpp>
+
+#include <OffloadAPI.h>
+
+_LIBSYCL_BEGIN_NAMESPACE_SYCL
+namespace detail {
+
+class ProgramAndKernelManager;
+
+// Pointers to instances of this class are stored in header function templates
+// as a static variable to avoid repeated runtime lookup overhead.
+class DeviceKernelInfo {
+public:
+  /// Constructs device kernel info instance.
+  ///
+  /// \param KernelName a name of kernel.
+  /// \param DeviceImage a device image containing device code of this kernel.
----------------
sergey-semenov wrote:

```suggestion
  /// Constructs a device kernel info instance.
  ///
  /// \param KernelName the name of the kernel.
  /// \param DeviceImage the device image containing device code of this kernel.
```

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


More information about the llvm-commits mailing list