[webkit-changes] [WebKit/WebKit] dd1161: [WGSL] Add support for increment and decrement sta...

Tadeu Zagallo noreply at github.com
Fri May 26 03:10:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dd1161055f1ccb14b69ccf0d940ca3dc10d5818b
      https://github.com/WebKit/WebKit/commit/dd1161055f1ccb14b69ccf0d940ca3dc10d5818b
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    A Source/WebGPU/WGSL/AST/ASTDecrementIncrementStatement.cpp
    M Source/WebGPU/WGSL/AST/ASTDecrementIncrementStatement.h
    M Source/WebGPU/WGSL/AST/ASTStringDumper.cpp
    M Source/WebGPU/WGSL/AST/ASTStringDumper.h
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/Parser.cpp
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/tests/invalid/references.wgsl
    M Source/WebGPU/WGSL/tests/valid/references.wgsl
    M Source/WebGPU/WebGPU.xcodeproj/project.pbxproj

  Log Message:
  -----------
  [WGSL] Add support for increment and decrement statements
https://bugs.webkit.org/show_bug.cgi?id=257315
rdar://109823828

Reviewed by Mike Wyrzykowski.

Add support for `x++` and `x--` statements

* Source/WebGPU/WGSL/AST/ASTDecrementIncrementStatement.cpp: Copied from Source/WebGPU/WGSL/AST/ASTDecrementIncrementStatement.h.
(WGSL::AST::printInternal):
* Source/WebGPU/WGSL/AST/ASTDecrementIncrementStatement.h:
* Source/WebGPU/WGSL/AST/ASTStringDumper.cpp:
(WGSL::AST::StringDumper::visit):
* Source/WebGPU/WGSL/AST/ASTStringDumper.h:
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseStatement):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/invalid/references.wgsl:
* Source/WebGPU/WGSL/tests/valid/references.wgsl:
* Source/WebGPU/WebGPU.xcodeproj/project.pbxproj:

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




More information about the webkit-changes mailing list