/third_party/spirv-tools/source/fuzz/ |
D | transformation_add_loop_to_create_int_constant_synonym.cpp | 27 : message_(std::move(message)) {} in TransformationAddLoopToCreateIntConstantSynonym() 36 message_.set_constant_id(constant_id); in TransformationAddLoopToCreateIntConstantSynonym() 37 message_.set_initial_val_id(initial_val_id); in TransformationAddLoopToCreateIntConstantSynonym() 38 message_.set_step_val_id(step_val_id); in TransformationAddLoopToCreateIntConstantSynonym() 39 message_.set_num_iterations_id(num_iterations_id); in TransformationAddLoopToCreateIntConstantSynonym() 40 message_.set_block_after_loop_id(block_after_loop_id); in TransformationAddLoopToCreateIntConstantSynonym() 41 message_.set_syn_id(syn_id); in TransformationAddLoopToCreateIntConstantSynonym() 42 message_.set_loop_id(loop_id); in TransformationAddLoopToCreateIntConstantSynonym() 43 message_.set_ctr_id(ctr_id); in TransformationAddLoopToCreateIntConstantSynonym() 44 message_.set_temp_id(temp_id); in TransformationAddLoopToCreateIntConstantSynonym() [all …]
|
D | transformation_push_id_through_variable.cpp | 25 : message_(std::move(message)) {} in TransformationPushIdThroughVariable() 31 message_.set_value_id(value_id); in TransformationPushIdThroughVariable() 32 message_.set_value_synonym_id(value_synonym_id); in TransformationPushIdThroughVariable() 33 message_.set_variable_id(variable_id); in TransformationPushIdThroughVariable() 34 message_.set_variable_storage_class(variable_storage_class); in TransformationPushIdThroughVariable() 35 message_.set_initializer_id(initializer_id); in TransformationPushIdThroughVariable() 36 *message_.mutable_instruction_descriptor() = instruction_descriptor; in TransformationPushIdThroughVariable() 42 if (!fuzzerutil::IsFreshId(ir_context, message_.value_synonym_id()) || in IsApplicable() 43 !fuzzerutil::IsFreshId(ir_context, message_.variable_id())) { in IsApplicable() 49 FindInstruction(message_.instruction_descriptor(), ir_context); in IsApplicable() [all …]
|
D | transformation_load.cpp | 24 : message_(std::move(message)) {} in TransformationLoad() 30 message_.set_fresh_id(fresh_id); in TransformationLoad() 31 message_.set_pointer_id(pointer_id); in TransformationLoad() 32 message_.set_is_atomic(is_atomic); in TransformationLoad() 33 message_.set_memory_scope_id(memory_scope); in TransformationLoad() 34 message_.set_memory_semantics_id(memory_semantics); in TransformationLoad() 36 *message_.mutable_instruction_to_insert_before() = in TransformationLoad() 43 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 48 auto pointer = ir_context->get_def_use_mgr()->GetDef(message_.pointer_id()); in IsApplicable() 71 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() [all …]
|
D | transformation_add_dead_break.cpp | 28 : message_(std::move(message)) {} in TransformationAddDeadBreak() 33 message_.set_from_block(from_block); in TransformationAddDeadBreak() 34 message_.set_to_block(to_block); in TransformationAddDeadBreak() 35 message_.set_break_condition_value(break_condition_value); in TransformationAddDeadBreak() 37 message_.add_phi_id(id); in TransformationAddDeadBreak() 66 return bb_from->MergeBlockId() == message_.to_block(); in AddingBreakRespectsStructuredControlFlow() 74 message_.from_block()); in AddingBreakRespectsStructuredControlFlow() 81 if (message_.to_block() == in AddingBreakRespectsStructuredControlFlow() 89 ir_context, message_.from_block(), containing_construct) || in AddingBreakRespectsStructuredControlFlow() 90 fuzzerutil::BlockIsBackEdge(ir_context, message_.from_block(), in AddingBreakRespectsStructuredControlFlow() [all …]
|
D | transformation_vector_shuffle.cpp | 25 : message_(std::move(message)) {} in TransformationVectorShuffle() 31 *message_.mutable_instruction_to_insert_before() = in TransformationVectorShuffle() 33 message_.set_fresh_id(fresh_id); in TransformationVectorShuffle() 34 message_.set_vector1(vector1); in TransformationVectorShuffle() 35 message_.set_vector2(vector2); in TransformationVectorShuffle() 37 message_.add_component(a_component); in TransformationVectorShuffle() 44 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 49 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() 55 ir_context->get_def_use_mgr()->GetDef(message_.vector1()); in IsApplicable() 61 ir_context->get_def_use_mgr()->GetDef(message_.vector2()); in IsApplicable() [all …]
|
D | transformation_composite_insert.cpp | 25 : message_(std::move(message)) {} in TransformationCompositeInsert() 31 *message_.mutable_instruction_to_insert_before() = in TransformationCompositeInsert() 33 message_.set_fresh_id(fresh_id); in TransformationCompositeInsert() 34 message_.set_composite_id(composite_id); in TransformationCompositeInsert() 35 message_.set_object_id(object_id); in TransformationCompositeInsert() 37 message_.add_index(an_index); in TransformationCompositeInsert() 44 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 50 ir_context->get_def_use_mgr()->GetDef(message_.composite_id()); in IsApplicable() 59 ir_context, composite->type_id(), message_.index()); in IsApplicable() 66 ir_context->get_def_use_mgr()->GetDef(message_.object_id()); in IsApplicable() [all …]
|
D | transformation_store.cpp | 24 : message_(std::move(message)) {} in TransformationStore() 30 message_.set_pointer_id(pointer_id); in TransformationStore() 31 message_.set_is_atomic(is_atomic); in TransformationStore() 32 message_.set_memory_scope_id(memory_scope); in TransformationStore() 33 message_.set_memory_semantics_id(memory_semantics); in TransformationStore() 34 message_.set_value_id(value_id); in TransformationStore() 35 *message_.mutable_instruction_to_insert_before() = in TransformationStore() 43 auto pointer = ir_context->get_def_use_mgr()->GetDef(message_.pointer_id()); in IsApplicable() 71 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() 77 if (!message_.is_atomic() && !fuzzerutil::CanInsertOpcodeBeforeInstruction( in IsApplicable() [all …]
|
D | transformation_composite_extract.cpp | 28 : message_(std::move(message)) {} in TransformationCompositeExtract() 34 *message_.mutable_instruction_to_insert_before() = in TransformationCompositeExtract() 36 message_.set_fresh_id(fresh_id); in TransformationCompositeExtract() 37 message_.set_composite_id(composite_id); in TransformationCompositeExtract() 39 message_.add_index(an_index); in TransformationCompositeExtract() 45 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 49 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() 54 ir_context->get_def_use_mgr()->GetDef(message_.composite_id()); in IsApplicable() 59 ir_context, instruction_to_insert_before, message_.composite_id())) { in IsApplicable() 76 message_.index()) != 0; in IsApplicable() [all …]
|
D | transformation_replace_copy_object_with_store_load.cpp | 26 : message_(std::move(message)) {} in TransformationReplaceCopyObjectWithStoreLoad() 32 message_.set_copy_object_result_id(copy_object_result_id); in TransformationReplaceCopyObjectWithStoreLoad() 33 message_.set_fresh_variable_id(fresh_variable_id); in TransformationReplaceCopyObjectWithStoreLoad() 34 message_.set_variable_storage_class(variable_storage_class); in TransformationReplaceCopyObjectWithStoreLoad() 35 message_.set_variable_initializer_id(variable_initializer_id); in TransformationReplaceCopyObjectWithStoreLoad() 41 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_variable_id())) { in IsApplicable() 45 ir_context->get_def_use_mgr()->GetDef(message_.copy_object_result_id()); in IsApplicable() 64 static_cast<SpvStorageClass>(message_.variable_storage_class())); in IsApplicable() 71 ir_context->get_def_use_mgr()->GetDef(message_.variable_initializer_id()); in IsApplicable() 77 return message_.variable_storage_class() == SpvStorageClassPrivate || in IsApplicable() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | transformation_add_loop_to_create_int_constant_synonym.cpp | 27 : message_(std::move(message)) {} in TransformationAddLoopToCreateIntConstantSynonym() 36 message_.set_constant_id(constant_id); in TransformationAddLoopToCreateIntConstantSynonym() 37 message_.set_initial_val_id(initial_val_id); in TransformationAddLoopToCreateIntConstantSynonym() 38 message_.set_step_val_id(step_val_id); in TransformationAddLoopToCreateIntConstantSynonym() 39 message_.set_num_iterations_id(num_iterations_id); in TransformationAddLoopToCreateIntConstantSynonym() 40 message_.set_block_after_loop_id(block_after_loop_id); in TransformationAddLoopToCreateIntConstantSynonym() 41 message_.set_syn_id(syn_id); in TransformationAddLoopToCreateIntConstantSynonym() 42 message_.set_loop_id(loop_id); in TransformationAddLoopToCreateIntConstantSynonym() 43 message_.set_ctr_id(ctr_id); in TransformationAddLoopToCreateIntConstantSynonym() 44 message_.set_temp_id(temp_id); in TransformationAddLoopToCreateIntConstantSynonym() [all …]
|
D | transformation_push_id_through_variable.cpp | 25 : message_(std::move(message)) {} in TransformationPushIdThroughVariable() 31 message_.set_value_id(value_id); in TransformationPushIdThroughVariable() 32 message_.set_value_synonym_id(value_synonym_id); in TransformationPushIdThroughVariable() 33 message_.set_variable_id(variable_id); in TransformationPushIdThroughVariable() 34 message_.set_variable_storage_class(variable_storage_class); in TransformationPushIdThroughVariable() 35 message_.set_initializer_id(initializer_id); in TransformationPushIdThroughVariable() 36 *message_.mutable_instruction_descriptor() = instruction_descriptor; in TransformationPushIdThroughVariable() 42 if (!fuzzerutil::IsFreshId(ir_context, message_.value_synonym_id()) || in IsApplicable() 43 !fuzzerutil::IsFreshId(ir_context, message_.variable_id())) { in IsApplicable() 49 FindInstruction(message_.instruction_descriptor(), ir_context); in IsApplicable() [all …]
|
D | transformation_load.cpp | 24 : message_(std::move(message)) {} in TransformationLoad() 30 message_.set_fresh_id(fresh_id); in TransformationLoad() 31 message_.set_pointer_id(pointer_id); in TransformationLoad() 32 message_.set_is_atomic(is_atomic); in TransformationLoad() 33 message_.set_memory_scope_id(memory_scope); in TransformationLoad() 34 message_.set_memory_semantics_id(memory_semantics); in TransformationLoad() 36 *message_.mutable_instruction_to_insert_before() = in TransformationLoad() 43 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 48 auto pointer = ir_context->get_def_use_mgr()->GetDef(message_.pointer_id()); in IsApplicable() 71 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() [all …]
|
D | transformation_add_dead_break.cpp | 28 : message_(std::move(message)) {} in TransformationAddDeadBreak() 33 message_.set_from_block(from_block); in TransformationAddDeadBreak() 34 message_.set_to_block(to_block); in TransformationAddDeadBreak() 35 message_.set_break_condition_value(break_condition_value); in TransformationAddDeadBreak() 37 message_.add_phi_id(id); in TransformationAddDeadBreak() 66 return bb_from->MergeBlockId() == message_.to_block(); in AddingBreakRespectsStructuredControlFlow() 74 message_.from_block()); in AddingBreakRespectsStructuredControlFlow() 81 if (message_.to_block() == in AddingBreakRespectsStructuredControlFlow() 89 ir_context, message_.from_block(), containing_construct) || in AddingBreakRespectsStructuredControlFlow() 90 fuzzerutil::BlockIsBackEdge(ir_context, message_.from_block(), in AddingBreakRespectsStructuredControlFlow() [all …]
|
D | transformation_vector_shuffle.cpp | 25 : message_(std::move(message)) {} in TransformationVectorShuffle() 31 *message_.mutable_instruction_to_insert_before() = in TransformationVectorShuffle() 33 message_.set_fresh_id(fresh_id); in TransformationVectorShuffle() 34 message_.set_vector1(vector1); in TransformationVectorShuffle() 35 message_.set_vector2(vector2); in TransformationVectorShuffle() 37 message_.add_component(a_component); in TransformationVectorShuffle() 44 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 49 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() 55 ir_context->get_def_use_mgr()->GetDef(message_.vector1()); in IsApplicable() 61 ir_context->get_def_use_mgr()->GetDef(message_.vector2()); in IsApplicable() [all …]
|
D | transformation_composite_insert.cpp | 25 : message_(std::move(message)) {} in TransformationCompositeInsert() 31 *message_.mutable_instruction_to_insert_before() = in TransformationCompositeInsert() 33 message_.set_fresh_id(fresh_id); in TransformationCompositeInsert() 34 message_.set_composite_id(composite_id); in TransformationCompositeInsert() 35 message_.set_object_id(object_id); in TransformationCompositeInsert() 37 message_.add_index(an_index); in TransformationCompositeInsert() 44 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 50 ir_context->get_def_use_mgr()->GetDef(message_.composite_id()); in IsApplicable() 59 ir_context, composite->type_id(), message_.index()); in IsApplicable() 66 ir_context->get_def_use_mgr()->GetDef(message_.object_id()); in IsApplicable() [all …]
|
D | transformation_store.cpp | 24 : message_(std::move(message)) {} in TransformationStore() 30 message_.set_pointer_id(pointer_id); in TransformationStore() 31 message_.set_is_atomic(is_atomic); in TransformationStore() 32 message_.set_memory_scope_id(memory_scope); in TransformationStore() 33 message_.set_memory_semantics_id(memory_semantics); in TransformationStore() 34 message_.set_value_id(value_id); in TransformationStore() 35 *message_.mutable_instruction_to_insert_before() = in TransformationStore() 43 auto pointer = ir_context->get_def_use_mgr()->GetDef(message_.pointer_id()); in IsApplicable() 71 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() 77 if (!message_.is_atomic() && !fuzzerutil::CanInsertOpcodeBeforeInstruction( in IsApplicable() [all …]
|
D | transformation_composite_extract.cpp | 28 : message_(std::move(message)) {} in TransformationCompositeExtract() 34 *message_.mutable_instruction_to_insert_before() = in TransformationCompositeExtract() 36 message_.set_fresh_id(fresh_id); in TransformationCompositeExtract() 37 message_.set_composite_id(composite_id); in TransformationCompositeExtract() 39 message_.add_index(an_index); in TransformationCompositeExtract() 45 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 49 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() 54 ir_context->get_def_use_mgr()->GetDef(message_.composite_id()); in IsApplicable() 59 ir_context, instruction_to_insert_before, message_.composite_id())) { in IsApplicable() 76 message_.index()) != 0; in IsApplicable() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | transformation_add_loop_to_create_int_constant_synonym.cpp | 27 : message_(std::move(message)) {} in TransformationAddLoopToCreateIntConstantSynonym() 36 message_.set_constant_id(constant_id); in TransformationAddLoopToCreateIntConstantSynonym() 37 message_.set_initial_val_id(initial_val_id); in TransformationAddLoopToCreateIntConstantSynonym() 38 message_.set_step_val_id(step_val_id); in TransformationAddLoopToCreateIntConstantSynonym() 39 message_.set_num_iterations_id(num_iterations_id); in TransformationAddLoopToCreateIntConstantSynonym() 40 message_.set_block_after_loop_id(block_after_loop_id); in TransformationAddLoopToCreateIntConstantSynonym() 41 message_.set_syn_id(syn_id); in TransformationAddLoopToCreateIntConstantSynonym() 42 message_.set_loop_id(loop_id); in TransformationAddLoopToCreateIntConstantSynonym() 43 message_.set_ctr_id(ctr_id); in TransformationAddLoopToCreateIntConstantSynonym() 44 message_.set_temp_id(temp_id); in TransformationAddLoopToCreateIntConstantSynonym() [all …]
|
D | transformation_push_id_through_variable.cpp | 25 : message_(std::move(message)) {} in TransformationPushIdThroughVariable() 31 message_.set_value_id(value_id); in TransformationPushIdThroughVariable() 32 message_.set_value_synonym_id(value_synonym_id); in TransformationPushIdThroughVariable() 33 message_.set_variable_id(variable_id); in TransformationPushIdThroughVariable() 34 message_.set_variable_storage_class(variable_storage_class); in TransformationPushIdThroughVariable() 35 message_.set_initializer_id(initializer_id); in TransformationPushIdThroughVariable() 36 *message_.mutable_instruction_descriptor() = instruction_descriptor; in TransformationPushIdThroughVariable() 42 if (!fuzzerutil::IsFreshId(ir_context, message_.value_synonym_id()) || in IsApplicable() 43 !fuzzerutil::IsFreshId(ir_context, message_.variable_id())) { in IsApplicable() 49 FindInstruction(message_.instruction_descriptor(), ir_context); in IsApplicable() [all …]
|
D | transformation_load.cpp | 24 : message_(std::move(message)) {} in TransformationLoad() 30 message_.set_fresh_id(fresh_id); in TransformationLoad() 31 message_.set_pointer_id(pointer_id); in TransformationLoad() 32 message_.set_is_atomic(is_atomic); in TransformationLoad() 33 message_.set_memory_scope_id(memory_scope); in TransformationLoad() 34 message_.set_memory_semantics_id(memory_semantics); in TransformationLoad() 36 *message_.mutable_instruction_to_insert_before() = in TransformationLoad() 43 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 48 auto pointer = ir_context->get_def_use_mgr()->GetDef(message_.pointer_id()); in IsApplicable() 71 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() [all …]
|
D | transformation_add_dead_break.cpp | 28 : message_(std::move(message)) {} in TransformationAddDeadBreak() 33 message_.set_from_block(from_block); in TransformationAddDeadBreak() 34 message_.set_to_block(to_block); in TransformationAddDeadBreak() 35 message_.set_break_condition_value(break_condition_value); in TransformationAddDeadBreak() 37 message_.add_phi_id(id); in TransformationAddDeadBreak() 66 return bb_from->MergeBlockId() == message_.to_block(); in AddingBreakRespectsStructuredControlFlow() 74 message_.from_block()); in AddingBreakRespectsStructuredControlFlow() 81 if (message_.to_block() == in AddingBreakRespectsStructuredControlFlow() 89 ir_context, message_.from_block(), containing_construct) || in AddingBreakRespectsStructuredControlFlow() 90 fuzzerutil::BlockIsBackEdge(ir_context, message_.from_block(), in AddingBreakRespectsStructuredControlFlow() [all …]
|
D | transformation_vector_shuffle.cpp | 25 : message_(std::move(message)) {} in TransformationVectorShuffle() 31 *message_.mutable_instruction_to_insert_before() = in TransformationVectorShuffle() 33 message_.set_fresh_id(fresh_id); in TransformationVectorShuffle() 34 message_.set_vector1(vector1); in TransformationVectorShuffle() 35 message_.set_vector2(vector2); in TransformationVectorShuffle() 37 message_.add_component(a_component); in TransformationVectorShuffle() 44 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 49 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() 55 ir_context->get_def_use_mgr()->GetDef(message_.vector1()); in IsApplicable() 61 ir_context->get_def_use_mgr()->GetDef(message_.vector2()); in IsApplicable() [all …]
|
D | transformation_composite_insert.cpp | 25 : message_(std::move(message)) {} in TransformationCompositeInsert() 31 *message_.mutable_instruction_to_insert_before() = in TransformationCompositeInsert() 33 message_.set_fresh_id(fresh_id); in TransformationCompositeInsert() 34 message_.set_composite_id(composite_id); in TransformationCompositeInsert() 35 message_.set_object_id(object_id); in TransformationCompositeInsert() 37 message_.add_index(an_index); in TransformationCompositeInsert() 44 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 50 ir_context->get_def_use_mgr()->GetDef(message_.composite_id()); in IsApplicable() 59 ir_context, composite->type_id(), message_.index()); in IsApplicable() 66 ir_context->get_def_use_mgr()->GetDef(message_.object_id()); in IsApplicable() [all …]
|
D | transformation_store.cpp | 24 : message_(std::move(message)) {} in TransformationStore() 30 message_.set_pointer_id(pointer_id); in TransformationStore() 31 message_.set_is_atomic(is_atomic); in TransformationStore() 32 message_.set_memory_scope_id(memory_scope); in TransformationStore() 33 message_.set_memory_semantics_id(memory_semantics); in TransformationStore() 34 message_.set_value_id(value_id); in TransformationStore() 35 *message_.mutable_instruction_to_insert_before() = in TransformationStore() 43 auto pointer = ir_context->get_def_use_mgr()->GetDef(message_.pointer_id()); in IsApplicable() 71 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() 77 if (!message_.is_atomic() && !fuzzerutil::CanInsertOpcodeBeforeInstruction( in IsApplicable() [all …]
|
D | transformation_composite_extract.cpp | 28 : message_(std::move(message)) {} in TransformationCompositeExtract() 34 *message_.mutable_instruction_to_insert_before() = in TransformationCompositeExtract() 36 message_.set_fresh_id(fresh_id); in TransformationCompositeExtract() 37 message_.set_composite_id(composite_id); in TransformationCompositeExtract() 39 message_.add_index(an_index); in TransformationCompositeExtract() 45 if (!fuzzerutil::IsFreshId(ir_context, message_.fresh_id())) { in IsApplicable() 49 FindInstruction(message_.instruction_to_insert_before(), ir_context); in IsApplicable() 54 ir_context->get_def_use_mgr()->GetDef(message_.composite_id()); in IsApplicable() 59 ir_context, instruction_to_insert_before, message_.composite_id())) { in IsApplicable() 76 message_.index()) != 0; in IsApplicable() [all …]
|