[llvm-branch-commits] [llvm] [libsycl] add sycl::event and wait functionality to event & queue (PR #188793)

Kseniya Tikhomirova via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 30 06:32:44 PDT 2026


================
@@ -0,0 +1,39 @@
+//===----------------------------------------------------------------------===//
+//
+// 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/event_impl.hpp>
+#include <detail/platform_impl.hpp>
+
+_LIBSYCL_BEGIN_NAMESPACE_SYCL
+
+namespace detail {
+
+EventImpl::~EventImpl() {
+  if (MOffloadEvent)
+    std::ignore = olDestroyEvent(MOffloadEvent);
+}
+
+backend EventImpl::getBackend() const noexcept {
+  // TODO: to handle default cosntructed
+  //  The event is constructed as though it were created from a
----------------
KseniyaTikhomirova wrote:

removed this comment for now, it is related to default-constructed event that I removed in this version. I guess I added it here as reference to what I should implement and forgot to remove when decided to not to.
https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:event-ctors

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


More information about the llvm-branch-commits mailing list