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.