Commit b09a6e8
[Backport to LLVM 16] Fix TopologicalSort for Joint and Cooperative matrices (KhronosGroup#2143) (KhronosGroup#3242)
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.
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
(cherry picked from commit 436c497)
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Co-authored-by: Dmitry Sidorov <dmitry.sidorov@intel.com>1 parent d618c7b commit b09a6e8
File tree
2 files changed
+441
-0
lines changed- lib/SPIRV/libSPIRV
- test/extensions/KHR/SPV_KHR_cooperative_matrix
2 files changed
+441
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1157 | 1157 | | |
1158 | 1158 | | |
1159 | 1159 | | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1160 | 1164 | | |
1161 | 1165 | | |
1162 | 1166 | | |
| |||
0 commit comments