You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Offload] Replace "EventOut" parameters with olCreateEvent (llvm#150217)
Rather than having every "enqueue"-type function have an output pointer
specifically for an output event, just provide an `olCreateEvent`
entrypoint which pushes an event to the queue.
For example, replace:
```cpp
olMemcpy(Queue, ..., EventOut);
```
with
```cpp
olMemcpy(Queue, ...);
olCreateEvent(Queue, EventOut);
```
let desc = "Enqueue an event to `Queue` and return it.";
16
+
let details = [
17
+
"This event can be used with `olSyncEvent` and `olWaitEvents` and will be complete once all enqueued work prior to the `olCreateEvent` call is complete.",
18
+
];
19
+
let params = [
20
+
Param<"ol_queue_handle_t", "Queue", "queue to create the event for", PARAM_IN>,
21
+
Param<"ol_event_handle_t*", "Event", "output pointer for the created event", PARAM_OUT>
22
+
];
23
+
let returns = [];
24
+
}
25
+
13
26
def : Function {
14
27
let name = "olDestroyEvent";
15
28
let desc = "Destroy the event and free all underlying resources.";
0 commit comments