Commit b61c24f
[NFC][IR] Type: add getWithNewType() method
Sometimes you want to get a type with same vector element count
as the current type, but different element type,
but there's no QOL wrapper to do that. Add one.1 parent fd23f45 commit b61c24f
File tree
3 files changed
+17
-14
lines changed- llvm
- include/llvm/IR
- lib/Transforms/InstCombine
3 files changed
+17
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
704 | 710 | | |
705 | 711 | | |
706 | 712 | | |
707 | 713 | | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
| 714 | + | |
712 | 715 | | |
713 | 716 | | |
714 | 717 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
379 | 384 | | |
380 | 385 | | |
381 | 386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1927 | 1927 | | |
1928 | 1928 | | |
1929 | 1929 | | |
1930 | | - | |
1931 | | - | |
1932 | | - | |
1933 | | - | |
1934 | | - | |
| 1930 | + | |
| 1931 | + | |
1935 | 1932 | | |
1936 | 1933 | | |
1937 | 1934 | | |
| |||
1970 | 1967 | | |
1971 | 1968 | | |
1972 | 1969 | | |
| 1970 | + | |
1973 | 1971 | | |
1974 | 1972 | | |
1975 | 1973 | | |
1976 | 1974 | | |
1977 | 1975 | | |
1978 | | - | |
1979 | | - | |
1980 | | - | |
1981 | | - | |
1982 | | - | |
| 1976 | + | |
| 1977 | + | |
1983 | 1978 | | |
1984 | 1979 | | |
1985 | 1980 | | |
| |||
0 commit comments