dawn-cmake/fuzzers/tint_ast_fuzzer
Ben Clayton b29396e472 fuzzers: Don't pointlessly format diagnostics
Fuzzers like to generate silly long source, and formatting large spans of these can take considerable time.
Only format the diagnostic if it is going to be displayed.

Significantly speeds up some fuzzing tests, fixing some timeouts.

Also add a minor optimization to the formatter repeat() implementation.

Fixed: chromium:1230313
Change-Id: Ib1f6ac0b31010f86cb7f4e1432dc703ecbe52cb0
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58841
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
2021-07-20 14:39:50 +00:00
..
mutation_finders Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mutations fuzzers: Switch AST fuzzers to new generator API 2021-07-14 12:49:32 +00:00
protobufs fuzzers: Disable clang warning for clang 12 2021-07-13 20:04:51 +00:00
BUILD.gn Add gn build support for spirv-tools + AST fuzzers 2021-07-16 20:56:55 +00:00
CMakeLists.txt Implement AST fuzzer 2021-07-13 12:01:25 +00:00
cli.cc Fix AST fuzzer message serialization 2021-07-16 17:50:04 +00:00
cli.h Fix AST fuzzer message serialization 2021-07-16 17:50:04 +00:00
fuzzer.cc fuzzers: Don't pointlessly format diagnostics 2021-07-20 14:39:50 +00:00
mt_rng.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mt_rng.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mutation.cc fuzzers: Fix function not returning a value warning 2021-07-19 09:35:19 +00:00
mutation.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mutation_finder.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mutation_finder.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mutator.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mutator.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
node_id_map.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
node_id_map.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
probability_context.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
probability_context.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
random_number_generator.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
random_number_generator.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
util.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00