aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI
diff options
context:
space:
mode:
authorRoss Brunton <ross@codeplay.com>2025-08-07 10:16:33 +0100
committerGitHub <noreply@github.com>2025-08-07 10:16:33 +0100
commita44532544bd96c68ce2bc885d0cc0c4c9116f8b1 (patch)
tree7c930ddc0b2b4bfe3332588ee3a096216f08101c /llvm/lib/TextAPI
parentb9e133d5b6e41b652ba579bcb8850c00f72d0f01 (diff)
downloadllvm-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/TextAPI')
0 files changed, 0 insertions, 0 deletions