[llvm] [SPIRV] Let atomic store store pointers (PR #201251)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 12:52:22 PDT 2026


================
@@ -2075,39 +2075,43 @@ bool SPIRVInstructionSelector::selectAtomicStore(MachineInstr &I) const {
   MachineIRBuilder MIRBuilder(I);
 
   if (PointeeType.isTypePtr()) {
+    // If data to store is a pointer type we cast it to an integer type of the
+    // same size as the pointer size using OpConvertPtrToU and then generate
+    // OpAtomicStore with casted values as required by spec.
----------------
fineg74 wrote:

Added pointer description

https://github.com/llvm/llvm-project/pull/201251


More information about the llvm-commits mailing list