[clang] [HLSL][NFC] Refactor structured buffer methods tests (PR #161908)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 14 15:13:41 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang` at step 4 "clean-build-dir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/24857

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (clean-build-dir) failure: Delete failed. (failure)
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: CodeGenHLSL/resources/StructuredBuffers-methods-ps.hlsl' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include -nostdsysteminc -triple dxil-pc-shadermodel6.3-pixel -finclude-default-header -emit-llvm -disable-llvm-passes -o - Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl | llvm-cxxfilt | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl --check-prefixes=CHECK,DXIL
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include' -nostdsysteminc -triple dxil-pc-shadermodel6.3-pixel -finclude-default-header -emit-llvm -disable-llvm-passes -o - 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl'
# note: command had no output on stdout or stderr
# executed command: llvm-cxxfilt
# note: command had no output on stdout or stderr
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl' --check-prefixes=CHECK,DXIL
# .---command stderr------------
# | Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl:26:15: error: DXIL-NEXT: expected string not found in input
# | // DXIL-NEXT: %[[VAL:.*]] = call i32 @llvm.dx.resource.updatecounter.tdx.RawBuffer_f32_1_1t(target("dx.RawBuffer", float, 1, 1) %[[HANDLE]], i8 1)
# |               ^
# | <stdin>:165:62: note: scanning from here
# |  %0 = load target("dx.RawBuffer", float, 1, 1), ptr %__handle, align 4
# |                                                              ^
# | <stdin>:165:62: note: with "HANDLE" equal to "0"
# |  %0 = load target("dx.RawBuffer", float, 1, 1), ptr %__handle, align 4
# |                                                              ^
# | <stdin>:167:2: note: possible intended match here
# |  %2 = call ptr @llvm.dx.resource.getpointer.p0.tdx.RawBuffer_f32_1_1t(target("dx.RawBuffer", float, 1, 1) %0, i32 %1)
# |  ^
# | 
# | Input file: <stdin>
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: ; ModuleID = 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl' 
# |            2: source_filename = "Z:\\b\\llvm-clang-x86_64-sie-win\\llvm-project\\clang\\test\\CodeGenHLSL\\resources\\StructuredBuffers-methods-ps.hlsl" 
# |            3: target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64" 
# |            4: target triple = "dxilv1.3-pc-shadermodel6.3-pixel" 
# |            5:  
# |            6: %"class.hlsl::RasterizerOrderedStructuredBuffer" = type { target("dx.RawBuffer", float, 1, 1), target("dx.RawBuffer", float, 1, 1) } 
# |            7: %"class.hlsl::RasterizerOrderedStructuredBuffer.0" = type { target("dx.RawBuffer", <2 x i32>, 1, 1), target("dx.RawBuffer", <2 x i32>, 1, 1) } 
# |            8:  
# |            9:  at ROSB1 = internal global %"class.hlsl::RasterizerOrderedStructuredBuffer" poison, align 4 
# | check:12      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           10:  at .str = private unnamed_addr constant [6 x i8] c"ROSB1\00", align 1 
# |           11:  at ROSB2 = internal global %"class.hlsl::RasterizerOrderedStructuredBuffer.0" poison, align 4 
# | check:13      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           12:  at .str.2 = private unnamed_addr constant [6 x i8] c"ROSB2\00", align 1 
# |           13:  
# |           14: ; Function Attrs: alwaysinline convergent nounwind 
# |           15: define internal void @__cxx_global_var_init() #0 { 
...

```

</details>

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


More information about the cfe-commits mailing list