dawn-cmake/src
Ben Clayton c00cc43e53 reader/spirv: Optimize FindUnusedDerivedName()
Store the last search id suffix so that we don't research the same suffixes over and over again.

Bug: oss-fuzz:38098
Bug: oss-fuzz:38606
Bug: oss-fuzz:39300
Bug: oss-fuzz:40339
Change-Id: I295147d91bb9f805170c49114267033bbb781e4d
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/75427
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2022-01-05 20:42:50 +00:00
..
ast Document that ast::Variable::type can be null 2021-12-10 21:51:05 +00:00
diagnostic Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
inspector Remove {ast,sem}::Struct::IsBlockDecorated() 2021-12-09 15:45:03 +00:00
reader reader/spirv: Optimize FindUnusedDerivedName() 2022-01-05 20:42:50 +00:00
resolver wgsl: Replace 'elseif' with 'else if' 2022-01-04 20:06:49 +00:00
sem intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
transform HLSL: work around FXC failures when dynamically indexing arrays in structs 2021-12-13 15:55:11 +00:00
utils Add cstddef for definition of size_t 2021-12-13 21:14:48 +00:00
val Make HLSL validation run with same flags as Dawn 2021-12-07 14:40:47 +00:00
writer intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
BUILD.gn HLSL: work around FXC failures when dynamically indexing arrays in structs 2021-12-13 15:55:11 +00:00
CMakeLists.txt wgsl: Replace 'elseif' with 'else if' 2022-01-04 20:06:49 +00:00
block_allocator.h Remove sem::AccessControl 2021-05-14 17:51:13 +00:00
block_allocator_test.cc Add tint::BlockAllocator<T> 2021-01-21 15:30:10 +00:00
castable.cc Pull Is() out of castable and into a new TypeInfo 2021-03-02 20:30:08 +00:00
castable.h traits: Add SignatureOf helper 2021-11-11 16:07:12 +00:00
castable_test.cc castable: Infer Is() TO type from predicate 2021-08-23 15:16:42 +00:00
clone_context.cc utils: Add Lookup() 2021-11-23 18:37:37 +00:00
clone_context.h traits: Add SignatureOf helper 2021-11-11 16:07:12 +00:00
clone_context_test.cc Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
debug.cc diag: Add System enumerator to all diagnostics 2021-06-24 11:27:36 +00:00
debug.h Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
debug_test.cc diag: Add System enumerator to all diagnostics 2021-06-24 11:27:36 +00:00
demangler.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
demangler.h Simplify calls to ast::Node::[to_]str() 2021-01-29 11:22:40 +00:00
demangler_test.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
intrinsic_table.cc utils: Add Lookup() 2021-11-23 18:37:37 +00:00
intrinsic_table.h IntrinsicTable: De-duplicate returned Intrinsics 2021-07-15 20:34:21 +00:00
intrinsic_table.inl intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
intrinsic_table.inl.tmpl IntrinsicTable: remove double underscores 2021-11-22 15:24:16 +00:00
intrinsic_table_test.cc Cleanup intrinsic table tests 2021-11-04 19:36:25 +00:00
intrinsics.def intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
program.cc Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
program.h Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
program_builder.cc ProgramBuilder: Don't wrap call-exprs with a call-stmts 2021-11-12 13:20:46 +00:00
program_builder.h Fix FXC compile errors on modulo by zero 2021-12-22 15:02:09 +00:00
program_builder_test.cc ast: Keep style consistent 2021-10-15 17:33:10 +00:00
program_id.cc ProgramID: Move hot code out of template function 2021-10-15 13:46:50 +00:00
program_id.h ProgramID: Move hot code out of template function 2021-10-15 13:46:50 +00:00
program_test.cc ast: Remove to_str() and type_name() 2021-10-14 21:25:49 +00:00
scope_stack.h resolver: Add dependency-graph analysis 2021-11-22 11:44:57 +00:00
scope_stack_test.cc resolver: Add dependency-graph analysis 2021-11-22 11:44:57 +00:00
source.cc Resolver: Check that every AST node is reached once 2021-04-19 19:16:12 +00:00
source.h wgsl parser: use new TypesBuilder factory functions, and set Source for ast::Type nodes 2021-04-27 17:32:37 +00:00
symbol.cc Add TINT_SYMBOL_STORE_DEBUG_NAME option to help debugging the AST 2021-12-07 14:43:17 +00:00
symbol.h Add TINT_SYMBOL_STORE_DEBUG_NAME option to help debugging the AST 2021-12-07 14:43:17 +00:00
symbol_table.cc Add TINT_SYMBOL_STORE_DEBUG_NAME option to help debugging the AST 2021-12-07 14:43:17 +00:00
symbol_table.h Fix TextGenerator::UniqueIdentifier() failing with empty string arg 2021-06-29 22:07:05 +00:00
symbol_table_test.cc Fix TextGenerator::UniqueIdentifier() failing with empty string arg 2021-06-29 22:07:05 +00:00
symbol_test.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
test_main.cc Fix build when TINT_BUILD_[WGSL|SPV|MSL|HLSL]_[READER|WRITER] are toggled off 2021-09-03 14:16:56 +00:00
traits.h traits: Add SignatureOf helper 2021-11-11 16:07:12 +00:00
traits_test.cc traits: Add SignatureOf helper 2021-11-11 16:07:12 +00:00