dawn-cmake/src
Ben Clayton 3cdb8e3c3e reader/wgsl: Optimize tokens by using string_view
Each Token was making a copy of the `val_str_`, despite the token being a slice on the original source.

Bug: tint:1383
Change-Id: I17b2da8f986ba105853aa47afe21bcc75f140f8e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78320
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2022-01-27 14:48:46 +00:00
..
ast optimization: BlockAllocator: Actually allocate in blocks 2022-01-22 20:32:38 +00:00
benchmark test/benchmark: Add more shaders to the corpus 2022-01-21 22:38:16 +00:00
diagnostic Make all ast and sem pointers const 2021-10-19 18:38:54 +00:00
inspector validation: Require interpolate(flat) for integers 2022-01-25 01:01:39 +00:00
reader reader/wgsl: Optimize tokens by using string_view 2022-01-27 14:48:46 +00:00
resolver validation: Require interpolate(flat) for integers 2022-01-25 01:01:39 +00:00
sem Castable: Optimizations using bloomfilters 2022-01-24 21:07:20 +00:00
transform optimizations: Implement transform::ShouldRun() 2022-01-25 21:36:04 +00:00
utils Castable: Optimizations using bloomfilters 2022-01-24 21:07:20 +00:00
val Make HLSL validation run with same flags as Dawn 2021-12-07 14:40:47 +00:00
writer GLSL: clean up GLSL output whitespace generation. 2022-01-26 16:48:55 +00:00
BUILD.gn Castable: Optimizations using bloomfilters 2022-01-24 21:07:20 +00:00
CMakeLists.txt Make use of std::string_view when parsing 2022-01-25 17:15:37 +00:00
block_allocator.h optimization: BlockAllocator: Actually allocate in blocks 2022-01-22 20:32:38 +00:00
block_allocator_test.cc optimization: BlockAllocator: Actually allocate in blocks 2022-01-22 20:32:38 +00:00
castable.cc Castable: Optimizations using bloomfilters 2022-01-24 21:07:20 +00:00
castable.h Castable: Optimizations using bloomfilters 2022-01-24 21:07:20 +00:00
castable_test.cc castable: Infer Is() TO type from predicate 2021-08-23 15:16:42 +00:00
clone_context.cc optimizations: Implement transform::ShouldRun() 2022-01-25 21:36:04 +00:00
clone_context.h Castable: Optimizations using bloomfilters 2022-01-24 21:07:20 +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 ast: Rename ImageFormat to TexelFormat 2022-01-06 17:20:22 +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 ast: Rename ImageFormat to TexelFormat 2022-01-06 17:20:22 +00:00
intrinsics.def intrinsics: Add degrees() and radians() 2022-01-05 20:11:00 +00:00
program.cc optimizations: Implement transform::ShouldRun() 2022-01-25 21:36:04 +00:00
program.h optimizations: Implement transform::ShouldRun() 2022-01-25 21:36:04 +00:00
program_builder.cc optimizations: Implement transform::ShouldRun() 2022-01-25 21:36:04 +00:00
program_builder.h optimizations: Implement transform::ShouldRun() 2022-01-25 21:36:04 +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 Make use of std::string_view when parsing 2022-01-25 17:15:37 +00:00
source.h Make use of std::string_view when parsing 2022-01-25 17:15:37 +00:00
source_test.cc Make use of std::string_view when parsing 2022-01-25 17:15: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