commit | c25a748790c61d35b185fb2996875efaeb530662 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Thu May 09 13:46:16 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 09 13:46:16 2024 +0000 |
tree | 1162cf2ff623aed2a84fd980cf062d7c9f54621f | |
parent | 32c659822dd6d5863cf3929617ddbaf219a6bc45 [diff] |
[ir] Add Instruction::DetachResult() helper This removes an instruction result from an instruction and returns it. This makes it easier to move an instruction result to a new instruction, which should be more efficient than using `ReplaceAllUsesWith()` to update usages one at a time. Add overloads of a few IR Builder functions that take an InstructionResult so that the IR builder can be used with this pattern, instead of manually creating instructions with the allocator. Update many transforms to use this pattern. Change-Id: I19088816c0e715b59ea84ed1bdb092fdd2567fa6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/186565 Commit-Queue: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: 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.