Commit 6cac792
authored
[mlir][Vector] Improve
This PR improves the `vector.mask` verifier to make sure it's not
applying masking semantics to operations defined outside of the
`vector.mask` region. Documentation is updated to emphasize that and
make it clearer, even though it already stated that.
As part of this change, the logic that ensures that a terminator is
present in the region mask has been simplified to make it less
surprising to the user when a `vector.yield` is explicitly provided in
the IR.vector.mask verifier (llvm#139823)1 parent dfc65ef commit 6cac792
File tree
3 files changed
+59
-18
lines changed- mlir
- include/mlir/Dialect/Vector/IR
- lib/Dialect/Vector/IR
- test/Dialect/Vector
3 files changed
+59
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2482 | 2482 | | |
2483 | 2483 | | |
2484 | 2484 | | |
2485 | | - | |
2486 | | - | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
2487 | 2492 | | |
2488 | 2493 | | |
2489 | 2494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6550 | 6550 | | |
6551 | 6551 | | |
6552 | 6552 | | |
6553 | | - | |
6554 | | - | |
6555 | | - | |
6556 | | - | |
| 6553 | + | |
| 6554 | + | |
| 6555 | + | |
| 6556 | + | |
| 6557 | + | |
| 6558 | + | |
| 6559 | + | |
| 6560 | + | |
6557 | 6561 | | |
6558 | | - | |
| 6562 | + | |
6559 | 6563 | | |
6560 | 6564 | | |
6561 | | - | |
6562 | | - | |
6563 | | - | |
6564 | | - | |
6565 | | - | |
6566 | | - | |
| 6565 | + | |
6567 | 6566 | | |
6568 | | - | |
6569 | | - | |
| 6567 | + | |
| 6568 | + | |
| 6569 | + | |
| 6570 | + | |
| 6571 | + | |
6570 | 6572 | | |
| 6573 | + | |
6571 | 6574 | | |
6572 | | - | |
| 6575 | + | |
| 6576 | + | |
| 6577 | + | |
| 6578 | + | |
6573 | 6579 | | |
6574 | | - | |
6575 | | - | |
6576 | 6580 | | |
6577 | 6581 | | |
6578 | 6582 | | |
| |||
6607 | 6611 | | |
6608 | 6612 | | |
6609 | 6613 | | |
| 6614 | + | |
| 6615 | + | |
| 6616 | + | |
| 6617 | + | |
6610 | 6618 | | |
6611 | 6619 | | |
6612 | 6620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1756 | 1756 | | |
1757 | 1757 | | |
1758 | 1758 | | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
1759 | 1773 | | |
1760 | 1774 | | |
1761 | 1775 | | |
| |||
1765 | 1779 | | |
1766 | 1780 | | |
1767 | 1781 | | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
1768 | 1796 | | |
1769 | 1797 | | |
1770 | 1798 | | |
| |||
0 commit comments