Ben Clayton
046abc08e8
tint/writer: Replace use of strings for cache keys
...
Concatenating strings to use for cache keys is horribly inefficent and very error prone.
Add a UnorderedKeyWrapper helper to allow types to be used as a unordered_map and unordered_set key. Use this for the type_constructor_to_id_ map.
Produces SPIR-V with some duplicate SPIR-V instructions for constructors removed.
Change-Id: Ib072d485ca28bb07f03e979c133cdce1f69ee482
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88300
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
2022-04-28 13:08:22 +00:00
..
2022-04-08 08:33:28 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-04-28 13:08:22 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-04-28 13:08:22 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-02-21 15:19:07 +00:00
2022-03-28 14:31:22 +00:00