Repository navigation
docs/design.md: one copy of each rule in the Global atomics row (OLD-9923) - #665
LouisRiverstone wants to merge 2 commits into
Conversation
…ched again after old PR 3084) - docs/design.md: one copy of each rule in the Global atomics row (stitched again after #3084) - docs/design.md: fcmpswap is not in Global atomics' Still Unsupported list; it has its own row (@WALID1618Y on old PR 4879) Carried over from old-pr/9923 (old upstream PR 9923), rebased on main.
|
Checked the Global atomics row (docs/design.md:289) fact by fact against One note: the PR also adds a pointer sentence to the "Atomic natural alignment" row. It is accurate (row 515 and the code docstring say the same), but the description does not mention it. The table still has two columns on lines 288 to 290. AI-assisted review (Claude Code). |
tiguan26
left a comment
There was a problem hiding this comment.
Approving. It changes docs only: the docstring and the design row. Merged into current main (9f9a7c5) with no conflicts, and the full translator suite gives 491 files / 6,312 tests with only test_int32_to_f64 failing, as on main here.
The new wording matches the code. atomic_inc_dec_cas exists on main and is the path inc/dec take, and the _x2 inc/dec forms are correctly listed with the other unsupported 64-bit forms.
AI-assisted (Claude).
|
Checked against main 43a9d56: merges cleanly (also with #1450 and #1224). The Global atomics row keeps every rule; what goes are older copies a later sentence extends (for example the two AI-assisted (Claude Code); I ran the checks and read the diff. Generated by Claude Code |
Claimed in the coordination issue as: OLD-9923 (#14 (comment))
Replaces the carried-over draft #191. I'm the original author of old upstream PR 9923.
What and why
The Global atomics row in
docs/design.mdhad been stitched together twice, the second time after old PR 3084, so some rules appeared twice in it. This keeps one copy of each. It also takesfcmpswapout of that row's Still Unsupported list, because it has its own row (pointed out by WALID1618Y on the old PR). The matching comment intools/rdna2spirv.pynow names inc/dec next to the other_x2forms. The row also gains one pointer sentence: natural alignment (an unaligned dword, or an unaligned 8-byte_x2element, leaves memory alone and an activeglclane gets 0) is in "Atomic natural alignment" below, which says the same, as does theglobal_atomicdocstring. No behaviour change.The old branch's final diff, applied on current
main(21625bc) as one commit. It applied cleanly.Tested
python -m compileall -q tools: OK (only a comment changed intools/rdna2spirv.py).python -I scripts/run_semantic_tests.py tests/semantic: 465 files, 6108 tests, 0 files failed (Linux, Python 3.14.4).GPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: documentation only)