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

Yury Plyakhin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 27 09:50:49 PDT 2026


================
@@ -0,0 +1,25 @@
+//===----------------------------------------------------------------------===//
+//
+// 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 <sycl/__impl/event.hpp>
+
+#include <detail/event_impl.hpp>
+
+_LIBSYCL_BEGIN_NAMESPACE_SYCL
+
+backend event::get_backend() const noexcept { return impl->getBackend(); }
+
+void event::wait(const std::vector<event> &EventList) {
+  for (auto Event : EventList) {
+    Event.wait();
+  }
+}
+
+void event::wait() { return impl->wait(); }
----------------
YuriPlyakhin wrote:

```suggestion
void event::wait() { impl->wait(); }
```

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


More information about the llvm-branch-commits mailing list