[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:54:00 PST 2024


llvm-ci wrote:

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

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

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

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

Command Output (stderr):
--
RUN: at line 1: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=EMPTY /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefix=EMPTY /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl
/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-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>:47:107: note: scanning from here
| `-ClassTemplateDecl 0x11f98c0 <<invalid sloc>> <invalid sloc> implicit RasterizerOrderedStructuredBuffer
                                                                                                          ^
<stdin>:48:5: note: possible intended match here
| |-TemplateTypeParmDecl 0x11f9820 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type
    ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           .
           .
           .
          42: | | `-FinalAttr 0x11f8fe8 <<invalid sloc>> Implicit final 
          43: | |-ClassTemplateDecl 0x11f94d0 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
          44: | | |-TemplateTypeParmDecl 0x11f9430 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          45: | | `-CXXRecordDecl 0x11f9330 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class ConsumeStructuredBuffer 
          46: | | `-FinalAttr 0x11f93d8 <<invalid sloc>> Implicit final 
          47: | `-ClassTemplateDecl 0x11f98c0 <<invalid sloc>> <invalid sloc> implicit RasterizerOrderedStructuredBuffer 
next:15'0                                                                                                               X error: no match found
          48: | |-TemplateTypeParmDecl 0x11f9820 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1         ?                                                                                                     possible intended match
          49: | `-CXXRecordDecl 0x11f9720 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class RasterizerOrderedStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          50: | `-FinalAttr 0x11f97c8 <<invalid sloc>> Implicit final 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          51: |-ConceptDecl 0x11cdda0 <<invalid sloc>> <invalid sloc> __is_typed_resource_element_compatible 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          52: | |-TemplateTypeParmDecl 0x11cdc88 <<invalid sloc>> <invalid sloc> referenced typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          53: | `-BinaryOperator 0x11cdd80 <<invalid sloc>> 'bool' lvalue '<=' 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           .
           .
...

```

</details>

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


More information about the cfe-commits mailing list