[webkit-changes] [WebKit/WebKit] dee031: [WGSL] Store reference struct node in the struct type
Tadeu Zagallo
noreply at github.com
Tue Mar 14 01:19:53 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dee031899a36fef4d80847330a06fc17a76a8b54
https://github.com/WebKit/WebKit/commit/dee031899a36fef4d80847330a06fc17a76a8b54
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-03-14 (Tue, 14 Mar 2023)
Changed paths:
M Source/WebGPU/WGSL/EntryPointRewriter.cpp
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/TypeStore.cpp
M Source/WebGPU/WGSL/TypeStore.h
M Source/WebGPU/WGSL/Types.cpp
M Source/WebGPU/WGSL/Types.h
Log Message:
-----------
[WGSL] Store reference struct node in the struct type
https://bugs.webkit.org/show_bug.cgi?id=253519
rdar://106364421
Reviewed by Myles C. Maxfield.
Simplify the usage of struct types in the entry point rewriter by storing a
pointer to the AST node in the type instead of just the name.
* Source/WebGPU/WGSL/EntryPointRewriter.cpp:
(WGSL::EntryPointRewriter::rewrite):
(WGSL::EntryPointRewriter::checkReturnType):
(WGSL::EntryPointRewriter::visit):
(WGSL::EntryPointRewriter::collectStructs): Deleted.
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/TypeStore.cpp:
(WGSL::TypeStore::structType):
* Source/WebGPU/WGSL/TypeStore.h:
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::dump const):
* Source/WebGPU/WGSL/Types.h:
Canonical link: https://commits.webkit.org/261620@main
More information about the webkit-changes
mailing list