[clang] [llvm] [HLSL] Add WaveActiveBallot builtins and lower to DXIL / SPIR-V (PR #174638)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 6 12:21:23 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 129172 tests passed
* 2844 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.CodeGenHLSL/builtins/WaveActiveBallot.hlsl</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\22\include -nostdsysteminc -finclude-default-header -fnative-half-type -triple    dxil-pc-shadermodel6.3-compute C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\WaveActiveBallot.hlsl -emit-llvm -disable-llvm-passes -o - |    c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\WaveActiveBallot.hlsl --check-prefixes=CHECK,CHECK-DXIL
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\22\include' -nostdsysteminc -finclude-default-header -fnative-half-type -triple dxil-pc-shadermodel6.3-compute 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\WaveActiveBallot.hlsl' -emit-llvm -disable-llvm-passes -o -
# .---command stderr------------
# | Assertion failed: isa<To>(Val) && "cast<Ty>() argument of incompatible type!", file C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Casting.h, line 572
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\22\\include -nostdsysteminc -finclude-default-header -fnative-half-type -triple dxil-pc-shadermodel6.3-compute C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGenHLSL\\builtins\\WaveActiveBallot.hlsl -emit-llvm -disable-llvm-passes -o -
# | 1.	<eof> parser at end of file
# | 2.	C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\WaveActiveBallot.hlsl:11:7: LLVM IR generation of declaration 'test'
# | 3.	C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\WaveActiveBallot.hlsl:11:7: Generating code for declaration 'test'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff7540bf796 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x7ef796)
# |  #1 0x00007ffb1daabb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffb1daacad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffb1daae4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffb1daae6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff75390ef41 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x3ef41)
# |  #6 0x00007ff7598bdd9d (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5fedd9d)
# |  #7 0x00007ff7598dcef8 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x600cef8)
# |  #8 0x00007ff7598da82a (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x600a82a)
# |  #9 0x00007ff7598bc633 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5fec633)
# | #10 0x00007ff7585916f9 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x4cc16f9)
# | #11 0x00007ff75858cd6d (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x4cbcd6d)
# | #12 0x00007ff75859b295 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x4ccb295)
# | #13 0x00007ff7582a3eb7 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x49d3eb7)
# | #14 0x00007ff755ff3044 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2723044)
# | #15 0x00007ff755fe931f (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x271931f)
# | #16 0x00007ff755fef55a (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x271f55a)
# | #17 0x00007ff755fe7bb4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2717bb4)
# | #18 0x00007ff7591e60db (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x59160db)
# | #19 0x00007ff75660e957 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2d3e957)
# | #20 0x00007ff759119889 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5849889)
# | #21 0x00007ff7565bcd14 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2cecd14)
# | #22 0x00007ff756559cff (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2c89cff)
# | #23 0x00007ff7541fa4f4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x92a4f4)
# | #24 0x00007ff75429f593 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x9cf593)
# | #25 0x00007ff7538d91d7 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x91d7)
# | #26 0x00007ff7538d4774 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x4774)
# | #27 0x00007ff7538d29ca (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x29ca)
# | #28 0x00007ff7538e8da7 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x18da7)
# | #29 0x00007ff75aad7744 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x7207744)
# | #30 0x00007ffb26f64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #31 0x00007ffb2fc5edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\WaveActiveBallot.hlsl' --check-prefixes=CHECK,CHECK-DXIL
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\WaveActiveBallot.hlsl --check-prefixes=CHECK,CHECK-DXIL
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list