llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[HLSL][DXIL] Add texture and groupshared support to HLSL Interlocked intrinsics

Open Alexander-Johnston opened this issue 8 months ago • 2 comments

Based on https://github.com/llvm/llvm-project/issues/99126, initial implementation for the HLSL InterlockedOr is present in https://github.com/llvm/llvm-project/pull/180804.

This PR implements most of the functionality and allows for the public InterlockedOr method on RWByteAddressBuffers, but does not provide support for Texture or groupshared resources. Texture and groupshared support should only need to be added in SemaHLSL.cpp and CGHLSLBuiltins.cpp when handling the builtin_hlsl_interlocked_ and coordinate logic for the DXIL ops.

Alexander-Johnston avatar Mar 12 '26 15:03 Alexander-Johnston

@bob80905 - can you double check the status of this and update the description to enumerate what is remaining (or close if appropriate)

damyanp avatar Sep 03 '26 21:09 damyanp

Groupshared support looks live (each interlocked* implementation includes its own groupshared support now, including the specified interlockedor), and texture support should be done after https://github.com/llvm/llvm-project/pull/221369 merges.

bob80905 avatar Sep 10 '26 22:09 bob80905