This repository was archived by the owner on Oct 11, 2025. It is now read-only.
Commit 22355e9
authored
[MLIR][Python] Support eliding large resource strings in PassManager (#149187)
- Introduces a `large_resource_limit` parameter across Python bindings,
enabling the eliding of resource strings exceeding a specified character
limit during IR printing.
- To maintain backward compatibilty, when using `operation.print()` API,
if `large_resource_limit` is None and the `large_elements_limit` is set,
the later will be used to elide the resource string as well. This change
was introduced by llvm/llvm-project#125738.
- For printing using pass manager, the `large_resource_limit` and
`large_elements_limit` are completely independent of each other.1 parent d788edb commit 22355e9
File tree
5 files changed
+41
-15
lines changed- mlir
- lib/Bindings/Python
- python/mlir/_mlir_libs/_mlir
5 files changed
+41
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
1303 | 1307 | | |
1304 | 1308 | | |
1305 | 1309 | | |
| 1310 | + | |
1306 | 1311 | | |
1307 | 1312 | | |
1308 | 1313 | | |
| |||
1314 | 1319 | | |
1315 | 1320 | | |
1316 | 1321 | | |
1317 | | - | |
| 1322 | + | |
1318 | 1323 | | |
1319 | | - | |
1320 | | - | |
| 1324 | + | |
| 1325 | + | |
1321 | 1326 | | |
1322 | 1327 | | |
1323 | 1328 | | |
| |||
1405 | 1410 | | |
1406 | 1411 | | |
1407 | 1412 | | |
| 1413 | + | |
1408 | 1414 | | |
1409 | 1415 | | |
1410 | 1416 | | |
| |||
1416 | 1422 | | |
1417 | 1423 | | |
1418 | 1424 | | |
| 1425 | + | |
1419 | 1426 | | |
1420 | 1427 | | |
1421 | 1428 | | |
| |||
3348 | 3355 | | |
3349 | 3356 | | |
3350 | 3357 | | |
| 3358 | + | |
3351 | 3359 | | |
3352 | 3360 | | |
3353 | 3361 | | |
| |||
3363 | 3371 | | |
3364 | 3372 | | |
3365 | 3373 | | |
3366 | | - | |
3367 | | - | |
3368 | | - | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
3369 | 3377 | | |
3370 | 3378 | | |
| 3379 | + | |
3371 | 3380 | | |
3372 | 3381 | | |
3373 | 3382 | | |
| |||
3383 | 3392 | | |
3384 | 3393 | | |
3385 | 3394 | | |
| 3395 | + | |
3386 | 3396 | | |
3387 | 3397 | | |
3388 | 3398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
| 602 | + | |
| 603 | + | |
603 | 604 | | |
604 | 605 | | |
605 | 606 | | |
606 | 607 | | |
607 | 608 | | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| |||
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| 113 | + | |
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| 216 | + | |
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
| |||
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| 258 | + | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
| |||
270 | 273 | | |
271 | 274 | | |
272 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
273 | 280 | | |
274 | 281 | | |
275 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments