[webkit-changes] [WebKit/WebKit] 45a538: [WGSL] Add reference types to the type system
Tadeu Zagallo
noreply at github.com
Wed May 24 07:57:07 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 45a538c6c5eb61cd66820a9027fe2e837bfff21e
https://github.com/WebKit/WebKit/commit/45a538c6c5eb61cd66820a9027fe2e837bfff21e
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-05-24 (Wed, 24 May 2023)
Changed paths:
M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.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] Add reference types to the type system
https://bugs.webkit.org/show_bug.cgi?id=257220
rdar://109731695
Reviewed by Myles C. Maxfield.
Represent reference types in the type system and use it in the places we
currently instantiate `AST::ReferenceTypeName`.
* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::visitCallee):
(WGSL::RewriteGlobalVariables::insertStructs):
(WGSL::RewriteGlobalVariables::insertMaterializations):
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeStore.cpp:
(WGSL::TypeStore::referenceType):
* Source/WebGPU/WGSL/TypeStore.h:
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::dump const):
(WGSL::conversionRank):
(WGSL::Type::size const):
(WGSL::Type::alignment const):
(WTF::printInternal):
* Source/WebGPU/WGSL/Types.h:
Canonical link: https://commits.webkit.org/264474@main
More information about the webkit-changes
mailing list