Commit e20cd5f
authored
D2M: cleanup and preparation for bcast (#5375)
### Ticket
None
### Problem description
Break down the bcast PR into smaller ones, this one is mainly for
cleanups.
### What's changed
* Remove redundant `bcast_type` that clutters the IR.
* Extract the logic that generates the compute region of
`linalg.generic` into its own function.
* Remove support for `FuncOp` from the insert DST register pass as it's
getting in the way more and more.
* Update the simple `FuncOp` tests to full `d2m.generic` equivalents
(OMG so painful, but it's a one-time cost).
### Checklist
- [x] New/Existing tests provide coverage for changes
Signed-off-by: wenbinlyuTT <[email protected]>1 parent aa5d5b0 commit e20cd5f
File tree
12 files changed
+1190
-927
lines changed- include/ttmlir/Dialect/TTKernel/IR
- lib
- Conversion
- TTIRToD2M
- TTIRToLinalg
- Dialect/D2M/Transforms
- test/ttmlir
- Conversion
- D2MToTTKernel
- TTKernelToEmitC
- Dialect/D2M/Transforms
12 files changed
+1190
-927
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 108 | | |
125 | 109 | | |
126 | 110 | | |
| |||
134 | 118 | | |
135 | 119 | | |
136 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
| |||
404 | 401 | | |
405 | 402 | | |
406 | 403 | | |
407 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
408 | 424 | | |
409 | 425 | | |
410 | 426 | | |
| |||
467 | 483 | | |
468 | 484 | | |
469 | 485 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
| 486 | + | |
| 487 | + | |
489 | 488 | | |
490 | 489 | | |
491 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | 11 | | |
14 | | - | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| |||
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | | - | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
| |||
664 | 660 | | |
665 | 661 | | |
666 | 662 | | |
667 | | - | |
| 663 | + | |
668 | 664 | | |
669 | 665 | | |
670 | 666 | | |
| |||
0 commit comments