[webkit-changes] [WebKit/WebKit] dd53a2: [WGSL] Add support for function call statements
Tadeu Zagallo
noreply at github.com
Mon Sep 18 01:38:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dd53a2fe4da2dea96b6b3e3bafd327f816e2e52c
https://github.com/WebKit/WebKit/commit/dd53a2fe4da2dea96b6b3e3bafd327f816e2e52c
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-09-18 (Mon, 18 Sep 2023)
Changed paths:
M Source/WebGPU/WGSL/AST/AST.h
M Source/WebGPU/WGSL/AST/ASTCallExpression.h
A Source/WebGPU/WGSL/AST/ASTCallStatement.h
M Source/WebGPU/WGSL/AST/ASTForward.h
M Source/WebGPU/WGSL/AST/ASTStringDumper.cpp
M Source/WebGPU/WGSL/AST/ASTStringDumper.h
M Source/WebGPU/WGSL/AST/ASTVisitor.cpp
M Source/WebGPU/WGSL/AST/ASTVisitor.h
M Source/WebGPU/WGSL/Parser.cpp
M Source/WebGPU/WGSL/ParserPrivate.h
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/tests/valid/reordering.wgsl
Log Message:
-----------
[WGSL] Add support for function call statements
https://bugs.webkit.org/show_bug.cgi?id=261599
rdar://115547291
Reviewed by Dan Glastonbury.
Extend the parser to allow calls as statements as well as expressions.
* Source/WebGPU/WGSL/AST/AST.h:
* Source/WebGPU/WGSL/AST/ASTCallExpression.h:
* Source/WebGPU/WGSL/AST/ASTCallStatement.h: Copied from Source/WebGPU/WGSL/AST/ASTCallExpression.h.
* Source/WebGPU/WGSL/AST/ASTForward.h:
* Source/WebGPU/WGSL/AST/ASTStringDumper.cpp:
(WGSL::AST::StringDumper::visit):
* Source/WebGPU/WGSL/AST/ASTStringDumper.h:
* Source/WebGPU/WGSL/AST/ASTVisitor.cpp:
(WGSL::AST::Visitor::visit):
* Source/WebGPU/WGSL/AST/ASTVisitor.h:
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseStatement):
(WGSL::Parser<Lexer>::parseVariableUpdatingStatement):
* Source/WebGPU/WGSL/ParserPrivate.h:
* Source/WebGPU/WGSL/tests/valid/reordering.wgsl:
Canonical link: https://commits.webkit.org/268076@main
More information about the webkit-changes
mailing list