[llvm-branch-commits] [llvm] [Offload] Allow "tagging" device info entries with offload keys (PR #147317)

Joseph Huber via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 7 08:23:08 PDT 2025


================
@@ -133,17 +139,21 @@ struct InfoTreeNode {
   // * The same key can appear multiple times
   std::unique_ptr<llvm::SmallVector<InfoTreeNode, 8>> Children;
 
+  std::map<DeviceInfo, size_t> DeviceInfoMap;
----------------
jhuber6 wrote:

Do these need to be sorted? Otherwise a dense map is more efficient.

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


More information about the llvm-branch-commits mailing list