Commit c7b3773
authored
Move tile size computation for subgroup 2d block io encoding (#4461)
Moves the tile size computation from LLVM lowering to a static method on
the Subgroup 2D block encoding layout. This allows us to create the
layout with the desired tile sizes at a higher level in the pass
hierarchy. Moving this functionality now allows us to test using the
existing layouts and lowering, ensuring no regressions.
There is some cleanup that could be done but I opted for generic objects
for now (e.g. `SmallVector`) for flexibility.1 parent ff637a1 commit c7b3773
File tree
3 files changed
+105
-17
lines changed- third_party/intel
- include/Dialect/TritonIntelGPU/IR
- lib
- Dialect/TritonIntelGPU/IR
- TritonIntelGPUToLLVM
3 files changed
+105
-17
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| |||
Lines changed: 86 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
665 | 751 | | |
666 | 752 | | |
667 | 753 | | |
| |||
Lines changed: 18 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
1442 | 1450 | | |
1443 | 1451 | | |
1444 | 1452 | | |
| |||
1476 | 1484 | | |
1477 | 1485 | | |
1478 | 1486 | | |
1479 | | - | |
1480 | | - | |
| 1487 | + | |
1481 | 1488 | | |
1482 | 1489 | | |
1483 | 1490 | | |
| |||
1527 | 1534 | | |
1528 | 1535 | | |
1529 | 1536 | | |
1530 | | - | |
1531 | | - | |
| 1537 | + | |
| 1538 | + | |
1532 | 1539 | | |
1533 | 1540 | | |
1534 | | - | |
1535 | | - | |
| 1541 | + | |
| 1542 | + | |
1536 | 1543 | | |
1537 | 1544 | | |
1538 | 1545 | | |
| |||
1543 | 1550 | | |
1544 | 1551 | | |
1545 | 1552 | | |
1546 | | - | |
1547 | | - | |
1548 | | - | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
1549 | 1556 | | |
1550 | 1557 | | |
1551 | 1558 | | |
| |||
1659 | 1666 | | |
1660 | 1667 | | |
1661 | 1668 | | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | 1669 | | |
1666 | 1670 | | |
1667 | 1671 | | |
| |||
1739 | 1743 | | |
1740 | 1744 | | |
1741 | 1745 | | |
1742 | | - | |
1743 | 1746 | | |
1744 | 1747 | | |
1745 | 1748 | | |
| |||
1756 | 1759 | | |
1757 | 1760 | | |
1758 | 1761 | | |
1759 | | - | |
1760 | | - | |
1761 | 1762 | | |
1762 | 1763 | | |
1763 | 1764 | | |
| 1765 | + | |
1764 | 1766 | | |
1765 | 1767 | | |
1766 | 1768 | | |
| |||
1775 | 1777 | | |
1776 | 1778 | | |
1777 | 1779 | | |
| 1780 | + | |
1778 | 1781 | | |
1779 | 1782 | | |
1780 | 1783 | | |
| |||
1785 | 1788 | | |
1786 | 1789 | | |
1787 | 1790 | | |
1788 | | - | |
1789 | 1791 | | |
1790 | 1792 | | |
1791 | 1793 | | |
| |||
1960 | 1962 | | |
1961 | 1963 | | |
1962 | 1964 | | |
1963 | | - | |
1964 | 1965 | | |
1965 | 1966 | | |
1966 | 1967 | | |
| |||
0 commit comments