commit | e965bd3c9fbe4d2152480287d0e4c99759b0b23c | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Wed Sep 04 16:04:34 2024 +0000 |
committer | James Price <jrprice@google.com> | Wed Sep 04 16:04:34 2024 +0000 |
tree | 016630b78ab4ae23ee92d0d32d14e962064158d4 | |
parent | 68804ca7cd9d94f6a54441fb0c94a1151fc10282 [diff] |
[ir] Emit unused side-effecting expressions When function calls are used by instructions that are themselves unused, we were dropping the whole expression chain and never emitting the function call at all. Fix this in `ValueToLet` by making sure that all unused expressions with side effects are associated with an instruction that will become a statement (either a `call` or a `let`). Fixed: 342650077 Fixed: 347690530 Fixed: 356419165 Change-Id: Ib78e31a4c32ddc02aa818316b00078ff80d961f8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/205116 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: James Price <jrprice@google.com>
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.