dawn-cmake/src/utils
Ben Clayton 1b8d9f227b CloneContext: Don't create named symbols from unnamed
Registering a new Symbol with the NameFor() of the source symbol creates
a new *named* symbol. When mixing these with unnamed symbols we can have
collisions.

Update CloneContext::Clone(Symbol) to properly clone unnamed symbols.

Update (most) the transforms to ctx.Clone() the symbols instead of
registering the names directly.

Fix up the tests where the symbol IDs have changed.

Note: We can still have symbol collisions if a program is authored with
identifiers like 'tint_symbol_3'. This will be fixed up in a later
change.

Change-Id: I0ce559644da3d60e1060f2eef185fa55ae284521
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/46866
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
2021-04-07 11:16:01 +00:00
..
command.h Add tint_unittest flags for enabling DXC validation 2021-02-19 12:39:25 +00:00
command_other.cc Add tint::Command 2021-02-18 15:49:08 +00:00
command_posix.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
command_test.cc Add tint::Command 2021-02-18 15:49:08 +00:00
command_windows.cc Add tint::Command 2021-02-18 15:49:08 +00:00
get_or_create.h CloneContext: Don't create named symbols from unnamed 2021-04-07 11:16:01 +00:00
get_or_create_test.cc CloneContext: Don't create named symbols from unnamed 2021-04-07 11:16:01 +00:00
hash.h Add utils/hash.h 2021-03-29 15:13:55 +00:00
hash_test.cc Add utils/hash.h 2021-03-29 15:13:55 +00:00
math.h Add src/utils/math.h 2021-03-15 13:37:41 +00:00
math_test.cc Add src/utils/math.h 2021-03-15 13:37:41 +00:00
tmpfile.h Add tint::TmpFile 2021-02-18 15:39:00 +00:00
tmpfile_other.cc Add tint::TmpFile 2021-02-18 15:39:00 +00:00
tmpfile_posix.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
tmpfile_test.cc Add tint::TmpFile 2021-02-18 15:39:00 +00:00
tmpfile_windows.cc Add tint::TmpFile 2021-02-18 15:39:00 +00:00
unique_vector.h Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
unique_vector_test.cc Add utils/unique_vector.h from TypeDeterminer 2021-02-17 13:10:49 +00:00