Home
last modified time | relevance | path

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

/external/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dreduction_util.cpp35 const uint32_t undef_id = context->TakeNextId(); in FindOrCreateGlobalUndef() local
37 new Instruction(context, SpvOpUndef, type_id, undef_id, {})); in FindOrCreateGlobalUndef()
38 assert(undef_id == undef_inst->result_id()); in FindOrCreateGlobalUndef()
40 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.cpp196 auto undef_id = FindOrCreateGlobalUndef(context_, phi_inst->type_id()); in AdaptPhiInstructionsForAddedEdge() local
197 phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {undef_id})); in AdaptPhiInstructionsForAddedEdge()
/external/deqp-deps/SPIRV-Tools/source/reduce/
Dstructured_loop_to_selection_reduction_opportunity.cpp194 auto undef_id = FindOrCreateGlobalUndef(phi_inst->type_id()); in AdaptPhiInstructionsForAddedEdge() local
195 phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {undef_id})); in AdaptPhiInstructionsForAddedEdge()
311 const uint32_t undef_id = context_->TakeNextId(); in FindOrCreateGlobalUndef() local
313 new Instruction(context_, SpvOpUndef, type_id, undef_id, {})); in FindOrCreateGlobalUndef()
314 assert(undef_id == undef_inst->result_id()); in FindOrCreateGlobalUndef()
316 return undef_id; in FindOrCreateGlobalUndef()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dvector_dce.cpp298 uint32_t undef_id = this->Type2Undef(current_inst->type_id()); in RewriteInstructions() local
300 context()->ReplaceAllUsesWith(current_inst->result_id(), undef_id); in RewriteInstructions()
342 uint32_t undef_id = Type2Undef(current_inst->type_id()); in RewriteInsertInstruction() local
343 current_inst->SetInOperand(kInsertCompositeIdInIdx, {undef_id}); in RewriteInsertInstruction()
Dmem_pass.cpp321 uint32_t undef_id = 0; in RemovePhiOperands() local
355 if (!undef_id) { in RemovePhiOperands()
357 undef_id = Type2Undef(type_id); in RemovePhiOperands()
360 Operand(spv_operand_type_t::SPV_OPERAND_TYPE_ID, {undef_id})); in RemovePhiOperands()
Dmerge_return_pass.cpp280 uint32_t undef_id = Type2Undef(inst.type_id()); in CreatePhiNodesForInst() local
291 phi_operands.push_back(undef_id); in CreatePhiNodesForInst()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dvector_dce.cpp318 uint32_t undef_id = this->Type2Undef(current_inst->type_id()); in RewriteInstructions() local
320 context()->ReplaceAllUsesWith(current_inst->result_id(), undef_id); in RewriteInstructions()
371 uint32_t undef_id = Type2Undef(current_inst->type_id()); in RewriteInsertInstruction() local
372 current_inst->SetInOperand(kInsertCompositeIdInIdx, {undef_id}); in RewriteInsertInstruction()
Dmem_pass.cpp321 uint32_t undef_id = 0; in RemovePhiOperands() local
355 if (!undef_id) { in RemovePhiOperands()
357 undef_id = Type2Undef(type_id); in RemovePhiOperands()
360 Operand(spv_operand_type_t::SPV_OPERAND_TYPE_ID, {undef_id})); in RemovePhiOperands()
Dmerge_return_pass.cpp280 uint32_t undef_id = Type2Undef(inst.type_id()); in CreatePhiNodesForInst() local
291 phi_operands.push_back(undef_id); in CreatePhiNodesForInst()