Home
last modified time | relevance | path

Searched refs:undef_id (Results 1 – 21 of 21) sorted by relevance

/third_party/skia/third_party/externals/spirv-tools/source/reduce/
Dreduction_util.cpp93 const uint32_t undef_id = context->TakeNextId(); in FindOrCreateGlobalUndef() local
95 context, SpvOpUndef, type_id, undef_id, opt::Instruction::OperandList()); in FindOrCreateGlobalUndef()
96 assert(undef_id == undef_inst->result_id()); in FindOrCreateGlobalUndef()
98 return undef_id; in FindOrCreateGlobalUndef()
Dchange_operand_to_undef_reduction_opportunity.cpp36 auto undef_id = FindOrCreateGlobalUndef(context_, operand_type_id); in Apply() local
37 inst_->SetOperand(operand_index_, {undef_id}); in Apply()
Dstructured_loop_to_selection_reduction_opportunity.cpp170 auto undef_id = FindOrCreateGlobalUndef(context_, phi_inst->type_id()); in AdaptPhiInstructionsForAddedEdge() local
171 phi_inst->AddOperand(opt::Operand(SPV_OPERAND_TYPE_ID, {undef_id})); in AdaptPhiInstructionsForAddedEdge()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dreduction_util.cpp93 const uint32_t undef_id = context->TakeNextId(); in FindOrCreateGlobalUndef() local
95 context, SpvOpUndef, type_id, undef_id, opt::Instruction::OperandList()); in FindOrCreateGlobalUndef()
96 assert(undef_id == undef_inst->result_id()); in FindOrCreateGlobalUndef()
98 return undef_id; in FindOrCreateGlobalUndef()
Dchange_operand_to_undef_reduction_opportunity.cpp36 auto undef_id = FindOrCreateGlobalUndef(context_, operand_type_id); in Apply() local
37 inst_->SetOperand(operand_index_, {undef_id}); in Apply()
Dstructured_loop_to_selection_reduction_opportunity.cpp170 auto undef_id = FindOrCreateGlobalUndef(context_, phi_inst->type_id()); in AdaptPhiInstructionsForAddedEdge() local
171 phi_inst->AddOperand(opt::Operand(SPV_OPERAND_TYPE_ID, {undef_id})); in AdaptPhiInstructionsForAddedEdge()
/third_party/spirv-tools/source/reduce/
Dreduction_util.cpp93 const uint32_t undef_id = context->TakeNextId(); in FindOrCreateGlobalUndef() local
95 context, SpvOpUndef, type_id, undef_id, opt::Instruction::OperandList()); in FindOrCreateGlobalUndef()
96 assert(undef_id == undef_inst->result_id()); in FindOrCreateGlobalUndef()
98 return undef_id; in FindOrCreateGlobalUndef()
Dchange_operand_to_undef_reduction_opportunity.cpp36 auto undef_id = FindOrCreateGlobalUndef(context_, operand_type_id); in Apply() local
37 inst_->SetOperand(operand_index_, {undef_id}); in Apply()
Dstructured_loop_to_selection_reduction_opportunity.cpp173 auto undef_id = FindOrCreateGlobalUndef(context_, phi_inst->type_id()); in AdaptPhiInstructionsForAddedEdge() local
174 phi_inst->AddOperand(opt::Operand(SPV_OPERAND_TYPE_ID, {undef_id})); in AdaptPhiInstructionsForAddedEdge()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dmem_pass.cpp335 uint32_t undef_id = 0; in RemovePhiOperands() local
369 if (!undef_id) { in RemovePhiOperands()
371 undef_id = Type2Undef(type_id); in RemovePhiOperands()
374 Operand(spv_operand_type_t::SPV_OPERAND_TYPE_ID, {undef_id})); in RemovePhiOperands()
Dvector_dce.cpp342 uint32_t undef_id = this->Type2Undef(current_inst->type_id()); in RewriteInstructions() local
344 context()->ReplaceAllUsesWith(current_inst->result_id(), undef_id); in RewriteInstructions()
398 uint32_t undef_id = Type2Undef(current_inst->type_id()); in RewriteInsertInstruction() local
399 current_inst->SetInOperand(kInsertCompositeIdInIdx, {undef_id}); in RewriteInsertInstruction()
Daggressive_dead_code_elim_pass.cpp309 auto undef_id = Type2Undef(func->type_id()); in KillDeadInstructions() local
310 auto undef = get_def_use_mgr()->GetDef(undef_id); in KillDeadInstructions()
313 merge_terminator->SetInOperands({{SPV_OPERAND_TYPE_ID, {undef_id}}}); in KillDeadInstructions()
Dmerge_return_pass.cpp306 uint32_t undef_id = Type2Undef(inst.type_id()); in CreatePhiNodesForInst() local
315 phi_operands.push_back(undef_id); in CreatePhiNodesForInst()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dmem_pass.cpp335 uint32_t undef_id = 0; in RemovePhiOperands() local
369 if (!undef_id) { in RemovePhiOperands()
371 undef_id = Type2Undef(type_id); in RemovePhiOperands()
374 Operand(spv_operand_type_t::SPV_OPERAND_TYPE_ID, {undef_id})); in RemovePhiOperands()
Dvector_dce.cpp342 uint32_t undef_id = this->Type2Undef(current_inst->type_id()); in RewriteInstructions() local
344 context()->ReplaceAllUsesWith(current_inst->result_id(), undef_id); in RewriteInstructions()
398 uint32_t undef_id = Type2Undef(current_inst->type_id()); in RewriteInsertInstruction() local
399 current_inst->SetInOperand(kInsertCompositeIdInIdx, {undef_id}); in RewriteInsertInstruction()
Daggressive_dead_code_elim_pass.cpp309 auto undef_id = Type2Undef(func->type_id()); in KillDeadInstructions() local
310 auto undef = get_def_use_mgr()->GetDef(undef_id); in KillDeadInstructions()
313 merge_terminator->SetInOperands({{SPV_OPERAND_TYPE_ID, {undef_id}}}); in KillDeadInstructions()
Dmerge_return_pass.cpp306 uint32_t undef_id = Type2Undef(inst.type_id()); in CreatePhiNodesForInst() local
315 phi_operands.push_back(undef_id); in CreatePhiNodesForInst()
/third_party/spirv-tools/source/opt/
Dvector_dce.cpp328 uint32_t undef_id = this->Type2Undef(current_inst->type_id()); in RewriteInstructions() local
330 context()->ReplaceAllUsesWith(current_inst->result_id(), undef_id); in RewriteInstructions()
384 uint32_t undef_id = Type2Undef(current_inst->type_id()); in RewriteInsertInstruction() local
385 current_inst->SetInOperand(kInsertCompositeIdInIdx, {undef_id}); in RewriteInsertInstruction()
Dmem_pass.cpp336 uint32_t undef_id = 0; in RemovePhiOperands() local
370 if (!undef_id) { in RemovePhiOperands()
372 undef_id = Type2Undef(type_id); in RemovePhiOperands()
375 Operand(spv_operand_type_t::SPV_OPERAND_TYPE_ID, {undef_id})); in RemovePhiOperands()
Daggressive_dead_code_elim_pass.cpp582 auto undef_id = Type2Undef(func->type_id()); in AggressiveDCE() local
583 auto undef = get_def_use_mgr()->GetDef(undef_id); in AggressiveDCE()
586 merge_terminator->SetInOperands({{SPV_OPERAND_TYPE_ID, {undef_id}}}); in AggressiveDCE()
Dmerge_return_pass.cpp304 uint32_t undef_id = Type2Undef(inst.type_id()); in CreatePhiNodesForInst() local
313 phi_operands.push_back(undef_id); in CreatePhiNodesForInst()