Commit 15e50b1
authored
[mlir][IR] Clean up type constraints around
* Remove duplicate `TypeOrContainer`. There is an identical class with
the same name: `TypeOrValueSemanticsContainer`.
* Remove `TypeOrContainerOfAnyRank` and use
`TypeOrValueSemanticsContainer` instead. `TypeOrContainerOfAnyRank` is
inconsistent with the other classes because it explicitly checks for
`VectorType` and `TensorType` instead of utilizing the value semantics
type trait.
* Remove `SignlessIntegerOrIndexLikeOfAnyRank` etc. and use
`SignlessIntegerOrIndexLike` instead. `SignlessIntegerOrIndexLike` etc.
already allow 0-d vectors, so there is no difference with
`SignlessIntegerOrIndexLikeOfAnyRank`.ValueSemanticsContainerOf (#126075)1 parent 26ecddb commit 15e50b1
File tree
3 files changed
+14
-39
lines changed- mlir/include/mlir
- Dialect
- Arith/IR
- Polynomial/IR
- IR
3 files changed
+14
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | 147 | | |
155 | 148 | | |
156 | 149 | | |
| |||
1426 | 1419 | | |
1427 | 1420 | | |
1428 | 1421 | | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
1432 | 1425 | | |
1433 | 1426 | | |
1434 | 1427 | | |
| |||
1495 | 1488 | | |
1496 | 1489 | | |
1497 | 1490 | | |
1498 | | - | |
1499 | | - | |
| 1491 | + | |
| 1492 | + | |
1500 | 1493 | | |
1501 | 1494 | | |
1502 | 1495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | 882 | | |
889 | 883 | | |
890 | 884 | | |
| |||
894 | 888 | | |
895 | 889 | | |
896 | 890 | | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | 891 | | |
906 | 892 | | |
907 | | - | |
| 893 | + | |
908 | 894 | | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
| 895 | + | |
| 896 | + | |
913 | 897 | | |
914 | 898 | | |
915 | 899 | | |
916 | 900 | | |
917 | | - | |
| 901 | + | |
918 | 902 | | |
919 | 903 | | |
920 | 904 | | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
927 | 908 | | |
928 | 909 | | |
929 | 910 | | |
| |||
0 commit comments