Commit 9b91c53
committed
[SVE] Check for SVE target in func_attr from VectorizeLoop
Check that we are compiling for an SVE enabled target when the extent
of a loop marked for vectorizing has a vscale dependent extent.
1. Add call to BindTarget in Graph Executor pipeline (to enable running
tvmc flow)
2. Check in LoopVectorize that the extent is either a positive integer
or an vscale dependent expression, in which case we'd expect an SVE
enabled target to be present in func_attr1 parent d4056ca commit 9b91c53
File tree
3 files changed
+106
-32
lines changed- src
- driver
- tir/transforms
- tests/python/tir-transform
3 files changed
+106
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
201 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
725 | 728 | | |
726 | 729 | | |
727 | 730 | | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
728 | 739 | | |
729 | 740 | | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
730 | 747 | | |
731 | 748 | | |
732 | 749 | | |
733 | 750 | | |
734 | 751 | | |
735 | 752 | | |
736 | | - | |
737 | 753 | | |
738 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
739 | 758 | | |
740 | 759 | | |
741 | 760 | | |
| |||
759 | 778 | | |
760 | 779 | | |
761 | 780 | | |
762 | | - | |
| 781 | + | |
763 | 782 | | |
764 | 783 | | |
765 | 784 | | |
| |||
0 commit comments