[webkit-changes] [WebKit/WebKit] 844e05: [WGSL] Make AST type nodes arena allocated
Tadeu Zagallo
noreply at github.com
Fri May 5 12:59:10 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 844e05173dcb29fdbddc42c3e843d28962cba7a6
https://github.com/WebKit/WebKit/commit/844e05173dcb29fdbddc42c3e843d28962cba7a6
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-05-05 (Fri, 05 May 2023)
Changed paths:
M Source/WebGPU/WGSL/AST/ASTFunction.h
M Source/WebGPU/WGSL/AST/ASTTypeName.h
M Source/WebGPU/WGSL/AST/ASTVariable.h
M Source/WebGPU/WGSL/EntryPointRewriter.cpp
M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
M Source/WebGPU/WGSL/Parser.cpp
Log Message:
-----------
[WGSL] Make AST type nodes arena allocated
https://bugs.webkit.org/show_bug.cgi?id=256265
rdar://108849668
Reviewed by Dan Glastonbury.
Continue incrementally converting AST nodes to be arena allocated.
* Source/WebGPU/WGSL/AST/ASTFunction.h:
* Source/WebGPU/WGSL/AST/ASTTypeName.h:
(WGSL::AST::TypeName::resolvedType const):
(WGSL::AST::ArrayTypeName::maybeElementType const):
(WGSL::AST::ArrayTypeName::ArrayTypeName):
(WGSL::AST::NamedTypeName::name):
(WGSL::AST::ParameterizedTypeName::ParameterizedTypeName):
* Source/WebGPU/WGSL/AST/ASTVariable.h:
* Source/WebGPU/WGSL/EntryPointRewriter.cpp:
(WGSL::EntryPointRewriter::rewrite):
(WGSL::EntryPointRewriter::constructInputStruct):
(WGSL::EntryPointRewriter::materialize):
(WGSL::EntryPointRewriter::visit):
(WGSL::EntryPointRewriter::appendBuiltins):
* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::insertStructs):
(WGSL::RewriteGlobalVariables::insertParameters):
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseTypeName):
(WGSL::Parser<Lexer>::parseTypeNameAfterIdentifier):
(WGSL::Parser<Lexer>::parseArrayType):
(WGSL::Parser<Lexer>::parseVariableWithAttributes):
(WGSL::Parser<Lexer>::parseFunction):
Canonical link: https://commits.webkit.org/263732@main
More information about the webkit-changes
mailing list