[llvm] [Offload] Implement the remaining initial Offload API (PR #122106)
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 08:24:55 PST 2025
================
@@ -0,0 +1,41 @@
+//===-- Event.td - Event definitions for Offload -----------*- tablegen -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+//
+// This file contains Offload API definitions related to the event handle
+//
+//===----------------------------------------------------------------------===//
+
+def : Function {
+ let name = "olRetainEvent";
+ let desc = "Increment the reference count of the given event";
+ let details = [];
+ let params = [
+ Param<"ol_event_handle_t", "Event", "handle of the event", PARAM_IN>
+ ];
+ let returns = [];
+}
+
+def : Function {
+ let name = "olReleaseEvent";
+ let desc = "Decrement the reference count of the given event";
----------------
jdoerfert wrote:
Is it expected to delete the event if the ref count hits 0? If so, we might want to mention it. Same for other releases.
https://github.com/llvm/llvm-project/pull/122106
More information about the llvm-commits
mailing list