Home
last modified time | relevance | path

Searched refs:param_inst (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dtransformation_replace_parameter_with_global.cpp42 const auto* param_inst = in IsApplicable() local
44 if (!param_inst || param_inst->opcode() != SpvOpFunctionParameter) { in IsApplicable()
60 if (!IsParameterTypeSupported(ir_context, param_inst->type_id())) { in IsApplicable()
66 param_inst->type_id(), false) == 0) { in IsApplicable()
71 if (!fuzzerutil::MaybeGetPointerType(ir_context, param_inst->type_id(), in IsApplicable()
86 const auto* param_inst = in Apply() local
88 assert(param_inst && "Parameter must exist"); in Apply()
93 fuzzerutil::MaybeGetPointerType(ir_context, param_inst->type_id(), in Apply()
97 param_inst->type_id(), false)); in Apply()
115 ir_context, SpvOpLoad, param_inst->type_id(), param_inst->result_id(), in Apply()
Dtransformation_replace_params_with_struct.cpp196 const auto* param_inst = in Apply() local
198 assert(param_inst && "Parameter id is invalid"); in Apply()
215 ir_context, SpvOpCompositeExtract, param_inst->type_id(), in Apply()
216 param_inst->result_id(), in Apply()
221 fuzzerutil::RemoveParameter(ir_context, param_inst->result_id()); in Apply()
Dfuzzer_util.cpp1036 auto* param_inst = ir_context->get_def_use_mgr()->GetDef(param_id); in GetFunctionFromParameterId() local
1037 assert(param_inst && "Parameter id is invalid"); in GetFunctionFromParameterId()
1040 if (InstructionIsFunctionParameter(param_inst, &function)) { in GetFunctionFromParameterId()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_replace_parameter_with_global.cpp42 const auto* param_inst = in IsApplicable() local
44 if (!param_inst || param_inst->opcode() != SpvOpFunctionParameter) { in IsApplicable()
60 if (!IsParameterTypeSupported(ir_context, param_inst->type_id())) { in IsApplicable()
66 param_inst->type_id(), false) == 0) { in IsApplicable()
71 if (!fuzzerutil::MaybeGetPointerType(ir_context, param_inst->type_id(), in IsApplicable()
86 const auto* param_inst = in Apply() local
88 assert(param_inst && "Parameter must exist"); in Apply()
93 fuzzerutil::MaybeGetPointerType(ir_context, param_inst->type_id(), in Apply()
97 param_inst->type_id(), false)); in Apply()
115 ir_context, SpvOpLoad, param_inst->type_id(), param_inst->result_id(), in Apply()
Dtransformation_replace_params_with_struct.cpp196 const auto* param_inst = in Apply() local
198 assert(param_inst && "Parameter id is invalid"); in Apply()
215 ir_context, SpvOpCompositeExtract, param_inst->type_id(), in Apply()
216 param_inst->result_id(), in Apply()
221 fuzzerutil::RemoveParameter(ir_context, param_inst->result_id()); in Apply()
Dfuzzer_util.cpp1036 auto* param_inst = ir_context->get_def_use_mgr()->GetDef(param_id); in GetFunctionFromParameterId() local
1037 assert(param_inst && "Parameter id is invalid"); in GetFunctionFromParameterId()
1040 if (InstructionIsFunctionParameter(param_inst, &function)) { in GetFunctionFromParameterId()
/third_party/spirv-tools/source/fuzz/
Dtransformation_replace_parameter_with_global.cpp42 const auto* param_inst = in IsApplicable() local
44 if (!param_inst || param_inst->opcode() != SpvOpFunctionParameter) { in IsApplicable()
60 if (!IsParameterTypeSupported(ir_context, param_inst->type_id())) { in IsApplicable()
66 param_inst->type_id(), false) == 0) { in IsApplicable()
71 if (!fuzzerutil::MaybeGetPointerType(ir_context, param_inst->type_id(), in IsApplicable()
86 const auto* param_inst = in Apply() local
88 assert(param_inst && "Parameter must exist"); in Apply()
93 fuzzerutil::MaybeGetPointerType(ir_context, param_inst->type_id(), in Apply()
97 param_inst->type_id(), false)); in Apply()
115 ir_context, SpvOpLoad, param_inst->type_id(), param_inst->result_id(), in Apply()
Dtransformation_replace_params_with_struct.cpp196 const auto* param_inst = in Apply() local
198 assert(param_inst && "Parameter id is invalid"); in Apply()
215 ir_context, SpvOpCompositeExtract, param_inst->type_id(), in Apply()
216 param_inst->result_id(), in Apply()
221 fuzzerutil::RemoveParameter(ir_context, param_inst->result_id()); in Apply()
Dfuzzer_util.cpp1036 auto* param_inst = ir_context->get_def_use_mgr()->GetDef(param_id); in GetFunctionFromParameterId() local
1037 assert(param_inst && "Parameter id is invalid"); in GetFunctionFromParameterId()
1040 if (InstructionIsFunctionParameter(param_inst, &function)) { in GetFunctionFromParameterId()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dinstrument_pass.cpp709 std::unique_ptr<Instruction> param_inst( in GetStreamWriteFunctionId() local
712 get_def_use_mgr()->AnalyzeInstDefUse(&*param_inst); in GetStreamWriteFunctionId()
713 output_func->AddParameter(std::move(param_inst)); in GetStreamWriteFunctionId()
816 std::unique_ptr<Instruction> param_inst(new Instruction( in GetDirectReadFunctionId() local
818 get_def_use_mgr()->AnalyzeInstDefUse(&*param_inst); in GetDirectReadFunctionId()
819 input_func->AddParameter(std::move(param_inst)); in GetDirectReadFunctionId()
Dinst_buff_addr_check_pass.cpp215 std::unique_ptr<Instruction> param_inst(new Instruction( in AddParam() local
217 get_def_use_mgr()->AnalyzeInstDefUse(&*param_inst); in AddParam()
218 (*input_func)->AddParameter(std::move(param_inst)); in AddParam()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dinstrument_pass.cpp709 std::unique_ptr<Instruction> param_inst( in GetStreamWriteFunctionId() local
712 get_def_use_mgr()->AnalyzeInstDefUse(&*param_inst); in GetStreamWriteFunctionId()
713 output_func->AddParameter(std::move(param_inst)); in GetStreamWriteFunctionId()
816 std::unique_ptr<Instruction> param_inst(new Instruction( in GetDirectReadFunctionId() local
818 get_def_use_mgr()->AnalyzeInstDefUse(&*param_inst); in GetDirectReadFunctionId()
819 input_func->AddParameter(std::move(param_inst)); in GetDirectReadFunctionId()
Dinst_buff_addr_check_pass.cpp215 std::unique_ptr<Instruction> param_inst(new Instruction( in AddParam() local
217 get_def_use_mgr()->AnalyzeInstDefUse(&*param_inst); in AddParam()
218 (*input_func)->AddParameter(std::move(param_inst)); in AddParam()
/third_party/spirv-tools/source/opt/
Dinstrument_pass.cpp763 std::unique_ptr<Instruction> param_inst( in GetStreamWriteFunctionId() local
766 get_def_use_mgr()->AnalyzeInstDefUse(&*param_inst); in GetStreamWriteFunctionId()
767 output_func->AddParameter(std::move(param_inst)); in GetStreamWriteFunctionId()
876 std::unique_ptr<Instruction> param_inst(new Instruction( in GetDirectReadFunctionId() local
878 get_def_use_mgr()->AnalyzeInstDefUse(&*param_inst); in GetDirectReadFunctionId()
879 input_func->AddParameter(std::move(param_inst)); in GetDirectReadFunctionId()
Dinst_buff_addr_check_pass.cpp215 std::unique_ptr<Instruction> param_inst(new Instruction( in AddParam() local
217 get_def_use_mgr()->AnalyzeInstDefUse(&*param_inst); in AddParam()
218 (*input_func)->AddParameter(std::move(param_inst)); in AddParam()