Home
last modified time | relevance | path

Searched refs:RandomIndex (Results 1 – 25 of 63) sorted by relevance

123

/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_construct_composites.cpp99 GetFuzzerContext()->RandomIndex(composites_to_try_constructing); in Apply()
191 ->second[GetFuzzerContext()->RandomIndex( in TryConstructingArrayComposite()
221 ->second[GetFuzzerContext()->RandomIndex( in TryConstructingMatrixComposite()
246 ->second[GetFuzzerContext()->RandomIndex( in TryConstructingStructComposite()
332 instructions_to_choose_from[GetFuzzerContext()->RandomIndex( in TryConstructingVectorComposite()
353 auto index = GetFuzzerContext()->RandomIndex(instructions_to_use); in TryConstructingVectorComposite()
Dfuzzer_pass_obfuscate_constants.cpp53 comparison_opcode = greater_than_opcodes[GetFuzzerContext()->RandomIndex( in ObfuscateBoolConstantViaConstantPair()
57 less_than_opcodes[GetFuzzerContext()->RandomIndex(less_than_opcodes)]; in ObfuscateBoolConstantViaConstantPair()
255 available_types_with_uniforms[GetFuzzerContext()->RandomIndex( in ObfuscateBoolConstant()
271 auto constant_index_1 = GetFuzzerContext()->RandomIndex(available_constants); in ObfuscateBoolConstant()
276 constant_index_2 = GetFuzzerContext()->RandomIndex(available_constants); in ObfuscateBoolConstant()
320 uniform_descriptors[GetFuzzerContext()->RandomIndex(uniform_descriptors)]; in ObfuscateScalarConstant()
460 auto index = GetFuzzerContext()->RandomIndex(constant_uses); in Apply()
Dfuzzer_pass_add_global_variables.cpp49 base_types[GetFuzzerContext()->RandomIndex(base_types)]; in Apply()
65 available_pointers_to_base_type[GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_pass_add_local_variables.cpp52 base_types[GetFuzzerContext()->RandomIndex(base_types)]; in Apply()
68 available_pointers_to_base_type[GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_pass_add_stores.cpp96 auto pointer = relevant_pointers[GetFuzzerContext()->RandomIndex( in Apply()
121 relevant_values[GetFuzzerContext()->RandomIndex(relevant_values)] in Apply()
Dfuzzer_pass_outline_functions.cpp47 auto entry_block = blocks[GetFuzzerContext()->RandomIndex(blocks)]; in Apply()
64 auto exit_block = candidate_exit_blocks[GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_context.h49 uint32_t RandomIndex(const HasSizeMethod& sequence) const { in RandomIndex() function
59 uint32_t index = RandomIndex(*sequence); in RemoveAtRandomIndex()
/external/angle/third_party/spirv-tools/src/source/fuzz/
Dfuzzer_pass_obfuscate_constants.cpp54 comparison_opcode = greater_than_opcodes[GetFuzzerContext()->RandomIndex( in ObfuscateBoolConstantViaConstantPair()
58 less_than_opcodes[GetFuzzerContext()->RandomIndex(less_than_opcodes)]; in ObfuscateBoolConstantViaConstantPair()
259 available_types_with_uniforms[GetFuzzerContext()->RandomIndex( in ObfuscateBoolConstant()
276 auto constant_index_1 = GetFuzzerContext()->RandomIndex(available_constants); in ObfuscateBoolConstant()
281 constant_index_2 = GetFuzzerContext()->RandomIndex(available_constants); in ObfuscateBoolConstant()
328 uniform_descriptors[GetFuzzerContext()->RandomIndex(uniform_descriptors)]; in ObfuscateScalarConstant()
469 auto index = GetFuzzerContext()->RandomIndex(constant_uses); in Apply()
Dfuzzer_pass_construct_composites.cpp193 ->second[GetFuzzerContext()->RandomIndex( in FindComponentsToConstructArray()
225 ->second[GetFuzzerContext()->RandomIndex( in FindComponentsToConstructMatrix()
255 ->second[GetFuzzerContext()->RandomIndex( in FindComponentsToConstructStruct()
342 instructions_to_choose_from[GetFuzzerContext()->RandomIndex( in FindComponentsToConstructVector()
363 auto index = GetFuzzerContext()->RandomIndex(instructions_to_use); in FindComponentsToConstructVector()
Dfuzzer_pass_add_equation_instructions.cpp83 GetFuzzerContext()->RandomIndex(integer_instructions)); in Apply()
115 GetFuzzerContext()->RandomIndex( in Apply()
136 .at(GetFuzzerContext()->RandomIndex( in Apply()
152 .at(GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_pass_add_global_variables.cpp50 basic_types[GetFuzzerContext()->RandomIndex(basic_types)]; in Apply()
66 available_pointers_to_basic_type[GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_pass_add_local_variables.cpp53 basic_types[GetFuzzerContext()->RandomIndex(basic_types)]; in Apply()
69 available_pointers_to_basic_type[GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_pass_add_stores.cpp101 auto pointer = relevant_pointers[GetFuzzerContext()->RandomIndex( in Apply()
126 relevant_values[GetFuzzerContext()->RandomIndex(relevant_values)] in Apply()
Dfuzzer_pass_outline_functions.cpp48 auto entry_block = blocks[GetFuzzerContext()->RandomIndex(blocks)]; in Apply()
65 auto exit_block = candidate_exit_blocks[GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_context.h49 uint32_t RandomIndex(const HasSizeMethod& sequence) const { in RandomIndex() function
59 uint32_t index = RandomIndex(*sequence); in RemoveAtRandomIndex()
Dfuzzer_pass_adjust_selection_controls.cpp65 block.id(), choices[GetFuzzerContext()->RandomIndex(choices)]); in Apply()
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_obfuscate_constants.cpp54 comparison_opcode = greater_than_opcodes[GetFuzzerContext()->RandomIndex( in ObfuscateBoolConstantViaConstantPair()
58 less_than_opcodes[GetFuzzerContext()->RandomIndex(less_than_opcodes)]; in ObfuscateBoolConstantViaConstantPair()
259 available_types_with_uniforms[GetFuzzerContext()->RandomIndex( in ObfuscateBoolConstant()
276 auto constant_index_1 = GetFuzzerContext()->RandomIndex(available_constants); in ObfuscateBoolConstant()
281 constant_index_2 = GetFuzzerContext()->RandomIndex(available_constants); in ObfuscateBoolConstant()
328 uniform_descriptors[GetFuzzerContext()->RandomIndex(uniform_descriptors)]; in ObfuscateScalarConstant()
469 auto index = GetFuzzerContext()->RandomIndex(constant_uses); in Apply()
Dfuzzer_pass_construct_composites.cpp193 ->second[GetFuzzerContext()->RandomIndex( in FindComponentsToConstructArray()
225 ->second[GetFuzzerContext()->RandomIndex( in FindComponentsToConstructMatrix()
255 ->second[GetFuzzerContext()->RandomIndex( in FindComponentsToConstructStruct()
342 instructions_to_choose_from[GetFuzzerContext()->RandomIndex( in FindComponentsToConstructVector()
363 auto index = GetFuzzerContext()->RandomIndex(instructions_to_use); in FindComponentsToConstructVector()
Dfuzzer_pass_add_equation_instructions.cpp83 GetFuzzerContext()->RandomIndex(integer_instructions)); in Apply()
115 GetFuzzerContext()->RandomIndex( in Apply()
136 .at(GetFuzzerContext()->RandomIndex( in Apply()
152 .at(GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_pass_add_global_variables.cpp50 basic_types[GetFuzzerContext()->RandomIndex(basic_types)]; in Apply()
66 available_pointers_to_basic_type[GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_pass_add_local_variables.cpp53 basic_types[GetFuzzerContext()->RandomIndex(basic_types)]; in Apply()
69 available_pointers_to_basic_type[GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_pass_add_stores.cpp101 auto pointer = relevant_pointers[GetFuzzerContext()->RandomIndex( in Apply()
126 relevant_values[GetFuzzerContext()->RandomIndex(relevant_values)] in Apply()
Dfuzzer_pass_outline_functions.cpp48 auto entry_block = blocks[GetFuzzerContext()->RandomIndex(blocks)]; in Apply()
65 auto exit_block = candidate_exit_blocks[GetFuzzerContext()->RandomIndex( in Apply()
Dfuzzer_context.h49 uint32_t RandomIndex(const HasSizeMethod& sequence) const { in RandomIndex() function
59 uint32_t index = RandomIndex(*sequence); in RemoveAtRandomIndex()
Dfuzzer_pass_adjust_selection_controls.cpp65 block.id(), choices[GetFuzzerContext()->RandomIndex(choices)]); in Apply()

123