[all-commits] [llvm/llvm-project] 7e2e37: [SPIRV] Support atomic exchange of pointers (#207830)

Nick Sarnie via All-commits all-commits at lists.llvm.org
Wed Jul 8 08:09:04 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e2e37536167a96e61f077d993ddc7106e372596
      https://github.com/llvm/llvm-project/commit/7e2e37536167a96e61f077d993ddc7106e372596
  Author: Nick Sarnie <nick.sarnie at intel.com>
  Date:   2026-07-08 (Wed, 08 Jul 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    M llvm/test/CodeGen/SPIRV/instructions/atomic-ptr.ll
    A llvm/test/CodeGen/SPIRV/transcoding/atomic-load-store-exchange-unsupported.ll
    R llvm/test/CodeGen/SPIRV/transcoding/atomic-load-store-unsupported.ll

  Log Message:
  -----------
  [SPIRV] Support atomic exchange of pointers (#207830)

Similar to what we do for atomic loads and stores, support pointers by
converting the exchange value to an equally-sized int, the pointer to a
pointer to that equally-sized int, and convert the result back to the
original pointer type.

This was found enabling support for SPIR-V in libc.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply at anthropic.com>

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list