[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:07:41 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `clang` at step 4 "annotate".

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

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

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[295/301] Linking CXX executable tools/clang/unittests/Driver/ClangDriverTests
[296/301] Linking CXX executable tools/clang/unittests/CodeGen/ClangCodeGenTests
[297/301] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[298/301] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[299/301] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[300/301] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[300/301] Running the Clang regression tests
-- Testing: 21335 tests, 48 workers --
llvm-lit: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang
Testing: 
FAIL: Clang :: AST/HLSL/ConsumeStructuredBuffer-AST.hlsl (192 of 21335)
******************** TEST 'Clang :: AST/HLSL/ConsumeStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

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

Input file: <stdin>
Check file: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/AST/HLSL/ConsumeStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           .
           .
           .
          38: | | `-FinalAttr 0x832e778 <<invalid sloc>> Implicit final 
          39: | |-ClassTemplateDecl 0x8330b50 <<invalid sloc>> <invalid sloc> implicit AppendStructuredBuffer 
          40: | | |-TemplateTypeParmDecl 0x8330ab0 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          41: | | `-CXXRecordDecl 0x83309b0 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class AppendStructuredBuffer 
          42: | | `-FinalAttr 0x8330a58 <<invalid sloc>> Implicit final 
          43: | |-ClassTemplateDecl 0x8330f40 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
next:15'0                                                                                                     X error: no match found
          44: | | |-TemplateTypeParmDecl 0x8330ea0 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1           ?                                                                                                     possible intended match
Step 8 (check-llvm) failure: check-llvm (failure)
...
[295/301] Linking CXX executable tools/clang/unittests/Driver/ClangDriverTests
[296/301] Linking CXX executable tools/clang/unittests/CodeGen/ClangCodeGenTests
[297/301] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[298/301] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[299/301] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[300/301] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[300/301] Running the Clang regression tests
-- Testing: 21335 tests, 48 workers --
llvm-lit: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang
Testing: 
FAIL: Clang :: AST/HLSL/ConsumeStructuredBuffer-AST.hlsl (192 of 21335)
******************** TEST 'Clang :: AST/HLSL/ConsumeStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

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

Input file: <stdin>
Check file: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/AST/HLSL/ConsumeStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           .
           .
           .
          38: | | `-FinalAttr 0x832e778 <<invalid sloc>> Implicit final 
          39: | |-ClassTemplateDecl 0x8330b50 <<invalid sloc>> <invalid sloc> implicit AppendStructuredBuffer 
          40: | | |-TemplateTypeParmDecl 0x8330ab0 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          41: | | `-CXXRecordDecl 0x83309b0 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class AppendStructuredBuffer 
          42: | | `-FinalAttr 0x8330a58 <<invalid sloc>> Implicit final 
          43: | |-ClassTemplateDecl 0x8330f40 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
next:15'0                                                                                                     X error: no match found
          44: | | |-TemplateTypeParmDecl 0x8330ea0 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1           ?                                                                                                     possible intended match

```

</details>

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


More information about the cfe-commits mailing list