diff options
| author | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-24 10:24:48 -0600 |
|---|---|---|
| committer | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-24 10:24:48 -0600 |
| commit | 2f5b49c4e03c6a1fb09098c4eaf54fe4e732907a (patch) | |
| tree | f0685b18074b54be24561b592eb0401ef17eabf5 /runtime/test/cpp_unwind_test.cpp | |
| parent | d0da7dade8b688f2e0f7f23f4155d6cbb438809e (diff) | |
rdna2spirv: re-anchor from llvm-mc's own offsets of the rejected words
After undecodable words, translate() put each printed instruction back at its
blob offset by searching forward for its printed bytes. A data word llvm-mc
printed as a copy of a later instruction (printed bytes are not the bytes
read) took that later instruction's place, and every instruction after it
lost its place: "undecodable words (cannot re-anchor)".
shader_ir.parse_file now reads the byte offset of each rejected word from the
llvm-mc messages (shader_disasm.py feeds one line of "0xNN " bytes, five
characters a byte) as info["invalid_at"]. When there is one offset per
rejected word, the translator skips exactly those words and searches nothing;
a listed word whose bytes are the next instruction is not skipped, so a
listing with wrong or hand-written messages reads as before.
On the 1.0.2.1 pipeline library, with #327's vcc-tuple decoding, 36 compute
programs that stopped at "cannot re-anchor" now translate and pass
spirv-val; none that translated before is lost.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions