[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 18:28:42 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang` at step 7 "test-build-unified-tree-check-all".

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

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

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

Command Output (stderr):
--
RUN: at line 1: /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1 -internal-isystem /build/buildbot/premerge-monolithic-linux/build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/AST/HLSL/ConsumeStructuredBuffer-AST.hlsl | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck -check-prefix=EMPTY /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/AST/HLSL/ConsumeStructuredBuffer-AST.hlsl
+ /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1 -internal-isystem /build/buildbot/premerge-monolithic-linux/build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/AST/HLSL/ConsumeStructuredBuffer-AST.hlsl
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck -check-prefix=EMPTY /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/AST/HLSL/ConsumeStructuredBuffer-AST.hlsl
/build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/AST/HLSL/ConsumeStructuredBuffer-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>:43:102: note: scanning from here
| |-ClassTemplateDecl 0x56455fbd9540 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer
                                                                                                     ^
<stdin>:44:7: note: possible intended match here
| | |-TemplateTypeParmDecl 0x56455fbd94a0 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type
      ^

Input file: <stdin>
Check file: /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/AST/HLSL/ConsumeStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           .
           .
           .
          38: | | `-FinalAttr 0x56455fbd6d78 <<invalid sloc>> Implicit final 
          39: | |-ClassTemplateDecl 0x56455fbd9150 <<invalid sloc>> <invalid sloc> implicit AppendStructuredBuffer 
          40: | | |-TemplateTypeParmDecl 0x56455fbd90b0 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          41: | | `-CXXRecordDecl 0x56455fbd8fb0 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class AppendStructuredBuffer 
          42: | | `-FinalAttr 0x56455fbd9058 <<invalid sloc>> Implicit final 
          43: | |-ClassTemplateDecl 0x56455fbd9540 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
next:15'0                                                                                                          X error: no match found
          44: | | |-TemplateTypeParmDecl 0x56455fbd94a0 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1           ?                                                                                                          possible intended match
          45: | | `-CXXRecordDecl 0x56455fbd93a0 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class ConsumeStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          46: | | `-FinalAttr 0x56455fbd9448 <<invalid sloc>> Implicit final 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          47: | `-ClassTemplateDecl 0x56455fbd9930 <<invalid sloc>> <invalid sloc> implicit RasterizerOrderedStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          48: | |-TemplateTypeParmDecl 0x56455fbd9890 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          49: | `-CXXRecordDecl 0x56455fbd9790 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class RasterizerOrderedStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           .
           .
...

```

</details>

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


More information about the cfe-commits mailing list