[webkit-changes] [WebKit/WebKit] 467cdc: [WGSL] Add the type implementations to the type ch...

Tadeu Zagallo noreply at github.com
Fri Feb 3 00:42:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 467cdc607241bf1ea213a6d222761095c056f1f1
      https://github.com/WebKit/WebKit/commit/467cdc607241bf1ea213a6d222761095c056f1f1
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-02-03 (Fri, 03 Feb 2023)

  Changed paths:
    M Source/WebGPU/WGSL/AST/ASTStringDumper.cpp
    M Source/WebGPU/WGSL/AST/ASTStringDumper.h
    M Source/WebGPU/WGSL/AST/ASTTypeName.h
    M Source/WebGPU/WGSL/TypeCheck.cpp
    A Source/WebGPU/WGSL/Types.cpp
    A Source/WebGPU/WGSL/Types.h
    M Source/WebGPU/WebGPU.xcodeproj/project.pbxproj

  Log Message:
  -----------
  [WGSL] Add the type implementations to the type checker
https://bugs.webkit.org/show_bug.cgi?id=251611
<rdar://problem/104966774>

Reviewed by Myles C. Maxfield.

The original commit only had a placeholder empty `Type` struct. This actually
adds the type definitions that we'll need to start implement the type checking.

* Source/WebGPU/WGSL/AST/ASTStringDumper.cpp:
(WGSL::AST::dumpNode): Deleted.
* Source/WebGPU/WGSL/AST/ASTStringDumper.h:
(WGSL::AST::dumpNode):
* Source/WebGPU/WGSL/AST/ASTTypeName.h:
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::TypeChecker):
(WGSL::TypeChecker::visit):
(WGSL::TypeChecker::infer):
(WGSL::TypeChecker::allocateType):
* Source/WebGPU/WGSL/Types.cpp: Added.
(WGSL::printInternal):
* Source/WebGPU/WGSL/Types.h: Added.
* Source/WebGPU/WebGPU.xcodeproj/project.pbxproj:

Canonical link: https://commits.webkit.org/259805@main




More information about the webkit-changes mailing list