Commit e6a3579
authored
[Offload] Replace device info queue with a tree (llvm#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`.1 parent 0a0960d commit e6a3579
File tree
6 files changed
+125
-106
lines changed- offload
- liboffload/src
- plugins-nextgen
- amdgpu/src
- common
- include
- src
- cuda/src
- host/src
6 files changed
+125
-106
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | 232 | | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
239 | | - | |
| 238 | + | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 243 | + | |
| 244 | + | |
252 | 245 | | |
253 | 246 | | |
254 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2551 | 2551 | | |
2552 | 2552 | | |
2553 | 2553 | | |
2554 | | - | |
| 2554 | + | |
2555 | 2555 | | |
2556 | 2556 | | |
2557 | 2557 | | |
| |||
2562 | 2562 | | |
2563 | 2563 | | |
2564 | 2564 | | |
| 2565 | + | |
2565 | 2566 | | |
2566 | 2567 | | |
2567 | 2568 | | |
| |||
2617 | 2618 | | |
2618 | 2619 | | |
2619 | 2620 | | |
2620 | | - | |
| 2621 | + | |
2621 | 2622 | | |
2622 | 2623 | | |
2623 | 2624 | | |
2624 | | - | |
| 2625 | + | |
2625 | 2626 | | |
2626 | 2627 | | |
2627 | 2628 | | |
| |||
2654 | 2655 | | |
2655 | 2656 | | |
2656 | 2657 | | |
2657 | | - | |
2658 | | - | |
2659 | | - | |
2660 | | - | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
2661 | 2662 | | |
2662 | 2663 | | |
2663 | 2664 | | |
| |||
2673 | 2674 | | |
2674 | 2675 | | |
2675 | 2676 | | |
2676 | | - | |
2677 | | - | |
2678 | | - | |
2679 | | - | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
2680 | 2681 | | |
2681 | 2682 | | |
2682 | 2683 | | |
2683 | 2684 | | |
2684 | 2685 | | |
2685 | 2686 | | |
2686 | | - | |
| 2687 | + | |
2687 | 2688 | | |
2688 | 2689 | | |
2689 | 2690 | | |
| |||
2698 | 2699 | | |
2699 | 2700 | | |
2700 | 2701 | | |
2701 | | - | |
| 2702 | + | |
2702 | 2703 | | |
2703 | 2704 | | |
2704 | 2705 | | |
| |||
2708 | 2709 | | |
2709 | 2710 | | |
2710 | 2711 | | |
2711 | | - | |
| 2712 | + | |
2712 | 2713 | | |
2713 | 2714 | | |
2714 | 2715 | | |
2715 | 2716 | | |
2716 | | - | |
| 2717 | + | |
2717 | 2718 | | |
2718 | 2719 | | |
2719 | 2720 | | |
2720 | 2721 | | |
2721 | | - | |
| 2722 | + | |
2722 | 2723 | | |
2723 | 2724 | | |
2724 | 2725 | | |
2725 | 2726 | | |
2726 | | - | |
| 2727 | + | |
2727 | 2728 | | |
2728 | 2729 | | |
2729 | 2730 | | |
2730 | 2731 | | |
2731 | | - | |
| 2732 | + | |
2732 | 2733 | | |
2733 | 2734 | | |
2734 | 2735 | | |
2735 | 2736 | | |
2736 | | - | |
| 2737 | + | |
2737 | 2738 | | |
2738 | 2739 | | |
2739 | | - | |
| 2740 | + | |
2740 | 2741 | | |
2741 | 2742 | | |
2742 | 2743 | | |
2743 | | - | |
| 2744 | + | |
2744 | 2745 | | |
2745 | 2746 | | |
2746 | 2747 | | |
| |||
2749 | 2750 | | |
2750 | 2751 | | |
2751 | 2752 | | |
2752 | | - | |
| 2753 | + | |
2753 | 2754 | | |
2754 | 2755 | | |
2755 | 2756 | | |
| |||
Lines changed: 81 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
148 | 145 | | |
149 | 146 | | |
150 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
165 | 171 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
174 | 177 | | |
175 | | - | |
176 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
177 | 181 | | |
178 | | - | |
| 182 | + | |
179 | 183 | | |
180 | | - | |
| 184 | + | |
181 | 185 | | |
182 | | - | |
183 | | - | |
184 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
185 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
186 | 209 | | |
187 | 210 | | |
188 | 211 | | |
| |||
871 | 894 | | |
872 | 895 | | |
873 | 896 | | |
874 | | - | |
| 897 | + | |
875 | 898 | | |
876 | 899 | | |
877 | 900 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1578 | 1578 | | |
1579 | 1579 | | |
1580 | 1580 | | |
1581 | | - | |
| 1581 | + | |
1582 | 1582 | | |
1583 | 1583 | | |
1584 | | - | |
| 1584 | + | |
1585 | 1585 | | |
1586 | 1586 | | |
1587 | 1587 | | |
1588 | | - | |
| 1588 | + | |
1589 | 1589 | | |
1590 | 1590 | | |
1591 | 1591 | | |
| |||
0 commit comments