[webkit-changes] [WebKit/WebKit] 175971: [WGSL] Serialize unsigned literals with suffix

Tadeu Zagallo noreply at github.com
Wed Jun 14 01:45:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1759715e89bc1e69e397107df86d9110392a1698
      https://github.com/WebKit/WebKit/commit/1759715e89bc1e69e397107df86d9110392a1698
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-06-14 (Wed, 14 Jun 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/tests/valid/packing.wgsl
    M Source/WebGPU/WGSL/tests/valid/type-promotion.wgsl

  Log Message:
  -----------
  [WGSL] Serialize unsigned literals with suffix
https://bugs.webkit.org/show_bug.cgi?id=258030
rdar://110713183

Reviewed by Mike Wyrzykowski.

We serialize array and struct constructors with initializer lists, which disallow
implicit narrowing, so we should emit literals with the correct suffix.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/tests/valid/packing.wgsl:
* Source/WebGPU/WGSL/tests/valid/type-promotion.wgsl:

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




More information about the webkit-changes mailing list