From e6a3579653196af337f191ed2a3acbbf0e6d01bb Mon Sep 17 00:00:00 2001 From: Ross Brunton Date: Fri, 13 Jun 2025 15:22:47 +0100 Subject: [Offload] Replace device info queue with a tree (#144050) Previously, device info was returned as a queue with each element having a "Level" field indicating its nesting level. This replaces this queue with a more traditional tree-like structure. This should not result in a change to the output of `llvm-offload-device-info`. --- offload/plugins-nextgen/common/src/PluginInterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'offload/plugins-nextgen/common/src/PluginInterface.cpp') diff --git a/offload/plugins-nextgen/common/src/PluginInterface.cpp b/offload/plugins-nextgen/common/src/PluginInterface.cpp index f9a6b3c1f432..6fd3405d03af 100644 --- a/offload/plugins-nextgen/common/src/PluginInterface.cpp +++ b/offload/plugins-nextgen/common/src/PluginInterface.cpp @@ -1578,14 +1578,14 @@ Error GenericDeviceTy::initDeviceInfo(__tgt_device_info *DeviceInfo) { } Error GenericDeviceTy::printInfo() { - InfoQueueTy InfoQueue; + auto Info = obtainInfoImpl(); // Get the vendor-specific info entries describing the device properties. - if (auto Err = obtainInfoImpl(InfoQueue)) + if (auto Err = Info.takeError()) return Err; // Print all info entries. - InfoQueue.print(); + Info->print(); return Plugin::success(); } -- cgit v1.2.3