Commit 62e4436
authored
[NVPTX] Use appropriate operands in ReplaceImageHandles (NFC) (#127898)
Prior to this change NVPTXReplaceImageHandles replaced operands with
indices and populated a table matching these indices to strings to be
used in AsmPrinter. We can clean this up by simply inserting the correct
external symbol or global address operands during
NVPTXReplaceImageHandles, largely removing the need for the table.1 parent 95000fd commit 62e4436
File tree
4 files changed
+38
-146
lines changed- llvm/lib/Target/NVPTX
4 files changed
+38
-146
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | 152 | | |
214 | 153 | | |
215 | 154 | | |
| |||
220 | 159 | | |
221 | 160 | | |
222 | 161 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 162 | + | |
| 163 | + | |
235 | 164 | | |
236 | 165 | | |
237 | | - | |
238 | | - | |
| 166 | + | |
239 | 167 | | |
240 | | - | |
| 168 | + | |
| 169 | + | |
241 | 170 | | |
242 | | - | |
243 | | - | |
| 171 | + | |
244 | 172 | | |
245 | | - | |
246 | | - | |
| 173 | + | |
247 | 174 | | |
248 | | - | |
249 | | - | |
250 | | - | |
| 175 | + | |
| 176 | + | |
251 | 177 | | |
252 | | - | |
253 | | - | |
| 178 | + | |
254 | 179 | | |
255 | | - | |
256 | | - | |
| 180 | + | |
257 | 181 | | |
258 | 182 | | |
259 | 183 | | |
260 | 184 | | |
261 | 185 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 186 | + | |
| 187 | + | |
266 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
267 | 192 | | |
268 | | - | |
| 193 | + | |
269 | 194 | | |
270 | | - | |
271 | 195 | | |
272 | | - | |
273 | | - | |
274 | | - | |
| 196 | + | |
| 197 | + | |
275 | 198 | | |
276 | | - | |
277 | | - | |
278 | | - | |
| 199 | + | |
| 200 | + | |
279 | 201 | | |
280 | 202 | | |
281 | 203 | | |
282 | 204 | | |
283 | | - | |
284 | 205 | | |
285 | 206 | | |
286 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | 229 | | |
234 | 230 | | |
235 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 50 | | |
57 | 51 | | |
58 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
46 | 43 | | |
47 | | - | |
| 44 | + | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
| |||
1756 | 1753 | | |
1757 | 1754 | | |
1758 | 1755 | | |
1759 | | - | |
| 1756 | + | |
| 1757 | + | |
1760 | 1758 | | |
1761 | | - | |
| 1759 | + | |
| 1760 | + | |
1762 | 1761 | | |
1763 | 1762 | | |
1764 | 1763 | | |
| |||
1767 | 1766 | | |
1768 | 1767 | | |
1769 | 1768 | | |
1770 | | - | |
| 1769 | + | |
| 1770 | + | |
1771 | 1771 | | |
1772 | 1772 | | |
1773 | 1773 | | |
1774 | 1774 | | |
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | | - | |
| 1778 | + | |
| 1779 | + | |
1779 | 1780 | | |
1780 | 1781 | | |
1781 | 1782 | | |
| |||
1790 | 1791 | | |
1791 | 1792 | | |
1792 | 1793 | | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | 1794 | | |
1804 | 1795 | | |
1805 | 1796 | | |
| |||
1812 | 1803 | | |
1813 | 1804 | | |
1814 | 1805 | | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
| 1806 | + | |
| 1807 | + | |
1818 | 1808 | | |
1819 | 1809 | | |
1820 | | - | |
1821 | 1810 | | |
1822 | 1811 | | |
1823 | 1812 | | |
1824 | | - | |
1825 | | - | |
1826 | | - | |
1827 | | - | |
1828 | | - | |
1829 | | - | |
1830 | | - | |
1831 | | - | |
1832 | 1813 | | |
1833 | | - | |
| 1814 | + | |
| 1815 | + | |
1834 | 1816 | | |
1835 | 1817 | | |
1836 | 1818 | | |
| |||
1839 | 1821 | | |
1840 | 1822 | | |
1841 | 1823 | | |
1842 | | - | |
| 1824 | + | |
1843 | 1825 | | |
1844 | 1826 | | |
1845 | 1827 | | |
1846 | 1828 | | |
1847 | | - | |
1848 | | - | |
| 1829 | + | |
| 1830 | + | |
1849 | 1831 | | |
1850 | | - | |
1851 | 1832 | | |
1852 | 1833 | | |
1853 | 1834 | | |
| |||
0 commit comments