diff options
| author | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 09:45:21 -0300 |
|---|---|---|
| committer | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 09:45:21 -0300 |
| commit | 2fe13e7385588b8c81353626fe3e2f6f558fa695 (patch) | |
| tree | d7599ab3150459c8a9c7d9066f7af0ef836dde83 /runtime/src/main.cpp | |
| parent | 41f448261e1de8a410b4d760e69a7e5656cef858 (diff) | |
rdna2spirv: 32-bit global_atomic_* (add, sub, min, max, and, or, xor, swap, cmpswap)
Every global atomic was rejected. The address part of global_mem moves
to global_address, and global_atomic uses it: one OpAtomic* on the
PhysicalStorageBuffer dword (device scope), guarded so inactive lanes
don't touch memory; with glc the old value goes to vdst (the first
operand), cmpswap takes vdata as {DATA, CMP}. The first-read analysis
reads operand 0 as the address when there is no glc. _x2, inc/dec, the
float atomics and slc/dlc stay Unsupported.
tests/semantic/test_global_atomics.py runs them in the interpreter.
docs/design.md row added.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions