Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HLSL] Add implicit resource element type concepts to AST #112600

Merged
merged 27 commits into from
Nov 15, 2024

Conversation

bob80905
Copy link
Contributor

@bob80905 bob80905 commented Oct 16, 2024

This PR is step one on the journey to implement resource element type validation via C++20 concepts. The PR sets up the infrastructure for injecting implicit concept decls / concept specialization expressions into the AST, which will then be evaluated after template arguments are instantiated. This is not meant to be a complete implementation of the desired validation for HLSL,
there are a couple of missing elements:

  1. We need the __builtin_hlsl_is_typed_resource_element_compatible builtin to be implemented.
  2. We need other constraints, like is_intangible
  3. We need to put the first 2 points together, and construct a finalized constraint expression, which should differ between typed and raw buffers

This is just an initial PR that puts some of the core infrastructure in place.

@bob80905 bob80905 marked this pull request as ready for review October 16, 2024 22:22
Copy link
Contributor

@damyanp damyanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments based on a quick read through:

clang/lib/AST/DeclTemplate.cpp Outdated Show resolved Hide resolved
clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/test/AST/HLSL/StructuredBuffer-AST.hlsl Outdated Show resolved Hide resolved
@@ -356,6 +426,9 @@ struct TemplateParameterListBuilder {
QualType T = Builder.Template->getInjectedClassNameSpecialization();
T = S.Context.getInjectedClassNameType(Builder.Record, T);

ArrayRef<TemplateArgument> TempArgs =
Builder.Template->getInjectedTemplateArgs();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable TempArgs?

Comment on lines 628 to 633
std::vector<NamedDecl *> TemplateParamsVec = {T};
llvm::ArrayRef<NamedDecl *> TemplateParams(TemplateParamsVec);

clang::TemplateParameterList *ConceptParams =
clang::TemplateParameterList::Create(context, DeclLoc, DeclLoc,
TemplateParams, DeclLoc, nullptr);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
std::vector<NamedDecl *> TemplateParamsVec = {T};
llvm::ArrayRef<NamedDecl *> TemplateParams(TemplateParamsVec);
clang::TemplateParameterList *ConceptParams =
clang::TemplateParameterList::Create(context, DeclLoc, DeclLoc,
TemplateParams, DeclLoc, nullptr);
clang::TemplateParameterList *ConceptParams =
clang::TemplateParameterList::Create(context, DeclLoc, DeclLoc,
{T}, DeclLoc, nullptr);

Comment on lines 371 to 385
std::vector<TemplateArgument> ConceptConvertedArgsVec = {ConceptTA};
ArrayRef<TemplateArgument> ConceptConvertedArgs = ConceptConvertedArgsVec;

clang::QualType CSETType = context.getTypeDeclType(T);

TemplateArgument CSETA = TemplateArgument(CSETType);

std::vector<TemplateArgument> CSEConvertedArgsVec = {CSETA};
ArrayRef<TemplateArgument> CSEConvertedArgs = CSEConvertedArgsVec;

ImplicitConceptSpecializationDecl *ImplicitCSEDecl =
ImplicitConceptSpecializationDecl::Create(
context, Builder.Record->getDeclContext(), loc, CSEConvertedArgs);

const ConstraintSatisfaction CS(CD, ConceptConvertedArgs);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
std::vector<TemplateArgument> ConceptConvertedArgsVec = {ConceptTA};
ArrayRef<TemplateArgument> ConceptConvertedArgs = ConceptConvertedArgsVec;
clang::QualType CSETType = context.getTypeDeclType(T);
TemplateArgument CSETA = TemplateArgument(CSETType);
std::vector<TemplateArgument> CSEConvertedArgsVec = {CSETA};
ArrayRef<TemplateArgument> CSEConvertedArgs = CSEConvertedArgsVec;
ImplicitConceptSpecializationDecl *ImplicitCSEDecl =
ImplicitConceptSpecializationDecl::Create(
context, Builder.Record->getDeclContext(), loc, CSEConvertedArgs);
const ConstraintSatisfaction CS(CD, ConceptConvertedArgs);
clang::QualType CSETType = context.getTypeDeclType(T);
TemplateArgument CSETA = TemplateArgument(CSETType);
ImplicitConceptSpecializationDecl *ImplicitCSEDecl =
ImplicitConceptSpecializationDecl::Create(
context, Builder.Record->getDeclContext(), loc, {CSETA});
const ConstraintSatisfaction CS(CD, {ConceptTA});

Copy link
Contributor

@damyanp damyanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more notes

clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/lib/Sema/HLSLExternalSemaSource.cpp Outdated Show resolved Hide resolved
clang/test/AST/HLSL/StructuredBuffer-AST.hlsl Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Oct 18, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Contributor

@damyanp damyanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Would be good to get review from someone more familiar with ASTs and external sema source.

Copy link
Collaborator

@llvm-beanz llvm-beanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looking good to me. A few small comments.


// first get the "sizeof(T) <= 16" expression, as a binary operator
BinaryOperator *SizeOfLEQ16 = constructSizeOfLEQ16Expr(Context, NameLoc, T);
// TODO: add the '__builtin_hlsl_is_line_vector_layout_compatible' builtin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we had agreed on a different name for this. Also is there an issue filed that you can reference in this TODO?

}

