[clang] [HLSL] Use the right memory scope on atomic instructions (PR #214592)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 10:59:56 PDT 2026


ilovepi wrote:

I think we're seeing a failure in our CI after this change. could you take a look or revert if this will take a while to fix?

Bot:  https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-host-linux-x64/b8673746871766173009/overview

Logs: https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8673746871766173009/+/u/clang/tests/stdout

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/b/s/w/ir/x/w/llvm_build/bin/clang -cc1 -internal-isystem /b/s/w/ir/x/w/llvm_build/lib/clang/24/include -nostdsysteminc -std=hlsl2021 -finclude-default-header -triple    spirv1.6-unknown-vulkan1.3-compute /b/s/w/ir/x/w/llvm-llvm-project/clang/test/CodeGenHLSL/builtins/InterlockedOr-SPIRV-scope.hlsl -S -o - | /b/s/w/ir/x/w/llvm_build/bin/FileCheck /b/s/w/ir/x/w/llvm-llvm-project/clang/test/CodeGenHLSL/builtins/InterlockedOr-SPIRV-scope.hlsl
# executed command: /b/s/w/ir/x/w/llvm_build/bin/clang -cc1 -internal-isystem /b/s/w/ir/x/w/llvm_build/lib/clang/24/include -nostdsysteminc -std=hlsl2021 -finclude-default-header -triple spirv1.6-unknown-vulkan1.3-compute /b/s/w/ir/x/w/llvm-llvm-project/clang/test/CodeGenHLSL/builtins/InterlockedOr-SPIRV-scope.hlsl -S -o -
# .---command stderr------------
# | warning: support for HLSL language version hlsl2021 is incomplete, recommend using hlsl202x instead
# | error: unable to create target: 'No available targets are compatible with triple "spirv1.6-unknown-vulkan1.3-compute"'
# | 1 warning and 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /b/s/w/ir/x/w/llvm_build/bin/FileCheck /b/s/w/ir/x/w/llvm-llvm-project/clang/test/CodeGenHLSL/builtins/InterlockedOr-SPIRV-scope.hlsl
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /b/s/w/ir/x/w/llvm_build/bin/FileCheck /b/s/w/ir/x/w/llvm-llvm-project/clang/test/CodeGenHLSL/builtins/InterlockedOr-SPIRV-scope.hlsl
# `-----------------------------
# error: command failed with exit status: 2

--
```


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


More information about the cfe-commits mailing list