[llvm] [Offload] OL_QUEUE_INFO_EMPTY (PR #152473)

Ross Brunton via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 05:17:00 PDT 2025


================
@@ -65,7 +65,8 @@ def : Enum {
   let desc = "Supported queue info.";
   let is_typed = 1;
   let etors = [
-    TaggedEtor<"DEVICE", "ol_device_handle_t", "The handle of the device associated with the queue.">
+    TaggedEtor<"DEVICE", "ol_device_handle_t", "The handle of the device associated with the queue.">,
+    TaggedEtor<"EMPTY", "bool", "True if the queue is known to be empty. May be unconditionally false if the device does not support status queries.">,
----------------
RossBrunton wrote:

I've slept on it, and I think it might actually be better if we just make it a hard requirement that this be supported and accurate. Both AMD and Nvidia support it, and it feels like it'd be difficult to work with a platform that doesn't let us inspect the status of queues.

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


More information about the llvm-commits mailing list