diff options
| author | Ross Brunton <ross@codeplay.com> | 2025-06-13 15:22:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-13 09:22:47 -0500 |
| commit | e6a3579653196af337f191ed2a3acbbf0e6d01bb (patch) | |
| tree | 30e5d55bd7c217e11e9f3f1eb288fd573df0ead9 /offload/plugins-nextgen/common/src/PluginInterface.cpp | |
| parent | 0a0960dac69fc88a3c8bd5e2099f8d45b0292c78 (diff) | |
[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`.
Diffstat (limited to 'offload/plugins-nextgen/common/src/PluginInterface.cpp')
| -rw-r--r-- | offload/plugins-nextgen/common/src/PluginInterface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } |
