[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 17:12:09 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-linux` running on `avx512-intel64` while building `clang` at step 7 "ninja check 1".

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

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

```
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: AST/HLSL/ConsumeStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

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

Input file: <stdin>
Check file: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/AST/HLSL/ConsumeStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           .
           .
           .
          38: | | `-FinalAttr 0xa15ed58 <<invalid sloc>> Implicit final 
          39: | |-ClassTemplateDecl 0xa161130 <<invalid sloc>> <invalid sloc> implicit AppendStructuredBuffer 
          40: | | |-TemplateTypeParmDecl 0xa161090 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          41: | | `-CXXRecordDecl 0xa160f90 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class AppendStructuredBuffer 
          42: | | `-FinalAttr 0xa161038 <<invalid sloc>> Implicit final 
          43: | |-ClassTemplateDecl 0xa161520 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
next:15'0                                                                                                     X error: no match found
          44: | | |-TemplateTypeParmDecl 0xa161480 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1           ?                                                                                                     possible intended match
          45: | | `-CXXRecordDecl 0xa161380 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class ConsumeStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          46: | | `-FinalAttr 0xa161428 <<invalid sloc>> Implicit final 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          47: | `-ClassTemplateDecl 0xa161910 <<invalid sloc>> <invalid sloc> implicit RasterizerOrderedStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          48: | |-TemplateTypeParmDecl 0xa161870 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          49: | `-CXXRecordDecl 0xa161770 <<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