dawn-cmake/fuzzers/tint_spirv_tools_fuzzer
Vasyl Teliman 0b3611b8c8 Add spirv-tools fuzzer
This change adds a new tint fuzzer that uses SPIRV-Tools to fuzz SPIR-V binaries.
The fuzzer works on a corpus of SPIR-V shaders. For each shader from the corpus it uses
one of `spirv-fuzz`, `spirv-reduce` or `spirv-opt` to mutate and then runs the shader through
the Tint compiler in two steps:
- Converts the mutated shader to WGSL.
- Converts WGSL to some target language specified in the CLI arguments.

The list of all supported CLI arguments and their description is in the cli.h file.

Change-Id: I95c0741b78ccc600dd9a73c371d520bdf7814352
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/41945
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Vasyl Teliman <vasniktel@gmail.com>
Reviewed-by: David Neto <dneto@google.com>
Reviewed-by: Alastair Donaldson <allydonaldson@googlemail.com>
2021-06-24 18:10:46 +00:00
..
CMakeLists.txt Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
cli.cc Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
cli.h Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
fuzzer.cc Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
mutator.cc Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
mutator.h Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
mutator_cache.cc Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
mutator_cache.h Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
mutator_debugger.cc Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
spirv_fuzz_mutator.cc Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
spirv_fuzz_mutator.h Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
spirv_opt_mutator.cc Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
spirv_opt_mutator.h Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
spirv_reduce_mutator.cc Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
spirv_reduce_mutator.h Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
util.cc Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00
util.h Add spirv-tools fuzzer 2021-06-24 18:10:46 +00:00