[llvm] [Offload] OL_QUEUE_INFO_EMPTY (PR #152473)
    Callum Fare via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Aug  7 04:32:40 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.">,
----------------
callumfare wrote:
I think my preference would still be to return an `UNSUPPORTED` error code. That said I think this is probably ok, because the worst thing a user will end up doing is synchronizing the queue when they don't need to.
https://github.com/llvm/llvm-project/pull/152473
    
    
More information about the llvm-commits
mailing list