commit | b0778f6d99b3742372f474b23c09313c7966269e | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Mon Jun 16 11:50:27 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 16 11:50:27 2025 -0700 |
tree | ff711b13c400a23693160f4bb3588e369ef9f617 | |
parent | 71a0a7c91e7511ccff85e365e5787626f21bc6eb [diff] |
Add simple dead code eliminator transform. This CL adds a new transform, used by the SPIR-V Reader lower pass, to do a simple dead code elimination pass over the module. To start this pass will remove: * Unused functions. * Unused module scoped `__in`, `__out` and `private` vars. The SPIR-V IR reader pass then uses this to remove any unused Input/Output variables from the program. Bug: 42250952 Change-Id: I9022248702cde50c020dc7724a609333172604b3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/246694 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.