Home
last modified time | relevance | path

Searched refs:use_inst (Results 1 – 25 of 27) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_apply_id_synonyms.cpp53 [&uses](opt::Instruction* use_inst, uint32_t use_index) -> void { in Apply() argument
56 if (use_inst->GetOperand(use_index).type == SPV_OPERAND_TYPE_ID) { in Apply()
58 std::pair<opt::Instruction*, uint32_t>(use_inst, use_index)); in Apply()
63 auto use_inst = use.first; in Apply() local
65 auto block_containing_use = GetIRContext()->get_instr_block(use_inst); in Apply()
77 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
79 *GetTransformationContext(), use_inst, in Apply()
96 use_inst->opcode(), use_in_operand_index, in Apply()
111 use_inst) && in Apply()
112 use_inst->opcode() != SpvOpPhi) { in Apply()
[all …]
Dfuzzer_pass_replace_irrelevant_ids.cpp96 &transformations_to_apply](opt::Instruction* use_inst, in Apply()
105 if (use_index < use_inst->NumOperands() - use_inst->NumInOperands()) { in Apply()
114 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
119 use_inst, in_index)) { in Apply()
135 *use_inst, *GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
148 if (GetIRContext()->get_instr_block(use_inst) && in Apply()
149 fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
169 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
Dtransformation_add_loop_preheader.cpp106 &back_edge_block_id](opt::Instruction* use_inst, uint32_t use_index) { in Apply() argument
108 use_inst)) { in Apply()
111 if (use_inst->IsBranch()) { in Apply()
114 back_edge_block_id = ir_context->get_instr_block(use_inst)->id(); in Apply()
122 if (!use_inst->IsBranch() && in Apply()
123 use_inst->opcode() != SpvOpSelectionMerge && in Apply()
124 use_inst->opcode() != SpvOpLoopMerge) { in Apply()
129 use_inst->SetOperand(use_index, {message_.fresh_id()}); in Apply()
Dfuzzer_pass_interchange_zero_like_constants.cpp96 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
101 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp75 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
80 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
Dfuzzer_pass.cpp600 opt::Instruction* use_inst, uint32_t use_index, uint32_t replacement_id, in MaybeAddUseToReplace() argument
604 if (!GetIRContext()->get_instr_block(use_inst)) { in MaybeAddUseToReplace()
610 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in MaybeAddUseToReplace()
612 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in_operand_index); in MaybeAddUseToReplace()
Dtransformation_flatten_conditional_branch.cpp800 [](opt::Instruction* use_inst, uint32_t use_index) { in InstructionCanBeHandled() argument
803 use_inst->NumOperands() - use_inst->NumInOperands(); in InstructionCanBeHandled()
Dfuzzer_pass.h280 opt::Instruction* use_inst, uint32_t use_index, uint32_t replacement_id,
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_apply_id_synonyms.cpp53 [&uses](opt::Instruction* use_inst, uint32_t use_index) -> void { in Apply() argument
56 if (use_inst->GetOperand(use_index).type == SPV_OPERAND_TYPE_ID) { in Apply()
58 std::pair<opt::Instruction*, uint32_t>(use_inst, use_index)); in Apply()
63 auto use_inst = use.first; in Apply() local
65 auto block_containing_use = GetIRContext()->get_instr_block(use_inst); in Apply()
77 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
79 *GetTransformationContext(), use_inst, in Apply()
96 use_inst->opcode(), use_in_operand_index, in Apply()
111 use_inst) && in Apply()
112 use_inst->opcode() != SpvOpPhi) { in Apply()
[all …]
Dfuzzer_pass_replace_irrelevant_ids.cpp96 &transformations_to_apply](opt::Instruction* use_inst, in Apply()
105 if (use_index < use_inst->NumOperands() - use_inst->NumInOperands()) { in Apply()
114 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
119 use_inst, in_index)) { in Apply()
135 *use_inst, *GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
148 if (GetIRContext()->get_instr_block(use_inst) && in Apply()
149 fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
169 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
Dtransformation_add_loop_preheader.cpp106 &back_edge_block_id](opt::Instruction* use_inst, uint32_t use_index) { in Apply() argument
108 use_inst)) { in Apply()
111 if (use_inst->IsBranch()) { in Apply()
114 back_edge_block_id = ir_context->get_instr_block(use_inst)->id(); in Apply()
122 if (!use_inst->IsBranch() && in Apply()
123 use_inst->opcode() != SpvOpSelectionMerge && in Apply()
124 use_inst->opcode() != SpvOpLoopMerge) { in Apply()
129 use_inst->SetOperand(use_index, {message_.fresh_id()}); in Apply()
Dfuzzer_pass_interchange_zero_like_constants.cpp96 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
101 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp75 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
80 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
Dfuzzer_pass.cpp600 opt::Instruction* use_inst, uint32_t use_index, uint32_t replacement_id, in MaybeAddUseToReplace() argument
604 if (!GetIRContext()->get_instr_block(use_inst)) { in MaybeAddUseToReplace()
610 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in MaybeAddUseToReplace()
612 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in_operand_index); in MaybeAddUseToReplace()
Dtransformation_flatten_conditional_branch.cpp800 [](opt::Instruction* use_inst, uint32_t use_index) { in InstructionCanBeHandled() argument
803 use_inst->NumOperands() - use_inst->NumInOperands(); in InstructionCanBeHandled()
Dfuzzer_pass.h280 opt::Instruction* use_inst, uint32_t use_index, uint32_t replacement_id,
/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass_apply_id_synonyms.cpp53 [&uses](opt::Instruction* use_inst, uint32_t use_index) -> void { in Apply() argument
56 if (use_inst->GetOperand(use_index).type == SPV_OPERAND_TYPE_ID) { in Apply()
58 std::pair<opt::Instruction*, uint32_t>(use_inst, use_index)); in Apply()
63 auto use_inst = use.first; in Apply() local
65 auto block_containing_use = GetIRContext()->get_instr_block(use_inst); in Apply()
77 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
79 *GetTransformationContext(), use_inst, in Apply()
96 use_inst->opcode(), use_in_operand_index, in Apply()
111 use_inst) && in Apply()
112 use_inst->opcode() != SpvOpPhi) { in Apply()
[all …]
Dfuzzer_pass_replace_irrelevant_ids.cpp96 &transformations_to_apply](opt::Instruction* use_inst, in Apply()
105 if (use_index < use_inst->NumOperands() - use_inst->NumInOperands()) { in Apply()
114 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in Apply()
119 use_inst, in_index)) { in Apply()
135 *use_inst, *GetIRContext()->get_def_use_mgr()->GetDef( in Apply()
148 if (GetIRContext()->get_instr_block(use_inst) && in Apply()
149 fuzzerutil::IdIsAvailableAtUse(GetIRContext(), use_inst, in Apply()
169 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in Apply()
Dtransformation_add_loop_preheader.cpp106 &back_edge_block_id](opt::Instruction* use_inst, uint32_t use_index) { in Apply() argument
108 use_inst)) { in Apply()
111 if (use_inst->IsBranch()) { in Apply()
114 back_edge_block_id = ir_context->get_instr_block(use_inst)->id(); in Apply()
122 if (!use_inst->IsBranch() && in Apply()
123 use_inst->opcode() != SpvOpSelectionMerge && in Apply()
124 use_inst->opcode() != SpvOpLoopMerge) { in Apply()
129 use_inst->SetOperand(use_index, {message_.fresh_id()}); in Apply()
Dfuzzer_pass_interchange_zero_like_constants.cpp96 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
101 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
Dfuzzer_pass_interchange_signedness_of_integer_operands.cpp75 [this, toggled_id, &uses_to_replace](opt::Instruction* use_inst, in Apply()
80 MaybeAddUseToReplace(use_inst, use_index, toggled_id, in Apply()
Dfuzzer_pass.cpp600 opt::Instruction* use_inst, uint32_t use_index, uint32_t replacement_id, in MaybeAddUseToReplace() argument
604 if (!GetIRContext()->get_instr_block(use_inst)) { in MaybeAddUseToReplace()
610 fuzzerutil::InOperandIndexFromOperandIndex(*use_inst, use_index); in MaybeAddUseToReplace()
612 MakeIdUseDescriptorFromUse(GetIRContext(), use_inst, in_operand_index); in MaybeAddUseToReplace()
Dtransformation_flatten_conditional_branch.cpp800 [](opt::Instruction* use_inst, uint32_t use_index) { in InstructionCanBeHandled() argument
803 use_inst->NumOperands() - use_inst->NumInOperands(); in InstructionCanBeHandled()
Dfuzzer_pass.h280 opt::Instruction* use_inst, uint32_t use_index, uint32_t replacement_id,
/third_party/spirv-tools/source/opt/
Dloop_fusion.cpp211 [&is_used](Instruction* use_inst, uint32_t) { in AreCompatible() argument
212 if (use_inst->opcode() == SpvOpLoad) { in AreCompatible()

12