[clang] [HLSL] Add implicit resource element type concepts to AST (PR #112600)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 14 19:01:07 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang` at step 6 "test-build-unified-tree-check-all".

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

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

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: AST/HLSL/AppendStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -internal-isystem /b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefix=EMPTY /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -internal-isystem /b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefix=EMPTY /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl
/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl:15:16: error: EMPTY-NEXT: expected string not found in input
// EMPTY-NEXT: TemplateTypeParmDecl 0x{{[0-9A-Fa-f]+}} <<invalid sloc>> <invalid sloc> class depth 0 index 0 element_type
               ^
<stdin>:39:96: note: scanning from here
| |-ClassTemplateDecl 0xd061cd0 <<invalid sloc>> <invalid sloc> implicit AppendStructuredBuffer
                                                                                               ^
<stdin>:40:7: note: possible intended match here
| | |-TemplateTypeParmDecl 0xd061c30 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type
      ^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          34: | | `-FinalAttr 0xd05f508 <<invalid sloc>> Implicit final 
          35: | |-ClassTemplateDecl 0xd05f9f0 <<invalid sloc>> <invalid sloc> implicit RWStructuredBuffer 
          36: | | |-TemplateTypeParmDecl 0xd05f950 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          37: | | `-CXXRecordDecl 0xd05f850 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class RWStructuredBuffer 
          38: | | `-FinalAttr 0xd05f8f8 <<invalid sloc>> Implicit final 
          39: | |-ClassTemplateDecl 0xd061cd0 <<invalid sloc>> <invalid sloc> implicit AppendStructuredBuffer 
next:15'0                                                                                                    X error: no match found
          40: | | |-TemplateTypeParmDecl 0xd061c30 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1           ?                                                                                                     possible intended match
          41: | | `-CXXRecordDecl 0xd061b30 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class AppendStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          42: | | `-FinalAttr 0xd061bd8 <<invalid sloc>> Implicit final 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          43: | |-ClassTemplateDecl 0xd0620c0 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          44: | | |-TemplateTypeParmDecl 0xd062020 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          45: | | `-CXXRecordDecl 0xd061f20 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class ConsumeStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           .
           .
...

```

</details>

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


More information about the cfe-commits mailing list