[llvm] draft (PR #211025)

Kseniya Tikhomirova via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 08:49:04 PDT 2026


================
@@ -0,0 +1,99 @@
+//===----------------------------------------------------------------------===//
+//
+// 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 helpers for kernel submission entry points.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBSYCL___IMPL_DETAIL_KERNEL_SUBMISSION_HPP
+#define _LIBSYCL___IMPL_DETAIL_KERNEL_SUBMISSION_HPP
+
+#include <sycl/__impl/detail/config.hpp>
+#include <sycl/__impl/detail/get_device_kernel_info.hpp>
+#include <sycl/__impl/detail/kernel_arg_helpers.hpp>
+#include <sycl/__impl/exception.hpp>
+#include <sycl/__impl/index_space_classes.hpp>
+
+#include <tuple>
+#include <utility>
+
+_LIBSYCL_BEGIN_NAMESPACE_SYCL
+
+namespace detail {
+
+template <typename DerivedT> class KernelSubmissionBase {
+protected:
+  template <typename KernelName, typename KernelType>
+#ifdef SYCL_LANGUAGE_VERSION
+  [[clang::sycl_kernel_entry_point(KernelName)]]
+#endif
+  void submitSingleTask(const KernelType &KernelFunc) {
+    // Compiler lowers host-side calls in this entry point to
----------------
KseniyaTikhomirova wrote:

remove useless comments

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


More information about the llvm-commits mailing list