Commit 2a70c50
[Backport to 17] Always emit coopmat conversions as SPIR-V friendly IR calls (#3398)
Map all cooperative matrix type conversions to SPIR-V friendly IR calls,
regardless of the environment specified.
In particular, do not attempt to map such conversions to the OpenCL
`convert` builtin. The SPIR-V TargetExtType is already encoded in the
function suffix, so the previous translation was an odd hybrid between
OpenCL and SPIR-V friendly IR.
(cherry picked from commit 9d56f01)1 parent bc62bcb commit 2a70c50
File tree
2 files changed
+12
-1
lines changed- lib/SPIRV
- test/extensions/KHR/SPV_KHR_cooperative_matrix
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
653 | 660 | | |
654 | 661 | | |
655 | 662 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
0 commit comments