ConceptDecl *constructTypedBufferConceptDecl(Sema &S) {
DeclContext *DC = S.CurContext;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want this to be Sema's current context, or the HLSL namespace context? My guess is the later.
It probably doesn't matter too much, but it would be nice to make sure we're not injecting AST nodes into the top-level declaration context or a user-defined context.

SourceLocation DeclLoc = SourceLocation();

IdentifierInfo &IsValidLineVectorII =
Context.Idents.get("is_valid_line_vector");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also had a different name for this...
Can you also prefix the name with double underscore (__) since it is an implementation detail in the compiler rather than an intentionally user-surfaced language feature?

@hekota
Copy link
Member

hekota commented Nov 5, 2024

Since your PR that adds __builtin_hlsl_is_typed_resource_element_compatible is merged do you want to incorporate here?

@bob80905
Copy link
Contributor Author

bob80905 commented Nov 5, 2024

Since your PR that adds __builtin_hlsl_is_typed_resource_element_compatible is merged do you want to incorporate here?

I'd prefer not to, because this PR is already pretty big and I have a separate task that is singularly dedicated to finalizing the constraint expression, which will include incorporating the new builtin.

void HLSLExternalSemaSource::defineHLSLTypesWithForwardDeclarations() {
CXXRecordDecl *Decl;
ConceptDecl *TypeBufferConcept =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

Suggested change
ConceptDecl *TypeBufferConcept =
ConceptDecl *TypedBufferConcept =

Copy link
Member

@hekota hekota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor things, otherwise LGTM!

Comment on lines 344 to 346
concept is_valid_line_vector =sizeof(T) <= 16;
template<typename element_type> requires is_valid_line_vector<element_type>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still uses the old name.

);

T->setDeclContext(DC);
T->setReferenced();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to set this explicitly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting the decl context is necessary because it puts the decl into the right indentation in the AST dump. Otherwise, I believe the decl would be placed at the same scope as one indentation below the translation unit decl, which is not where the decl belongs.
I'll see if I can get away with removing setReferenced here.

Comment on lines 639 to 640
IdentifierInfo &IsTypedResourceElementCompatibleII =
Context.Idents.get("__is_typed_resource_element_compatible");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit - move this just before DeclName declaration, or better yet use Context.Idents.get("__is_typed_resource_element_compatible") directly in the DeclarationName constructor.
It makes it easier to read when variables are declared closer to where they are is used.

Copy link
Contributor

@damyanp damyanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notes, mostly about the comments.

template<typename element_type> requires
is_typed_resource_element_compatible<element_type>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The blank line between the template bit and the struct really confused me for a while trying to read this.

is_typed_resource_element_compatible<element_type>
struct RWBuffer {
element_type Val;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that the code in this comment really matches the AST that's being built.

RWBuffer doesn't have a member of type element_type, for example.

I think that this function is just building up the AST that corresponds to the requires is_typed_resource_element_compatible<element_Type> part?

The AST nodes for template<typename T> concept is_typed_resource_element_compatible =sizeof(T) <= 16;
itself is created in constructTypedBufferConceptDecl?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that when parsing the C++ code in the comment, it produces more of the AST than the function is producing, but I still believe that including that extra context in the comments is helpful. The C++ code adds the structure "RWBuffer", and though it isn't being produced by constructConceptSpecializationExpr, it helps to know what code can be copy pasted into godbolt, for example, to see the AST that would be produced.
I had originally wanted to paste the AST that would be produced, but figured getting the source code would help explain the code better and also allow those who are interested to get the AST from the code.

The first point of the comment says that
"The concept specialization expression (CSE) constructed below is constructed
so that it matches the CSE that is constructed when parsing
the below C++ code:"
Which is still accurate. The code in the function isn't claiming to be responsible for the whole AST. I will reword it slightly for more clarity.

For your last 2 questions, yes I think your statements are accurate.


QualType ConceptTType = Context.getTypeDeclType(ConceptTTPD);

// this is the 2nd template argument node in the AST above
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure what "the AST above" refers to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this was when I had the entire AST inside a comment previously, haven't updated it, will fix!

Comment on lines 378 to 379
// this fake TemplateTypeParmDecl is used to construct a template argument
// that will be used to construct the ImplicitConceptSpecializationDecl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's fake about it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't being placed into the AST, the sole reason for its existence is to allow a path to construct a TemplateArgument, and that TemplateArgument will actually be placed into the AST. The fake TemplateTypeParmDecl is otherwise unused and discarded.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds wrong... Like, completely wrong. You're absolutely adding it to the AST, that's what happens when you create a declaration and put it into a declaration context.

This also seems like we're putting this declaration into the wrong declaration context.

I don't see any of your tests verifying the AST shape of the concept declaration. Can you add tests for that so that we can see what the concept's AST looks like?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On further investigation, yes I believe it is being placed into the AST. I didn't realize that setting the DeclContext correlated with AST placement. However, comparing the generated AST with similar C++ code, I do think the declaration context for this template type parm decl is correct. (That is, the context is the ClassTemplateDecl, and it shows up directly indented under the ClassTemplateDecl in the AST.

I've added tests for the concept declaration AST.

// to construct the ImplicitConceptSpecializationDecl
TemplateTypeParmDecl *T = TemplateTypeParmDecl::Create(
Context, // AST context
Context.getTranslationUnitDecl(), // DeclContext
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where the DeclContext is wrong that I referenced in https://github.com/llvm/llvm-project/pull/112600/files/6edf031b5e736b38cf3551ccc872351f9c8a07ca#r1835111011

Suggested change
Context.getTranslationUnitDecl(), // DeclContext
Builder.Record->getDeclContext();, // DeclContext


IdentifierInfo &ElementTypeII = Context.Idents.get("element_type");
TemplateTypeParmDecl *T = TemplateTypeParmDecl::Create(
Context, Context.getTranslationUnitDecl(), DeclLoc, DeclLoc,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this is also wrong here:

Suggested change
Context, Context.getTranslationUnitDecl(), DeclLoc, DeclLoc,
Context, NSD->getDeclContext(), DeclLoc, DeclLoc,


// Create a ConceptDecl
ConceptDecl *CD =
ConceptDecl::Create(Context, Context.getTranslationUnitDecl(), DeclLoc,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ConceptDecl::Create(Context, Context.getTranslationUnitDecl(), DeclLoc,
ConceptDecl::Create(Context, NSD->getDeclContext(), DeclLoc,

CD->setTemplateParameters(ConceptParams);

// Add the concept declaration to the Translation Unit Decl
Context.getTranslationUnitDecl()->addDecl(CD);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be putting the concepts under the hlsl namespace not under the top level declaration where they may conflict with user-defined declarations.

Suggested change
Context.getTranslationUnitDecl()->addDecl(CD);
NSD->getDeclContext()->addDecl(CD);

@bob80905 bob80905 merged commit 478c24b into llvm:main Nov 15, 2024
8 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2024

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

Here is the relevant piece of the build log for the reference
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
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl:15:16: �[0m�[0;1;31merror: �[0m�[1mEMPTY-NEXT: expected string not found in input
�[0m// EMPTY-NEXT: TemplateTypeParmDecl 0x{{[0-9A-Fa-f]+}} <<invalid sloc>> <invalid sloc> class depth 0 index 0 element_type
�[0;1;32m               ^
�[0m�[1m<stdin>:47:112: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m| `-ClassTemplateDecl 0x59950c8a2340 <<invalid sloc>> <invalid sloc> implicit RasterizerOrderedStructuredBuffer
�[0;1;32m                                                                                                               ^
�[0m�[1m<stdin>:48:5: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m| |-TemplateTypeParmDecl 0x59950c8a22a0 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type
�[0;1;32m    ^
�[0m
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:
<<<<<<
�[1m�[0m�[0;1;30m           1: �[0m�[1m�[0;1;46mTranslationUnitDecl 0x59950c875bd8 <<invalid sloc>> <invalid sloc> �[0m
�[0;1;30m           2: �[0m�[1m�[0;1;46m|-NamespaceDecl 0x59950c8764f8 <<invalid sloc>> <invalid sloc> implicit hlsl �[0m
�[0;1;30m           3: �[0m�[1m�[0;1;46m| |-TypeAliasTemplateDecl 0x59950c876850 <<invalid sloc>> <invalid sloc> implicit vector �[0m
�[0;1;30m           4: �[0m�[1m�[0;1;46m| | |-TemplateTypeParmDecl 0x59950c876580 <<invalid sloc>> <invalid sloc> class depth 0 index 0 element �[0m
�[0;1;30m           5: �[0m�[1m�[0;1;46m| | | `-TemplateArgument type 'float' �[0m
�[0;1;30m           6: �[0m�[1m�[0;1;46m| | | `-BuiltinType 0x59950c875de0 'float' �[0m
�[0;1;30m           7: �[0m�[1m�[0;1;46m| | |-NonTypeTemplateParmDecl 0x59950c876680 <<invalid sloc>> <invalid sloc> 'int' depth 0 index 1 element_count �[0m
�[0;1;30m           8: �[0m�[1m�[0;1;46m| | | `-TemplateArgument expr '4' �[0m
�[0;1;30m           9: �[0m�[1m�[0;1;46m| | | `-IntegerLiteral 0x59950c8766d8 <<invalid sloc>> 'int' 4 �[0m
�[0;1;30m          10: �[0m�[1m�[0;1;46m| | `-TypeAliasDecl 0x59950c8767f0 <<invalid sloc>> <invalid sloc> implicit vector 'vector<element, element_count>' �[0m
�[0;1;30m          11: �[0m�[1m�[0;1;46m| | `-DependentSizedExtVectorType 0x59950c8767a0 'vector<element, element_count>' dependent <invalid sloc> �[0m
�[0;1;30m          12: �[0m�[1m�[0;1;46m| | |-TemplateTypeParmType 0x59950c876600 'element' dependent depth 0 index 0 �[0m
�[0;1;30m          13: �[0m�[1m�[0;1;46m| | | `-TemplateTypeParm 0x59950c876580 'element' �[0m
�[0;1;30m          14: �[0m�[1m�[0;1;46m| | `-DeclRefExpr 0x59950c876740 <<invalid sloc>> 'int' lvalue NonTypeTemplateParm 0x59950c876680 'element_count' 'int' �[0m
�[0;1;30m          15: �[0m�[1m�[0;1;46m| |-ClassTemplateDecl 0x59950c89ecb8 <<invalid sloc>> <invalid sloc> implicit RWBuffer �[0m
�[0;1;30m          16: �[0m�[1m�[0;1;46m| | |-TemplateTypeParmDecl 0x59950c876b08 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type �[0m
�[0;1;30m          17: �[0m�[1m�[0;1;46m| | |-ConceptSpecializationExpr 0x59950c89ec58 <<invalid sloc>> 'bool' Concept 0x59950c8769c0 '__is_typed_resource_element_compatible' �[0m
�[0;1;30m          18: �[0m�[1m�[0;1;46m| | | |-ImplicitConceptSpecializationDecl 0x59950c89eb90 <<invalid sloc>> <invalid sloc> �[0m
�[0;1;30m          19: �[0m�[1m�[0;1;46m| | | | `-TemplateArgument type 'type-parameter-0-0' �[0m
�[0;1;30m          20: �[0m�[1m�[0;1;46m| | | | `-TemplateTypeParmType 0x59950c89eb60 'type-parameter-0-0' dependent depth 0 index 0 �[0m
�[0;1;30m          21: �[0m�[1m�[0;1;46m| | | | `-TemplateTypeParm 0x59950c89eb10 '' �[0m
�[0;1;30m          22: �[0m�[1m�[0;1;46m| | | `-TemplateArgument type 'element_type':'type-parameter-0-0' �[0m
�[0;1;30m          23: �[0m�[1m�[0;1;46m| | | `-TemplateTypeParmType 0x59950c876900 'element_type' dependent depth 0 index 0 �[0m
�[0;1;30m          24: �[0m�[1m�[0;1;46m| | | `-TemplateTypeParm 0x59950c8768a8 'element_type' �[0m
�[0;1;30m          25: �[0m�[1m�[0;1;46m| | `-CXXRecordDecl 0x59950c876a08 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class RWBuffer �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2024

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

Here is the relevant piece of the build log for the reference
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

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building clang at step 6 "Add check check-clang".

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

Here is the relevant piece of the build log for the reference
Step 6 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefix=EMPTY /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -check-prefix=EMPTY /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/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 0xc81a9b0 <<invalid sloc>> <invalid sloc> implicit RasterizerOrderedStructuredBuffer
                                                                                                          ^
<stdin>:48:5: note: possible intended match here
| |-TemplateTypeParmDecl 0xc81a910 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type
    ^

Input file: <stdin>
Check file: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           .
           .
           .
          42: | | `-FinalAttr 0xc81a0d8 <<invalid sloc>> Implicit final 
          43: | |-ClassTemplateDecl 0xc81a5c0 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
          44: | | |-TemplateTypeParmDecl 0xc81a520 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          45: | | `-CXXRecordDecl 0xc81a420 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class ConsumeStructuredBuffer 
          46: | | `-FinalAttr 0xc81a4c8 <<invalid sloc>> Implicit final 
          47: | `-ClassTemplateDecl 0xc81a9b0 <<invalid sloc>> <invalid sloc> implicit RasterizerOrderedStructuredBuffer 
next:15'0                                                                                                               X error: no match found
          48: | |-TemplateTypeParmDecl 0xc81a910 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1         ?                                                                                                     possible intended match
          49: | `-CXXRecordDecl 0xc81a810 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class RasterizerOrderedStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          50: | `-FinalAttr 0xc81a8b8 <<invalid sloc>> Implicit final 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          51: |-ConceptDecl 0xc7ef030 <<invalid sloc>> <invalid sloc> __is_typed_resource_element_compatible 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          52: | |-TemplateTypeParmDecl 0xc7eef18 <<invalid sloc>> <invalid sloc> referenced typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          53: | `-BinaryOperator 0xc7ef010 <<invalid sloc>> 'bool' lvalue '<=' 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           .
           .
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2024

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

Here is the relevant piece of the build log for the reference
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     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           .
           .
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2024

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building clang at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[1345/1347] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[1346/1347] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/wasm-ld
-- Testing: 21511 tests, 60 workers --
Testing: 
FAIL: Clang :: AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl (152 of 21511)
******************** TEST 'Clang :: AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

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

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           .
           .
           .
          42: | | `-FinalAttr 0x55d7f80db7c8 <<invalid sloc>> Implicit final 
          43: | |-ClassTemplateDecl 0x55d7f80dbcb0 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
          44: | | |-TemplateTypeParmDecl 0x55d7f80dbc10 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          45: | | `-CXXRecordDecl 0x55d7f80dbb10 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class ConsumeStructuredBuffer 
          46: | | `-FinalAttr 0x55d7f80dbbb8 <<invalid sloc>> Implicit final 
          47: | `-ClassTemplateDecl 0x55d7f80dc0a0 <<invalid sloc>> <invalid sloc> implicit RasterizerOrderedStructuredBuffer 
next:15'0                                                                                                                    X error: no match found
          48: | |-TemplateTypeParmDecl 0x55d7f80dc000 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1         ?                                                                                                          possible intended match
Step 7 (check) failure: check (failure)
...
[1345/1347] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[1346/1347] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-zmj85sc8/bin/wasm-ld
-- Testing: 21511 tests, 60 workers --
Testing: 
FAIL: Clang :: AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl (152 of 21511)
******************** TEST 'Clang :: AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

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

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/AST/HLSL/RasterizerOrderedStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           .
           .
           .
          42: | | `-FinalAttr 0x55d7f80db7c8 <<invalid sloc>> Implicit final 
          43: | |-ClassTemplateDecl 0x55d7f80dbcb0 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
          44: | | |-TemplateTypeParmDecl 0x55d7f80dbc10 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          45: | | `-CXXRecordDecl 0x55d7f80dbb10 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class ConsumeStructuredBuffer 
          46: | | `-FinalAttr 0x55d7f80dbbb8 <<invalid sloc>> Implicit final 
          47: | `-ClassTemplateDecl 0x55d7f80dc0a0 <<invalid sloc>> <invalid sloc> implicit RasterizerOrderedStructuredBuffer 
next:15'0                                                                                                                    X error: no match found
          48: | |-TemplateTypeParmDecl 0x55d7f80dc000 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1         ?                                                                                                          possible intended match

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-4 while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: AST/HLSL/AppendStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefix=EMPTY /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefix=EMPTY /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl
�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl:15:16: �[0m�[0;1;31merror: �[0m�[1mEMPTY-NEXT: expected string not found in input
�[0m// EMPTY-NEXT: TemplateTypeParmDecl 0x{{[0-9A-Fa-f]+}} <<invalid sloc>> <invalid sloc> class depth 0 index 0 element_type
�[0;1;32m               ^
�[0m�[1m<stdin>:39:98: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m| |-ClassTemplateDecl 0x133853fa0 <<invalid sloc>> <invalid sloc> implicit AppendStructuredBuffer
�[0;1;32m                                                                                                 ^
�[0m�[1m<stdin>:40:7: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m| | |-TemplateTypeParmDecl 0x133853f00 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type
�[0;1;32m      ^
�[0m
Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
�[1m�[0m�[0;1;30m           1: �[0m�[1m�[0;1;46mTranslationUnitDecl 0x13382c608 <<invalid sloc>> <invalid sloc> �[0m
�[0;1;30m           2: �[0m�[1m�[0;1;46m|-NamespaceDecl 0x13382cf28 <<invalid sloc>> <invalid sloc> implicit hlsl �[0m
�[0;1;30m           3: �[0m�[1m�[0;1;46m| |-TypeAliasTemplateDecl 0x13382d280 <<invalid sloc>> <invalid sloc> implicit vector �[0m
�[0;1;30m           4: �[0m�[1m�[0;1;46m| | |-TemplateTypeParmDecl 0x13382cfb0 <<invalid sloc>> <invalid sloc> class depth 0 index 0 element �[0m
�[0;1;30m           5: �[0m�[1m�[0;1;46m| | | `-TemplateArgument type 'float' �[0m
�[0;1;30m           6: �[0m�[1m�[0;1;46m| | | `-BuiltinType 0x13382c810 'float' �[0m
�[0;1;30m           7: �[0m�[1m�[0;1;46m| | |-NonTypeTemplateParmDecl 0x13382d0b0 <<invalid sloc>> <invalid sloc> 'int' depth 0 index 1 element_count �[0m
�[0;1;30m           8: �[0m�[1m�[0;1;46m| | | `-TemplateArgument expr '4' �[0m
�[0;1;30m           9: �[0m�[1m�[0;1;46m| | | `-IntegerLiteral 0x13382d108 <<invalid sloc>> 'int' 4 �[0m
�[0;1;30m          10: �[0m�[1m�[0;1;46m| | `-TypeAliasDecl 0x13382d220 <<invalid sloc>> <invalid sloc> implicit vector 'vector<element, element_count>' �[0m
�[0;1;30m          11: �[0m�[1m�[0;1;46m| | `-DependentSizedExtVectorType 0x13382d1d0 'vector<element, element_count>' dependent <invalid sloc> �[0m
�[0;1;30m          12: �[0m�[1m�[0;1;46m| | |-TemplateTypeParmType 0x13382d030 'element' dependent depth 0 index 0 �[0m
�[0;1;30m          13: �[0m�[1m�[0;1;46m| | | `-TemplateTypeParm 0x13382cfb0 'element' �[0m
�[0;1;30m          14: �[0m�[1m�[0;1;46m| | `-DeclRefExpr 0x13382d170 <<invalid sloc>> 'int' lvalue NonTypeTemplateParm 0x13382d0b0 'element_count' 'int' �[0m
�[0;1;30m          15: �[0m�[1m�[0;1;46m| |-ClassTemplateDecl 0x1338521a8 <<invalid sloc>> <invalid sloc> implicit RWBuffer �[0m
�[0;1;30m          16: �[0m�[1m�[0;1;46m| | |-TemplateTypeParmDecl 0x13382d538 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type �[0m
�[0;1;30m          17: �[0m�[1m�[0;1;46m| | |-ConceptSpecializationExpr 0x133852148 <<invalid sloc>> 'bool' Concept 0x13382d3f0 '__is_typed_resource_element_compatible' �[0m
�[0;1;30m          18: �[0m�[1m�[0;1;46m| | | |-ImplicitConceptSpecializationDecl 0x133852080 <<invalid sloc>> <invalid sloc> �[0m
�[0;1;30m          19: �[0m�[1m�[0;1;46m| | | | `-TemplateArgument type 'type-parameter-0-0' �[0m
�[0;1;30m          20: �[0m�[1m�[0;1;46m| | | | `-TemplateTypeParmType 0x133852050 'type-parameter-0-0' dependent depth 0 index 0 �[0m
�[0;1;30m          21: �[0m�[1m�[0;1;46m| | | | `-TemplateTypeParm 0x133852000 '' �[0m
�[0;1;30m          22: �[0m�[1m�[0;1;46m| | | `-TemplateArgument type 'element_type':'type-parameter-0-0' �[0m
�[0;1;30m          23: �[0m�[1m�[0;1;46m| | | `-TemplateTypeParmType 0x13382d330 'element_type' dependent depth 0 index 0 �[0m
�[0;1;30m          24: �[0m�[1m�[0;1;46m| | | `-TemplateTypeParm 0x13382d2d8 'element_type' �[0m
�[0;1;30m          25: �[0m�[1m�[0;1;46m| | `-CXXRecordDecl 0x13382d438 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class RWBuffer �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2024

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

Here is the relevant piece of the build log for the reference
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     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           .
           .
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2024

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

Here is the relevant piece of the build log for the reference
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     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           .
           .
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 15, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: AST/HLSL/AppendStructuredBuffer-AST.hlsl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -internal-isystem /b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefix=EMPTY /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -internal-isystem /b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/20/include -nostdsysteminc -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -DEMPTY /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefix=EMPTY /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl
/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-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>:39:96: note: scanning from here
| |-ClassTemplateDecl 0xd061cd0 <<invalid sloc>> <invalid sloc> implicit AppendStructuredBuffer
                                                                                               ^
<stdin>:40:7: note: possible intended match here
| | |-TemplateTypeParmDecl 0xd061c30 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type
      ^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/AST/HLSL/AppendStructuredBuffer-AST.hlsl

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

Input was:
<<<<<<
           .
           .
           .
          34: | | `-FinalAttr 0xd05f508 <<invalid sloc>> Implicit final 
          35: | |-ClassTemplateDecl 0xd05f9f0 <<invalid sloc>> <invalid sloc> implicit RWStructuredBuffer 
          36: | | |-TemplateTypeParmDecl 0xd05f950 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
          37: | | `-CXXRecordDecl 0xd05f850 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class RWStructuredBuffer 
          38: | | `-FinalAttr 0xd05f8f8 <<invalid sloc>> Implicit final 
          39: | |-ClassTemplateDecl 0xd061cd0 <<invalid sloc>> <invalid sloc> implicit AppendStructuredBuffer 
next:15'0                                                                                                    X error: no match found
          40: | | |-TemplateTypeParmDecl 0xd061c30 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:15'1           ?                                                                                                     possible intended match
          41: | | `-CXXRecordDecl 0xd061b30 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class AppendStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          42: | | `-FinalAttr 0xd061bd8 <<invalid sloc>> Implicit final 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          43: | |-ClassTemplateDecl 0xd0620c0 <<invalid sloc>> <invalid sloc> implicit ConsumeStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          44: | | |-TemplateTypeParmDecl 0xd062020 <<invalid sloc>> <invalid sloc> typename depth 0 index 0 element_type 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          45: | | `-CXXRecordDecl 0xd061f20 <<invalid sloc>> <invalid sloc> implicit <undeserialized declarations> class ConsumeStructuredBuffer 
next:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           .
           .
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants