[all-commits] [llvm/llvm-project] 5fd803: [SPIRV] Let atomic store store pointers (#201251)
fineg74 via All-commits
all-commits at lists.llvm.org
Tue Jun 9 10:52:18 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5fd8036c0cd6eeab4cbc1dea1ca8569c082e874c
https://github.com/llvm/llvm-project/commit/5fd8036c0cd6eeab4cbc1dea1ca8569c082e874c
Author: fineg74 <61437305+fineg74 at users.noreply.github.com>
Date: 2026-06-09 (Tue, 09 Jun 2026)
Changed paths:
M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
M llvm/lib/Target/SPIRV/SPIRVTypeInst.cpp
M llvm/lib/Target/SPIRV/SPIRVTypeInst.h
M llvm/test/CodeGen/SPIRV/transcoding/atomic-load-store-unsupported.ll
A llvm/test/CodeGen/SPIRV/transcoding/store-atomic-ptr.ll
Log Message:
-----------
[SPIRV] Let atomic store store pointers (#201251)
SPIRV atomic store permits only integer or floats as per SPIRV spec.
When compiling libc there several places in the code where pointers are
atomically stored causing compilation to break. It can be fixed by using
casting in the libc code but in order to keep the libc code clean it is
preferrable to do it in SPIRV backend. This change will cast pointer
parameters to integers of appropriate size and generate atomic store
instruction that uses integers per SPIRV spec.
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