[llvm] [Offload] Return an integer user count for AMDGPU HSA queues (PR #223335)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 23:54:23 PDT 2026


================
@@ -813,17 +814,17 @@ struct AMDGPUQueueTy {
     return Plugin::check(Status, "error in hsa_queue_destroy: %s");
   }
 
-  /// Returns the number of streams, this queue is currently assigned to.
-  bool getUserCount() const { return NumUsers; }
+  /// Returns the number of streams this queue is currently assigned to.
+  uint32_t getUserCount() const { return UserCount.getUserCount(); }
----------------
StevenYangCC wrote:

Agreed. The helper and the unit tests are removed. The patch is now only the getUserCount return type change from bool to uint32_t.

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


More information about the llvm-commits mailing list