[llvm] [Offload] Store device info tree in device handle (PR #145913)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 26 09:26:58 PDT 2025
================
@@ -43,18 +43,19 @@ using namespace error;
// interface.
struct ol_device_impl_t {
ol_device_impl_t(int DeviceNum, GenericDeviceTy *Device,
- ol_platform_handle_t Platform)
- : DeviceNum(DeviceNum), Device(Device), Platform(Platform) {}
+ ol_platform_handle_t Platform, InfoTreeNode &&DevInfo)
+ : DeviceNum(DeviceNum), Device(Device), Platform(Platform),
+ Info(std::move(DevInfo)) {}
----------------
jhuber6 wrote:
```suggestion
Info(std::forward<InfoTreeNode>(DevInfo)) {}
```
https://github.com/llvm/llvm-project/pull/145913
More information about the llvm-commits
mailing list