diff options
author | Ross Brunton <ross@codeplay.com> | 2025-08-07 10:16:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-07 10:16:33 +0100 |
commit | a44532544bd96c68ce2bc885d0cc0c4c9116f8b1 (patch) | |
tree | 7c930ddc0b2b4bfe3332588ee3a096216f08101c /llvm/lib/Object/MachOObjectFile.cpp | |
parent | b9e133d5b6e41b652ba579bcb8850c00f72d0f01 (diff) | |
download | llvm-a44532544bd96c68ce2bc885d0cc0c4c9116f8b1.zip llvm-a44532544bd96c68ce2bc885d0cc0c4c9116f8b1.tar.gz llvm-a44532544bd96c68ce2bc885d0cc0c4c9116f8b1.tar.bz2 |
[Offload] Don't create events for empty queues (#152304)
Add a device function to check if a device queue is empty. If liboffload
tries to create an event for an empty queue, we create an "empty" event
that is already complete.
This allows `olCreateEvent`, `olSyncEvent` and `olWaitEvent` to run
quickly for empty queues.
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions