Commit 62aa596
authored
[AMDGPU] Add no return image_sample intrinsics and instructions (#97542)
An appropriately configured image resource descriptor can trigger
image_sample instructions to store outputs directly to a linked memory
location instead of returning to VGPRs.
This is opaque to the backend as instruction encoding is unchanged;
however, a mechanism is require to allow frontends to communicate that
these instructions do not require destination VGPRs and store to memory.
Flagging these as stores means they will not be optimized away.1 parent bbd4af5 commit 62aa596
File tree
12 files changed
+746
-52
lines changed- llvm
- include/llvm/IR
- lib/Target/AMDGPU
- AsmParser
- Utils
- test/CodeGen/AMDGPU
12 files changed
+746
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
| 772 | + | |
| 773 | + | |
773 | 774 | | |
774 | | - | |
| 775 | + | |
775 | 776 | | |
776 | 777 | | |
777 | 778 | | |
| |||
780 | 781 | | |
781 | 782 | | |
782 | 783 | | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
783 | 790 | | |
784 | 791 | | |
785 | 792 | | |
| |||
970 | 977 | | |
971 | 978 | | |
972 | 979 | | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
973 | 995 | | |
974 | 996 | | |
975 | 997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1870 | 1870 | | |
1871 | 1871 | | |
1872 | 1872 | | |
| 1873 | + | |
| 1874 | + | |
1873 | 1875 | | |
1874 | 1876 | | |
1875 | 1877 | | |
| |||
3616 | 3618 | | |
3617 | 3619 | | |
3618 | 3620 | | |
| 3621 | + | |
3619 | 3622 | | |
3620 | 3623 | | |
3621 | 3624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6334 | 6334 | | |
6335 | 6335 | | |
6336 | 6336 | | |
6337 | | - | |
6338 | | - | |
| 6337 | + | |
| 6338 | + | |
| 6339 | + | |
| 6340 | + | |
| 6341 | + | |
| 6342 | + | |
| 6343 | + | |
6339 | 6344 | | |
6340 | 6345 | | |
6341 | 6346 | | |
| |||
6373 | 6378 | | |
6374 | 6379 | | |
6375 | 6380 | | |
6376 | | - | |
| 6381 | + | |
| 6382 | + | |
| 6383 | + | |
| 6384 | + | |
| 6385 | + | |
6377 | 6386 | | |
6378 | 6387 | | |
6379 | 6388 | | |
| |||
6503 | 6512 | | |
6504 | 6513 | | |
6505 | 6514 | | |
6506 | | - | |
| 6515 | + | |
6507 | 6516 | | |
6508 | 6517 | | |
6509 | 6518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3172 | 3172 | | |
3173 | 3173 | | |
3174 | 3174 | | |
| 3175 | + | |
3175 | 3176 | | |
3176 | 3177 | | |
3177 | 3178 | | |
| |||
4842 | 4843 | | |
4843 | 4844 | | |
4844 | 4845 | | |
| 4846 | + | |
4845 | 4847 | | |
4846 | 4848 | | |
4847 | 4849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3868 | 3868 | | |
3869 | 3869 | | |
3870 | 3870 | | |
3871 | | - | |
| 3871 | + | |
| 3872 | + | |
3872 | 3873 | | |
3873 | 3874 | | |
3874 | 3875 | | |
| |||
0 commit comments