[webkit-changes] [WebKit/WebKit] 965666: [WGSL] Save inferred types in the AST

Tadeu Zagallo noreply at github.com
Mon Mar 6 09:32:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 965666e1f9dd69a52efd9c162b325be68bea104c
      https://github.com/WebKit/WebKit/commit/965666e1f9dd69a52efd9c162b325be68bea104c
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-03-06 (Mon, 06 Mar 2023)

  Changed paths:
    M Source/WebGPU/WGSL/AST/ASTExpression.h
    M Source/WebGPU/WGSL/AST/ASTTypeName.h
    M Source/WebGPU/WGSL/TypeCheck.cpp

  Log Message:
  -----------
  [WGSL] Save inferred types in the AST
https://bugs.webkit.org/show_bug.cgi?id=253324
<rdar://problem/106199533>

Reviewed by Myles C. Maxfield.

Other phases depend on the type information generated during type
checking, so we store in the AST so they can use it later.

* Source/WebGPU/WGSL/AST/ASTExpression.h:
(WGSL::AST::Expression::inferredType const):
* Source/WebGPU/WGSL/AST/ASTTypeName.h:
(WGSL::AST::TypeName::resolvedType const):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::infer):
(WGSL::TypeChecker::resolve):

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




More information about the webkit-changes mailing list