Commit 7a9c466
authored
Fix TopologicalSort for Joint and Cooperative matrices (#11049)
visit method of the sort relies on getNonLiteralOperands method of the
SPIRVType which is being inserted in the module. Without it dependent
types can be inserted in the module in incorrect order.
For example:
TypeCooperativeMatrixKHR %ID%
TypeStruct ... %ID%
is the correct order, but without the patch in some cases the translator
could generate the opposite order.
It's a cherry-pick of
KhronosGroup/SPIRV-LLVM-Translator#2143
Signed-off-by: Sidorov, Dmitry <[email protected]>1 parent fe634a7 commit 7a9c466
File tree
3 files changed
+881
-0
lines changed- llvm-spirv
- lib/SPIRV/libSPIRV
- test/extensions
- INTEL/SPV_INTEL_joint_matrix
- KHR/SPV_KHR_cooperative_matrix
3 files changed
+881
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
1117 | 1121 | | |
1118 | 1122 | | |
1119 | 1123 | | |
| |||
1142 | 1146 | | |
1143 | 1147 | | |
1144 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1145 | 1153 | | |
1146 | 1154 | | |
1147 | 1155 | | |
| |||
0 commit comments