Scripts: recognize LLVM AT&T listings of command record writers #3022
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3022"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by ettehn on 2026-11-27T13:05:02Z.
record_writers.pyreported zero sites for an LLVM disassembly of a synthetic x64 command writer. LLVM printsmovqandcmpq, adds spaces after commas, and can annotate immediates. In a linked image its address can also begin in column one.What is in it
movldistinct for immediate header stores.Tested
llvm-objdump -d --no-show-raw-insnlisting, with header0x1234, length 32 bytes, bound+0x30, and fallback slot 8. The new regression test failed on06f90c19and passed with the change.python -B -m unittest discover -s scripts -p "test_*.py"passed all 26 tests.Regression run
Not tested
AI use
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:20:58Z.
Triage (#1607) – head
4b94672No open or merged PR makes the same change. #2049, #1730, #1492 and #1694 also edit
scripts/re/record_writers.py, but for argument handling, cursor checks, register aliases and header stores, not LLVM listings. Whichever lands later needs a small rebase.No problems found in the diff. The module docstring still describes only GNU objdump output.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T11:01:16Z.
Review (head
4b94672, diff read, not a merge-check; draft,scripts/re/record_writers.pyand its test):#comments can create false matches on GNU listings (reasoned, not run).record_writers.py~15 drops everything after#. GNU objdump marks RIP-relative operands with# addr <sym>, socall *0x...(%rip)now matches the fallback-slot pattern, which it didn't before. An import call before the vtable call could then report a wrong slot. A fixture with a GNU RIP-relative call would pin it.\s*now also matches a line starting with a word made only of hex letters (add:). Low risk.Fine: the
qsuffix and comma clean-up are right,movlis kept, and the LLVM fixture is realistic. #2049 rewrites the same parse loop and will conflict.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.