Home
last modified time | relevance | path

Searched refs:FuzzingTarget (Results 1 – 24 of 24) sorted by relevance

/third_party/skia/third_party/externals/tint/fuzzers/tint_regex_fuzzer/
Dcli.h25 enum class FuzzingTarget { enum
34 inline FuzzingTarget operator|(FuzzingTarget a, FuzzingTarget b) {
35 return static_cast<FuzzingTarget>(static_cast<int>(a) | static_cast<int>(b));
38 inline FuzzingTarget operator&(FuzzingTarget a, FuzzingTarget b) {
39 return static_cast<FuzzingTarget>(static_cast<int>(a) & static_cast<int>(b));
46 FuzzingTarget fuzzing_target = FuzzingTarget::kAll;
Dcli.cc56 bool ParseFuzzingTarget(const char* value, FuzzingTarget* out) { in ParseFuzzingTarget()
58 *out = FuzzingTarget::kWgsl; in ParseFuzzingTarget()
60 *out = FuzzingTarget::kSpv; in ParseFuzzingTarget()
62 *out = FuzzingTarget::kMsl; in ParseFuzzingTarget()
64 *out = FuzzingTarget::kHlsl; in ParseFuzzingTarget()
82 auto result = FuzzingTarget::kNone; in ParseCliParams()
86 auto tmp = FuzzingTarget::kNone; in ParseCliParams()
93 if (result == FuzzingTarget::kNone) { in ParseCliParams()
Dfuzzer.cc125 FuzzingTarget fuzzing_target; in LLVMFuzzerTestOneInput()
130 Target targets[] = {{FuzzingTarget::kWgsl, OutputFormat::kWGSL, "WGSL"}, in LLVMFuzzerTestOneInput()
131 {FuzzingTarget::kHlsl, OutputFormat::kHLSL, "HLSL"}, in LLVMFuzzerTestOneInput()
132 {FuzzingTarget::kMsl, OutputFormat::kMSL, "MSL"}, in LLVMFuzzerTestOneInput()
133 {FuzzingTarget::kSpv, OutputFormat::kSpv, "SPV"}}; in LLVMFuzzerTestOneInput()
Dtint_regex_msl_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kMsl; in OverrideCliParams()
Dtint_regex_hlsl_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kHlsl; in OverrideCliParams()
Dtint_regex_wgsl_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kWgsl; in OverrideCliParams()
Dtint_regex_spv_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kSpv; in OverrideCliParams()
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/
Dcli.h25 enum class FuzzingTarget { enum
34 inline FuzzingTarget operator|(FuzzingTarget a, FuzzingTarget b) {
35 return static_cast<FuzzingTarget>(static_cast<int>(a) | static_cast<int>(b));
38 inline FuzzingTarget operator&(FuzzingTarget a, FuzzingTarget b) {
39 return static_cast<FuzzingTarget>(static_cast<int>(a) & static_cast<int>(b));
54 FuzzingTarget fuzzing_target = FuzzingTarget::kAll;
Dcli.cc87 bool ParseFuzzingTarget(const char* value, FuzzingTarget* out) { in ParseFuzzingTarget()
89 *out = FuzzingTarget::kWgsl; in ParseFuzzingTarget()
91 *out = FuzzingTarget::kSpv; in ParseFuzzingTarget()
93 *out = FuzzingTarget::kMsl; in ParseFuzzingTarget()
95 *out = FuzzingTarget::kHlsl; in ParseFuzzingTarget()
123 auto result = FuzzingTarget::kNone; in ParseCliParams()
127 auto tmp = FuzzingTarget::kNone; in ParseCliParams()
134 if (result == FuzzingTarget::kNone) { in ParseCliParams()
Dfuzzer.cc97 FuzzingTarget fuzzing_target; in LLVMFuzzerTestOneInput()
102 Target targets[] = {{FuzzingTarget::kWgsl, OutputFormat::kWGSL, "WGSL"}, in LLVMFuzzerTestOneInput()
103 {FuzzingTarget::kHlsl, OutputFormat::kHLSL, "HLSL"}, in LLVMFuzzerTestOneInput()
104 {FuzzingTarget::kMsl, OutputFormat::kMSL, "MSL"}, in LLVMFuzzerTestOneInput()
105 {FuzzingTarget::kSpv, OutputFormat::kSpv, "SPV"}}; in LLVMFuzzerTestOneInput()
Dtint_ast_wgsl_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kWgsl; in OverrideCliParams()
Dtint_ast_msl_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kMsl; in OverrideCliParams()
Dtint_ast_spv_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kSpv; in OverrideCliParams()
Dtint_ast_hlsl_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kHlsl; in OverrideCliParams()
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/
Dcli.h48 enum class FuzzingTarget { enum
57 inline FuzzingTarget operator|(FuzzingTarget a, FuzzingTarget b) {
58 return static_cast<FuzzingTarget>(static_cast<int>(a) | static_cast<int>(b));
61 inline FuzzingTarget operator&(FuzzingTarget a, FuzzingTarget b) {
62 return static_cast<FuzzingTarget>(static_cast<int>(a) & static_cast<int>(b));
115 FuzzingTarget fuzzing_target = FuzzingTarget::kAll;
Dcli.cc271 bool ParseFuzzingTarget(const char* param, FuzzingTarget* out) { in ParseFuzzingTarget()
273 *out = FuzzingTarget::kWgsl; in ParseFuzzingTarget()
275 *out = FuzzingTarget::kSpv; in ParseFuzzingTarget()
277 *out = FuzzingTarget::kMsl; in ParseFuzzingTarget()
279 *out = FuzzingTarget::kHlsl; in ParseFuzzingTarget()
381 auto result = FuzzingTarget::kNone; in ParseFuzzerCliParams()
385 auto tmp = FuzzingTarget::kNone; in ParseFuzzerCliParams()
392 if (result == FuzzingTarget::kNone) { in ParseFuzzerCliParams()
Dfuzzer.cc237 std::pair<FuzzingTarget, OutputFormat> targets[] = { in LLVMFuzzerTestOneInput()
238 {FuzzingTarget::kHlsl, OutputFormat::kHLSL}, in LLVMFuzzerTestOneInput()
239 {FuzzingTarget::kMsl, OutputFormat::kMSL}, in LLVMFuzzerTestOneInput()
240 {FuzzingTarget::kSpv, OutputFormat::kSpv}, in LLVMFuzzerTestOneInput()
241 {FuzzingTarget::kWgsl, OutputFormat::kWGSL}}; in LLVMFuzzerTestOneInput()
Dtint_spirv_tools_wgsl_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kWgsl; in OverrideCliParams()
Dtint_spirv_tools_spv_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kSpv; in OverrideCliParams()
Dtint_spirv_tools_msl_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kMsl; in OverrideCliParams()
Dtint_spirv_tools_hlsl_writer_fuzzer.cc25 assert(cli_params.fuzzing_target == FuzzingTarget::kAll && in OverrideCliParams()
28 cli_params.fuzzing_target = FuzzingTarget::kHlsl; in OverrideCliParams()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/fuzz/
Dfuzz.cpp42 enum class FuzzingTarget { kSpirv, kWgsl }; enum
216 FuzzingTarget* fuzzing_target, spvtools::FuzzerOptions* fuzzer_options, in ParseFlags()
281 *fuzzing_target = FuzzingTarget::kSpirv; in ParseFlags()
283 *fuzzing_target = FuzzingTarget::kWgsl; in ParseFlags()
575 FuzzingTarget fuzzing_target, std::vector<uint32_t>* binary_out, in Fuzz()
611 assert((fuzzing_target == FuzzingTarget::kWgsl || in Fuzz()
612 fuzzing_target == FuzzingTarget::kSpirv) && in Fuzz()
620 fuzzing_target == FuzzingTarget::kWgsl); in Fuzz()
717 auto fuzzing_target = FuzzingTarget::kSpirv; in main()
/third_party/spirv-tools/tools/fuzz/
Dfuzz.cpp42 enum class FuzzingTarget { kSpirv, kWgsl }; enum
216 FuzzingTarget* fuzzing_target, spvtools::FuzzerOptions* fuzzer_options, in ParseFlags()
281 *fuzzing_target = FuzzingTarget::kSpirv; in ParseFlags()
283 *fuzzing_target = FuzzingTarget::kWgsl; in ParseFlags()
575 FuzzingTarget fuzzing_target, std::vector<uint32_t>* binary_out, in Fuzz()
611 assert((fuzzing_target == FuzzingTarget::kWgsl || in Fuzz()
612 fuzzing_target == FuzzingTarget::kSpirv) && in Fuzz()
620 fuzzing_target == FuzzingTarget::kWgsl); in Fuzz()
704 auto fuzzing_target = FuzzingTarget::kSpirv; in main()
/third_party/skia/third_party/externals/spirv-tools/tools/fuzz/
Dfuzz.cpp42 enum class FuzzingTarget { kSpirv, kWgsl }; enum
216 FuzzingTarget* fuzzing_target, spvtools::FuzzerOptions* fuzzer_options, in ParseFlags()
281 *fuzzing_target = FuzzingTarget::kSpirv; in ParseFlags()
283 *fuzzing_target = FuzzingTarget::kWgsl; in ParseFlags()
575 FuzzingTarget fuzzing_target, std::vector<uint32_t>* binary_out, in Fuzz()
611 assert((fuzzing_target == FuzzingTarget::kWgsl || in Fuzz()
612 fuzzing_target == FuzzingTarget::kSpirv) && in Fuzz()
620 fuzzing_target == FuzzingTarget::kWgsl); in Fuzz()
717 auto fuzzing_target = FuzzingTarget::kSpirv; in main()