[webkit-changes] [WebKit/WebKit] f46788: [WGSL] Add typing for unary expressions

Tadeu Zagallo noreply at github.com
Fri Mar 31 06:13:52 PDT 2023


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

  Changed paths:
    M Source/WebGPU/WGSL/Overload.h
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/TypeDeclarations.rb
    M Source/WebGPU/WGSL/generator/main.rb
    M Source/WebGPU/WGSL/tests/invalid/overload.wgsl
    M Source/WebGPU/WGSL/tests/valid/overload.wgsl

  Log Message:
  -----------
  [WGSL] Add typing for unary expressions
https://bugs.webkit.org/show_bug.cgi?id=254748
rdar://107424606

Reviewed by Myles C. Maxfield.

Make UnaryExpression use the existing overload resolution infrastructure. For
now, I only added declarations for unary minus, but I'll add more operators
as we go.

* Source/WebGPU/WGSL/Overload.h:
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/TypeDeclarations.rb:
* Source/WebGPU/WGSL/generator/main.rb:
* Source/WebGPU/WGSL/tests/invalid/overload.wgsl:
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:

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




More information about the webkit-changes mailing list