Commit 29468c2
committed
[objectfifo] Address review: tighten endpoints, reuse infrastructure
Every DMA endpoint now states the direction it moves data in, shim ends
included. The direction was previously recovered from the endpoint's position
in its flow, through a map built for the purpose, because a shim endpoint had
no pool and so dropped its role; saying it outright deletes the map.
A core endpoint selecting only part of an object is rejected. The lowering
hands a core whole buffers, so such an endpoint would have silently received
the wrong memref; emitting the memref.subview it needs is what would let cores
take part in a join or distribute.
iter_count is recorded only on the MemTile endpoint that honors it, and
rejected elsewhere, instead of being carried onto endpoints that ignore it.
Reuses existing infrastructure the review pointed at: TileOp::getOrCreate for
tile lookup, SymbolUserMap for deciding which pools are still referenced, and
DenseSet for channel occupancy, which is all that was ever stored. The DMA
program search and the channel scan lose their per-op-type triplication.
Buffer byte size moves onto the pool op.
FIXMEs mark the three places the review identified as belonging elsewhere:
buffer placement, packet ID assignment, and the repeat_count/iter_count
tangle.1 parent 8899a75 commit 29468c2
30 files changed
Lines changed: 737 additions & 470 deletions
File tree
- docs/design
- objfifo-stages
- include/aie/Dialect/AIE
- IR
- Transforms
- lib/Dialect
- AIEX/IR
- AIE
- IR
- Transforms
- test
- objectFifo-allocate
- objectFifo-lower-cores
- objectFifo-lower-dmas
- objectFifo-split
- objectFifo-stateful-transform/adjacent_memtile_allocation
- objectFifo-verify
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | | - | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| |||
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
242 | | - | |
243 | | - | |
244 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
250 | | - | |
251 | | - | |
| 253 | + | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2284 | 2284 | | |
2285 | 2285 | | |
2286 | 2286 | | |
2287 | | - | |
| 2287 | + | |
2288 | 2288 | | |
2289 | 2289 | | |
2290 | 2290 | | |
2291 | 2291 | | |
2292 | | - | |
| 2292 | + | |
2293 | 2293 | | |
2294 | 2294 | | |
2295 | 2295 | | |
| |||
2307 | 2307 | | |
2308 | 2308 | | |
2309 | 2309 | | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
2310 | 2313 | | |
2311 | 2314 | | |
2312 | 2315 | | |
| |||
2383 | 2386 | | |
2384 | 2387 | | |
2385 | 2388 | | |
2386 | | - | |
| 2389 | + | |
2387 | 2390 | | |
2388 | 2391 | | |
2389 | 2392 | | |
| |||
2408 | 2411 | | |
2409 | 2412 | | |
2410 | 2413 | | |
2411 | | - | |
| 2414 | + | |
2412 | 2415 | | |
2413 | 2416 | | |
2414 | 2417 | | |
| |||
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments