Commit 9f7d367
Replace
The `storage` attribute applies to `ComputeOp` operations only. It specifies an optional `BufferAttr` attribute for each output. The buffer attribute specifies:
* A memory space, currently equal to "memory" or "register"
* A name, for "memory" buffers only. All buffers sharing the same name are stored in the same memref.
* a mapping from a subset of loops to dimensions of the memref backing the buffer.
* Remove `memory_space` attribute from all operations.
* Add a `storage` attribute to ComputeOp operations.
* Introduce a `ValueViewOp` interface to infer the storage of non-compute operations.
* Extend `LoopFusionAnalysis` to return the domain and the mapping from domain to loop iteration of loop nest.
* Define a `StorageAnalysis` that checks and unify buffer attributes with the same names.
As a side effect of change `memory_space` into `storage`:
* Update passes using `memory_space` to use `storage` instead.
* Change DefaultMemorySpace pass into a DefaultStorage pass. Only support the subset of operations that was previously supported by DefaultMemorySpace.
* Update sair-from-linalg pass to insert copy operations after sair.from_memerf operations. This clears the storage of values originating from sair.from_memref so that is does not conflicts with other storage constraints.
* Remove unused ValueProducer interface.
* Update ResolveUnificationConstraints in `util.cc` so that it can also handle unification of buffers layouts.
PiperOrigin-RevId: 361096395memory_space attribute by storage attribute.1 parent ca598dc commit 9f7d367
File tree
41 files changed
+1812
-545
lines changed- test
- transforms
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+1812
-545
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
197 | 193 | | |
198 | 194 | | |
199 | 195 | | |
| |||
210 | 206 | | |
211 | 207 | | |
212 | 208 | | |
213 | | - | |
| 209 | + | |
214 | 210 | | |
215 | 211 | | |
216 | 212 | | |
| |||
310 | 306 | | |
311 | 307 | | |
312 | 308 | | |
313 | | - | |
| 309 | + | |
314 | 310 | | |
315 | 311 | | |
316 | 312 | | |
| |||
356 | 352 | | |
357 | 353 | | |
358 | 354 | | |
359 | | - | |
| 355 | + | |
360 | 356 | | |
361 | 357 | | |
362 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | 499 | | |
522 | | - | |
| 500 | + | |
523 | 501 | | |
524 | 502 | | |
525 | 503 | | |
| |||
569 | 547 | | |
570 | 548 | | |
571 | 549 | | |
572 | | - | |
| 550 | + | |
| 551 | + | |
573 | 552 | | |
574 | 553 | | |
575 | 554 | | |
| |||
579 | 558 | | |
580 | 559 | | |
581 | 560 | | |
582 | | - | |
| 561 | + | |
583 | 562 | | |
584 | 563 | | |
585 | 564 | | |
586 | 565 | | |
587 | 566 | | |
588 | | - | |
589 | | - | |
590 | 567 | | |
591 | 568 | | |
592 | 569 | | |
593 | 570 | | |
594 | | - | |
| 571 | + | |
595 | 572 | | |
596 | 573 | | |
597 | 574 | | |
| |||
638 | 615 | | |
639 | 616 | | |
640 | 617 | | |
641 | | - | |
| 618 | + | |
642 | 619 | | |
643 | | - | |
| 620 | + | |
644 | 621 | | |
645 | 622 | | |
646 | 623 | | |
| |||
720 | 697 | | |
721 | 698 | | |
722 | 699 | | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
723 | 714 | | |
724 | | - | |
725 | | - | |
| 715 | + | |
| 716 | + | |
726 | 717 | | |
727 | 718 | | |
728 | 719 | | |
| |||
734 | 725 | | |
735 | 726 | | |
736 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
737 | 770 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
94 | 105 | | |
95 | 106 | | |
96 | 107 | | |
| |||
106 | 117 | | |
107 | 118 | | |
108 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
109 | 124 | | |
110 | | - | |
| 125 | + | |
111 | 126 | | |
112 | 127 | | |
113 | 128 | | |
| |||
117 | 132 | | |
118 | 133 | | |
119 | 134 | | |
| 135 | + | |
120 | 136 | | |
121 | 137 | | |
122 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
917 | 925 | | |
918 | 926 | | |
919 | 927 | | |
| |||
961 | 969 | | |
962 | 970 | | |
963 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
964 | 978 | | |
965 | 979 | | |
966 | 980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
172 | 179 | | |
173 | 180 | | |
174 | 181 | | |
| |||
0 commit comments