[webkit-changes] [WebKit/WebKit] c1fb4e: [WGSL] Add command line tool to run the compiler
Tadeu Zagallo
noreply at github.com
Tue Mar 21 02:11:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c1fb4e9f678eb1aacf9b056070aced47d70502f7
https://github.com/WebKit/WebKit/commit/c1fb4e9f678eb1aacf9b056070aced47d70502f7
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-03-21 (Tue, 21 Mar 2023)
Changed paths:
A Source/WebGPU/Configurations/wgslc.xcconfig
A Source/WebGPU/WGSL/wgslc.cpp
M Source/WebGPU/WebGPU.xcodeproj/project.pbxproj
M Source/WebGPU/WebGPU.xcodeproj/xcshareddata/xcschemes/WebGPU.xcscheme
Log Message:
-----------
[WGSL] Add command line tool to run the compiler
https://bugs.webkit.org/show_bug.cgi?id=253892
rdar://106708690
Reviewed by Mike Wyrzykowski.
Add a `wgslc` command line executable to invoke the compiler. This will be used to
add compiler tests without requiring the rest of WebGPU.
* Source/WebGPU/Configurations/wgslc.xcconfig: Added.
* Source/WebGPU/WGSL/wgslc.cpp: Added.
(printUsageStatement):
(CommandLine::CommandLine):
(CommandLine::file const):
(CommandLine::entrypoint const):
(CommandLine::dumpASTAfterCheck const):
(CommandLine::dumpASTAtEnd const):
(CommandLine::dumpGeneratedCode const):
(CommandLine::parseArguments):
(runWGSL):
(main):
* Source/WebGPU/WebGPU.xcodeproj/project.pbxproj:
* Source/WebGPU/WebGPU.xcodeproj/xcshareddata/xcschemes/WebGPU.xcscheme:
Canonical link: https://commits.webkit.org/261911@main
More information about the webkit-changes
mailing list