[webkit-changes] [WebKit/WebKit] 342939: [WGSL] Loop statement is not implemented - https:/...
Tadeu Zagallo
noreply at github.com
Thu Nov 23 01:59:29 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 342939b92884884984384dd3b83a085ebbbb5562
https://github.com/WebKit/WebKit/commit/342939b92884884984384dd3b83a085ebbbb5562
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-11-23 (Thu, 23 Nov 2023)
Changed paths:
M Source/WebGPU/WGSL/AST/ASTForward.h
M Source/WebGPU/WGSL/AST/ASTLoopStatement.h
M Source/WebGPU/WGSL/AST/ASTVisitor.cpp
M Source/WebGPU/WGSL/AST/ASTVisitor.h
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
M Source/WebGPU/WGSL/Parser.cpp
M Source/WebGPU/WGSL/ParserPrivate.h
M Source/WebGPU/WGSL/TypeCheck.cpp
A Source/WebGPU/WGSL/tests/valid/loop.wgsl
Log Message:
-----------
[WGSL] Loop statement is not implemented - https://www.w3.org/TR/WGSL/#loop-statement
https://bugs.webkit.org/show_bug.cgi?id=265012
rdar://118552186
Reviewed by Mike Wyrzykowski.
Add support for loop statements, including continuing and break-if.
* Source/WebGPU/WGSL/AST/ASTForward.h:
* Source/WebGPU/WGSL/AST/ASTLoopStatement.h:
* Source/WebGPU/WGSL/AST/ASTVisitor.cpp:
(WGSL::AST::Visitor::visit):
* Source/WebGPU/WGSL/AST/ASTVisitor.h:
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
(WGSL::Metal::FunctionDefinitionWriter::visitStatements):
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseStatement):
(WGSL::Parser<Lexer>::parseLoopStatement):
* Source/WebGPU/WGSL/ParserPrivate.h:
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/valid/loop.wgsl: Added.
Canonical link: https://commits.webkit.org/271071@main
More information about the webkit-changes
mailing list