[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:05:56 PST 2024


llvm-ci wrote:

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

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

<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/RasterizerOrderedStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

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

Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           1: TranslationUnitDecl 0x59950c875bd8 <<invalid sloc>> <invalid sloc> 
           2: |-NamespaceDecl 0x59950c8764f8 <<invalid sloc>> <invalid sloc> implicit hlsl 
           3: | |-TypeAliasTemplateDecl 0x59950c876850 <<invalid sloc>> <invalid sloc> implicit vector 
           4: | | |-TemplateTypeParmDecl 0x59950c876580 <<invalid sloc>> <invalid sloc> class depth 0 index 0 element 
           5: | | | `-TemplateArgument type 'float' 
           6: | | | `-BuiltinType 0x59950c875de0 'float' 
           7: | | |-NonTypeTemplateParmDecl 0x59950c876680 <<invalid sloc>> <invalid sloc> 'int' depth 0 index 1 element_count 
           8: | | | `-TemplateArgument expr '4' 
           9: | | | `-IntegerLiteral 0x59950c8766d8 <<invalid sloc>> 'int' 4 
          10: | | `-TypeAliasDecl 0x59950c8767f0 <<invalid sloc>> <invalid sloc> implicit vector 'vector<element, element_count>' 
          11: | | `-DependentSizedExtVectorType 0x59950c8767a0 'vector<element, element_count>' dependent <invalid sloc> 
          12: | | |-TemplateTypeParmType 0x59950c876600 'element' dependent depth 0 index 0 
          13: | | | `-TemplateTypeParm 0x59950c876580 'element' 
          14: | | `-DeclRefExpr 0x59950c876740 <<invalid sloc>> 'int' lvalue NonTypeTemplateParm 0x59950c876680 'element_count' 'int' 
          15: | |-ClassTemplateDecl 0x59950c89ecb8 <<invalid sloc>> <invalid sloc> implicit RWBuffer 
          16: | | |-TemplateTypeParmDecl 0x59950c876b08 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          17: | | |-ConceptSpecializationExpr 0x59950c89ec58 <<invalid sloc>> 'bool' Concept 0x59950c8769c0 '__is_typed_resource_element_compatible' 
          18: | | | |-ImplicitConceptSpecializationDecl 0x59950c89eb90 <<invalid sloc>> <invalid sloc> 
          19: | | | | `-TemplateArgument type 'type-parameter-0-0' 
          20: | | | | `-TemplateTypeParmType 0x59950c89eb60 'type-parameter-0-0' dependent depth 0 index 0 
          21: | | | | `-TemplateTypeParm 0x59950c89eb10 '' 
          22: | | | `-TemplateArgument type 'element_type':'type-parameter-0-0' 
          23: | | | `-TemplateTypeParmType 0x59950c876900 'element_type' dependent depth 0 index 0 
          24: | | | `-TemplateTypeParm 0x59950c8768a8 'element_type' 
          25: | | `-CXXRecordDecl 0x59950c876a08 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class RWBuffer 
...

```

</details>

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


More information about the cfe-commits mailing list