[clang] Add missing comment (PR #193050)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 20 11:55:16 PDT 2026


github-actions[bot] wrote:

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

* 53670 tests passed
* 1774 tests skipped
* 3 tests failed

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

### Clang
<details>
<summary>Clang.CodeGenHLSL/resources/resources-in-structs-array.hlsl</summary>

```
Exit Code: 1

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\23\include -nostdsysteminc -triple dxil-pc-shadermodel6.0-compute -emit-llvm -disable-llvm-passes -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-array.hlsl | llvm-cxxfilt | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-array.hlsl
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -triple dxil-pc-shadermodel6.0-compute -emit-llvm -disable-llvm-passes -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-array.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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-array.hlsl'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-array.hlsl:80:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: %[[TMP:.*]] = alloca %"class.hlsl::RWStructuredBuffer", align 4
# |                ^
# | <stdin>:244:2: note: 'next' match was here
# |  %tmp = alloca %"class.hlsl::RWStructuredBuffer", align 4
# |  ^
# | <stdin>:242:7: note: previous match ended here
# | entry:
# |       ^
# | <stdin>:243:1: note: non-matching line after previous match is here
# |  %0 = call token @llvm.experimental.convergence.entry()
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-array.hlsl
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          .
# |          .
# |          .
# |        239:  
# |        240: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind 
# |        241: define internal void @main()() #2 { 
# |        242: entry: 
# |        243:  %0 = call token @llvm.experimental.convergence.entry() 
# |        244:  %tmp = alloca %"class.hlsl::RWStructuredBuffer", align 4 
# | next:80      !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  error: match on wrong line
# |        245:  %call1 = call noundef nonnull align 4 dereferenceable(4) ptr @hlsl::RWBuffer<float>::operator[](unsigned int)(ptr noundef nonnull align 4 dereferenceable(4) @arrayOfA.1.Buf, i32 noundef 0) #5 [ "convergencectrl"(token %0) ] 
# |        246:  store float 1.000000e+00, ptr %call1, align 4 
# |        247:  %call2 = call noundef nonnull align 4 dereferenceable(4) ptr @hlsl::RWBuffer<float>::operator[](unsigned int)(ptr noundef nonnull align 4 dereferenceable(4) @gArray.1.multiArray.1.0.Buf, i32 noundef 0) #5 [ "convergencectrl"(token %0) ] 
# |        248:  store float 2.000000e+00, ptr %call2, align 4 
# |        249:  %call3 = call noundef nonnull align 4 dereferenceable(4) ptr @hlsl::RWBuffer<float>::operator[](unsigned int)(ptr noundef nonnull align 4 dereferenceable(4) @gArray.0.multiArray.0.1.Buf, i32 noundef 0) #5 [ "convergencectrl"(token %0) ] 
# |          .
# |          .
# |          .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CodeGenHLSL/resources/resources-in-structs-inheritance.hlsl</summary>

```
Exit Code: 1

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\23\include -nostdsysteminc -triple dxil-pc-shadermodel6.0-compute -emit-llvm -disable-llvm-passes -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-inheritance.hlsl | llvm-cxxfilt | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-inheritance.hlsl
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -triple dxil-pc-shadermodel6.0-compute -emit-llvm -disable-llvm-passes -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-inheritance.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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-inheritance.hlsl'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-inheritance.hlsl:96:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: %i = alloca i32
# |                ^
# | <stdin>:273:2: note: 'next' match was here
# |  %i = alloca i32, align 4
# |  ^
# | <stdin>:271:7: note: previous match ended here
# | entry:
# |       ^
# | <stdin>:272:1: note: non-matching line after previous match is here
# |  %0 = call token @llvm.experimental.convergence.entry()
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs-inheritance.hlsl
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          .
# |          .
# |          .
# |        268:  
# |        269: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind 
# |        270: define internal void @main()() #2 { 
# |        271: entry: 
# |        272:  %0 = call token @llvm.experimental.convergence.entry() 
# |        273:  %i = alloca i32, align 4 
# | next:96      !~~~~~~~~~~~~~~           error: match on wrong line
# |        274:  %tmp = alloca %"class.hlsl::StructuredBuffer.0", align 4 
# |        275:  %a = alloca float, align 4 
# |        276:  %call1 = call noundef nonnull align 4 dereferenceable(4) ptr @hlsl::RWBuffer<float>::operator[](unsigned int)(ptr noundef nonnull align 4 dereferenceable(4) @"_ZL8c.A::Buf", i32 noundef 0) #5 [ "convergencectrl"(token %0) ] 
# |        277:  store float 0x3FF3AE1480000000, ptr %call1, align 4 
# |        278:  %call2 = call noundef nonnull align 4 dereferenceable(4) ptr @hlsl::RWBuffer<float>::operator[](unsigned int)(ptr noundef nonnull align 4 dereferenceable(4) @c.Buf2, i32 noundef 0) #5 [ "convergencectrl"(token %0) ] 
# |          .
# |          .
# |          .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CodeGenHLSL/resources/resources-in-structs.hlsl</summary>

```
Exit Code: 1

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\23\include -nostdsysteminc -triple dxil-pc-shadermodel6.0-compute -emit-llvm -disable-llvm-passes -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs.hlsl | llvm-cxxfilt | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs.hlsl
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -triple dxil-pc-shadermodel6.0-compute -emit-llvm -disable-llvm-passes -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs.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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs.hlsl'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs.hlsl:44:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: call void @hlsl::RWBuffer<float>::__createFromBinding(unsigned int, unsigned int, int, unsigned int, char const*)
# |                ^
# | <stdin>:26:2: note: 'next' match was here
# |  call void @hlsl::RWBuffer<float>::__createFromBinding(unsigned int, unsigned int, int, unsigned int, char const*)(ptr dead_on_unwind writable sret(%"class.hlsl::RWBuffer") align 4 @a.Buf, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0, ptr noundef @.str) #5 [ "convergencectrl"(token %0) ]
# |  ^
# | <stdin>:24:7: note: previous match ended here
# | entry:
# |       ^
# | <stdin>:25:1: note: non-matching line after previous match is here
# |  %0 = call token @llvm.experimental.convergence.entry()
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\resources\resources-in-structs.hlsl
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          .
# |          .
# |          .
# |         21:  
# |         22: ; Function Attrs: alwaysinline convergent nounwind 
# |         23: define internal void @__cxx_global_var_init() #0 { 
# |         24: entry: 
# |         25:  %0 = call token @llvm.experimental.convergence.entry() 
# |         26:  call void @hlsl::RWBuffer<float>::__createFromBinding(unsigned int, unsigned int, int, unsigned int, char const*)(ptr dead_on_unwind writable sret(%"class.hlsl::RWBuffer") align 4 @a.Buf, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0, ptr noundef @.str) #5 [ "convergencectrl"(token %0) ] 
# | next:44      !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                              error: match on wrong line
# |         27:  ret void 
# |         28: } 
# |         29:  
# |         30: ; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none) 
# |         31: declare token @llvm.experimental.convergence.entry() #1 
# |          .
# |          .
# |          .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</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/193050


More information about the cfe-commits mailing list