[webkit-changes] [WebKit/WebKit] 0efe03: [WGSL] Preserve binary operation precedence

Tadeu Zagallo noreply at github.com
Tue Apr 18 12:52:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0efe0345caa687a0ac9a5e914ce96b9de1ce29da
      https://github.com/WebKit/WebKit/commit/0efe0345caa687a0ac9a5e914ce96b9de1ce29da
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-04-18 (Tue, 18 Apr 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Tools/TestWebKitAPI/Tests/WGSL/MetalGenerationTests.cpp

  Log Message:
  -----------
  [WGSL] Preserve binary operation precedence
https://bugs.webkit.org/show_bug.cgi?id=255517
rdar://108136098

Reviewed by Mike Wyrzykowski.

Binary operations should be parenthesized when serializing in order
to preserve their precedence.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):

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




More information about the webkit-changes mailing list