Commit 1508a8e
authored
[MLIR][Linalg] Modify
Refactor/redesign `FailureOr<TilingInterface> rewriteAsPaddedOp(...)` to
not remove unpadded operation. This is more in line with how other
transformations like tiling work, where the user of the transformation
decides when to replace the actual operation. Instead of this, return
all info as a struct.
---------
Signed-off-by: James Newling <james.newling@gmail.com>rewriteAsPaddedOp to not remove pre-padded op (#163467)1 parent df89564 commit 1508a8e
File tree
3 files changed
+97
-96
lines changed- mlir
- include/mlir/Dialect/Linalg/Transforms
- lib/Dialect/Linalg
- TransformOps
- Transforms
3 files changed
+97
-96
lines changedLines changed: 22 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
621 | 620 | | |
622 | 621 | | |
623 | 622 | | |
624 | | - | |
| 623 | + | |
625 | 624 | | |
626 | 625 | | |
627 | 626 | | |
628 | 627 | | |
629 | 628 | | |
630 | | - | |
| 629 | + | |
631 | 630 | | |
632 | 631 | | |
633 | 632 | | |
634 | | - | |
635 | | - | |
636 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
637 | 648 | | |
638 | | - | |
639 | | - | |
| 649 | + | |
640 | 650 | | |
641 | 651 | | |
642 | 652 | | |
643 | 653 | | |
644 | 654 | | |
645 | 655 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
653 | 660 | | |
654 | 661 | | |
655 | 662 | | |
| |||
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2457 | 2457 | | |
2458 | 2458 | | |
2459 | 2459 | | |
2460 | | - | |
2461 | 2460 | | |
2462 | 2461 | | |
2463 | 2462 | | |
2464 | 2463 | | |
2465 | 2464 | | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
2471 | | - | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
2472 | 2468 | | |
2473 | 2469 | | |
2474 | 2470 | | |
2475 | 2471 | | |
| 2472 | + | |
2476 | 2473 | | |
2477 | 2474 | | |
2478 | | - | |
2479 | | - | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
2480 | 2478 | | |
2481 | 2479 | | |
2482 | 2480 | | |
| |||
0 commit comments