Commit f9fd968
committed
Forward source locations across AIE/AIEX transform passes
Replace builder.getUnknownLoc() with the source op's location at op-
creation sites across the AIE and AIEX transform passes, so that ops
synthesized during lowering inherit a useful Location instead of
"unknown". This is purely mechanical: every replacement uses the loc
of the op being lowered (or a contextually-appropriate parent op
such as the surrounding tile, device, or originating flow).
Passes updated:
AIEObjectFifoStatefulTransform AIECreateBroadcastPacket
AIECoreToStandard AIECreateCores
AIECreatePathFindFlows AIECreateLocks
AIEObjectFifoRegisterProcess AIECtrlPacketToDma
AIEGenerateColumnControlOverlay AIEExpandLoadPdi
AIECanonicalizeDevice AIEHerdRouting
AIELocalizeLocks AIELowerMemcpy
AIELowerCascadeFlows AIELowerMulticast
AIEDialect (TileOp helper) AIEToConfiguration
The few remaining getUnknownLoc() sites (declareAIEIntrinsics,
DynamicTileAnalysis helpers, parsed-binary ModuleOp creation) have
no source op to attribute and are left alone intentionally.
Adds one focused loc_preservation.mlir lit test per converted pass to
guard against regression:
test/Conversion/AIEToConfiguration/loc_preservation.mlir
test/create-cores/loc_preservation.mlir
test/create-flows/loc_preservation.mlir
test/herd-routing/loc_preservation.mlir
test/lower-to-standard/loc_preservation.mlir
test/objectFifo-stateful-transform/base/loc_preservation.mlir1 parent 9796296 commit f9fd968
24 files changed
Lines changed: 456 additions & 227 deletions
File tree
- lib
- Conversion/AIEToConfiguration
- Dialect
- AIEX/Transforms
- AIE
- IR
- Transforms
- test
- Conversion/AIEToConfiguration
- create-cores
- create-flows
- herd-routing
- lower-to-standard
- objectFifo-stateful-transform/base
Lines changed: 10 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
458 | | - | |
459 | 457 | | |
460 | 458 | | |
461 | 459 | | |
| |||
531 | 529 | | |
532 | 530 | | |
533 | 531 | | |
534 | | - | |
| 532 | + | |
535 | 533 | | |
536 | 534 | | |
537 | 535 | | |
538 | | - | |
539 | 536 | | |
540 | 537 | | |
541 | 538 | | |
| |||
636 | 633 | | |
637 | 634 | | |
638 | 635 | | |
639 | | - | |
640 | | - | |
641 | 636 | | |
642 | 637 | | |
643 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
644 | 644 | | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | 645 | | |
651 | 646 | | |
652 | 647 | | |
| |||
676 | 671 | | |
677 | 672 | | |
678 | 673 | | |
679 | | - | |
| 674 | + | |
680 | 675 | | |
681 | 676 | | |
682 | | - | |
| 677 | + | |
683 | 678 | | |
684 | 679 | | |
685 | 680 | | |
| |||
784 | 779 | | |
785 | 780 | | |
786 | 781 | | |
787 | | - | |
| 782 | + | |
788 | 783 | | |
789 | 784 | | |
790 | 785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1600 | 1600 | | |
1601 | 1601 | | |
1602 | 1602 | | |
1603 | | - | |
1604 | | - | |
| 1603 | + | |
| 1604 | + | |
1605 | 1605 | | |
1606 | 1606 | | |
1607 | 1607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
| 303 | + | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
392 | | - | |
| 391 | + | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
463 | | - | |
| 462 | + | |
464 | 463 | | |
465 | 464 | | |
466 | 465 | | |
| |||
490 | 489 | | |
491 | 490 | | |
492 | 491 | | |
493 | | - | |
| 492 | + | |
494 | 493 | | |
495 | 494 | | |
496 | 495 | | |
497 | 496 | | |
498 | 497 | | |
499 | 498 | | |
500 | 499 | | |
501 | | - | |
502 | | - | |
| 500 | + | |
| 501 | + | |
503 | 502 | | |
504 | | - | |
505 | | - | |
| 503 | + | |
| 504 | + | |
506 | 505 | | |
507 | 506 | | |
508 | 507 | | |
| |||
547 | 546 | | |
548 | 547 | | |
549 | 548 | | |
550 | | - | |
| 549 | + | |
551 | 550 | | |
552 | 551 | | |
553 | 552 | | |
| |||
641 | 640 | | |
642 | 641 | | |
643 | 642 | | |
644 | | - | |
645 | | - | |
| 643 | + | |
646 | 644 | | |
647 | 645 | | |
648 | 646 | | |
| |||
701 | 699 | | |
702 | 700 | | |
703 | 701 | | |
704 | | - | |
| 702 | + | |
705 | 703 | | |
706 | 704 | | |
707 | 705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
835 | 836 | | |
836 | 837 | | |
837 | 838 | | |
838 | 839 | | |
839 | 840 | | |
840 | | - | |
841 | | - | |
| 841 | + | |
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
| |||
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
862 | | - | |
863 | | - | |
| 862 | + | |
864 | 863 | | |
865 | 864 | | |
866 | 865 | | |
| |||
885 | 884 | | |
886 | 885 | | |
887 | 886 | | |
888 | | - | |
889 | | - | |
| 887 | + | |
| 888 | + | |
890 | 889 | | |
891 | 890 | | |
892 | 891 | | |
| |||
915 | 914 | | |
916 | 915 | | |
917 | 916 | | |
918 | | - | |
919 | | - | |
| 917 | + | |
920 | 918 | | |
921 | | - | |
| 919 | + | |
922 | 920 | | |
923 | 921 | | |
924 | 922 | | |
| |||
939 | 937 | | |
940 | 938 | | |
941 | 939 | | |
942 | | - | |
| 940 | + | |
943 | 941 | | |
944 | 942 | | |
945 | 943 | | |
| |||
996 | 994 | | |
997 | 995 | | |
998 | 996 | | |
999 | | - | |
1000 | | - | |
| 997 | + | |
| 998 | + | |
1001 | 999 | | |
1002 | 1000 | | |
1003 | 1001 | | |
1004 | | - | |
1005 | | - | |
| 1002 | + | |
| 1003 | + | |
1006 | 1004 | | |
1007 | 1005 | | |
1008 | 1006 | | |
| |||
1027 | 1025 | | |
1028 | 1026 | | |
1029 | 1027 | | |
1030 | | - | |
1031 | | - | |
| 1028 | + | |
| 1029 | + | |
1032 | 1030 | | |
1033 | 1031 | | |
1034 | 1032 | | |
1035 | | - | |
1036 | | - | |
| 1033 | + | |
| 1034 | + | |
1037 | 1035 | | |
1038 | 1036 | | |
1039 | 1037 | | |
| |||
1084 | 1082 | | |
1085 | 1083 | | |
1086 | 1084 | | |
| 1085 | + | |
1087 | 1086 | | |
1088 | 1087 | | |
1089 | 1088 | | |
1090 | 1089 | | |
1091 | | - | |
1092 | | - | |
| 1090 | + | |
| 1091 | + | |
1093 | 1092 | | |
1094 | 1093 | | |
1095 | 1094 | | |
1096 | 1095 | | |
1097 | | - | |
1098 | | - | |
| 1096 | + | |
| 1097 | + | |
1099 | 1098 | | |
1100 | | - | |
1101 | | - | |
| 1099 | + | |
| 1100 | + | |
1102 | 1101 | | |
1103 | 1102 | | |
1104 | 1103 | | |
1105 | 1104 | | |
1106 | | - | |
1107 | | - | |
| 1105 | + | |
| 1106 | + | |
1108 | 1107 | | |
1109 | 1108 | | |
1110 | 1109 | | |
1111 | 1110 | | |
1112 | 1111 | | |
1113 | 1112 | | |
1114 | | - | |
| 1113 | + | |
1115 | 1114 | | |
1116 | 1115 | | |
1117 | 1116 | | |
1118 | 1117 | | |
1119 | 1118 | | |
1120 | | - | |
1121 | | - | |
| 1119 | + | |
| 1120 | + | |
1122 | 1121 | | |
1123 | 1122 | | |
1124 | 1123 | | |
1125 | 1124 | | |
1126 | | - | |
1127 | | - | |
| 1125 | + | |
| 1126 | + | |
1128 | 1127 | | |
1129 | 1128 | | |
1130 | 1129 | | |
1131 | 1130 | | |
1132 | 1131 | | |
1133 | | - | |
1134 | | - | |
| 1132 | + | |
| 1133 | + | |
1135 | 1134 | | |
1136 | 1135 | | |
1137 | 1136 | | |
| |||
0 commit comments