/external/angle/third_party/spirv-tools/src/source/reduce/ |
D | reduction_util.cpp | 49 to_block->ForEachPhiInst([&from_id](Instruction* phi_inst) { in AdaptPhiInstructionsForRemovedEdge() argument 52 for (uint32_t index = 0; index < phi_inst->NumInOperands(); index += 2) { in AdaptPhiInstructionsForRemovedEdge() 55 if (phi_inst->GetInOperand(index + 1).words[0] != from_id) { in AdaptPhiInstructionsForRemovedEdge() 56 new_in_operands.push_back(phi_inst->GetInOperand(index)); in AdaptPhiInstructionsForRemovedEdge() 57 new_in_operands.push_back(phi_inst->GetInOperand(index + 1)); in AdaptPhiInstructionsForRemovedEdge() 60 phi_inst->SetInOperands(std::move(new_in_operands)); in AdaptPhiInstructionsForRemovedEdge()
|
D | structured_loop_to_selection_reduction_opportunity.cpp | 172 to_block->ForEachPhiInst([this, &from_id](Instruction* phi_inst) { in AdaptPhiInstructionsForAddedEdge() argument 175 auto undef_id = FindOrCreateGlobalUndef(context_, phi_inst->type_id()); in AdaptPhiInstructionsForAddedEdge() 176 phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {undef_id})); in AdaptPhiInstructionsForAddedEdge() 177 phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {from_id})); in AdaptPhiInstructionsForAddedEdge()
|
/external/swiftshader/third_party/SPIRV-Tools/source/reduce/ |
D | reduction_util.cpp | 49 to_block->ForEachPhiInst([&from_id](Instruction* phi_inst) { in AdaptPhiInstructionsForRemovedEdge() argument 52 for (uint32_t index = 0; index < phi_inst->NumInOperands(); index += 2) { in AdaptPhiInstructionsForRemovedEdge() 55 if (phi_inst->GetInOperand(index + 1).words[0] != from_id) { in AdaptPhiInstructionsForRemovedEdge() 56 new_in_operands.push_back(phi_inst->GetInOperand(index)); in AdaptPhiInstructionsForRemovedEdge() 57 new_in_operands.push_back(phi_inst->GetInOperand(index + 1)); in AdaptPhiInstructionsForRemovedEdge() 60 phi_inst->SetInOperands(std::move(new_in_operands)); in AdaptPhiInstructionsForRemovedEdge()
|
D | structured_loop_to_selection_reduction_opportunity.cpp | 172 to_block->ForEachPhiInst([this, &from_id](Instruction* phi_inst) { in AdaptPhiInstructionsForAddedEdge() argument 175 auto undef_id = FindOrCreateGlobalUndef(context_, phi_inst->type_id()); in AdaptPhiInstructionsForAddedEdge() 176 phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {undef_id})); in AdaptPhiInstructionsForAddedEdge() 177 phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {from_id})); in AdaptPhiInstructionsForAddedEdge()
|
/external/deqp-deps/SPIRV-Tools/source/reduce/ |
D | reduction_util.cpp | 49 to_block->ForEachPhiInst([&from_id](Instruction* phi_inst) { in AdaptPhiInstructionsForRemovedEdge() argument 52 for (uint32_t index = 0; index < phi_inst->NumInOperands(); index += 2) { in AdaptPhiInstructionsForRemovedEdge() 55 if (phi_inst->GetInOperand(index + 1).words[0] != from_id) { in AdaptPhiInstructionsForRemovedEdge() 56 new_in_operands.push_back(phi_inst->GetInOperand(index)); in AdaptPhiInstructionsForRemovedEdge() 57 new_in_operands.push_back(phi_inst->GetInOperand(index + 1)); in AdaptPhiInstructionsForRemovedEdge() 60 phi_inst->SetInOperands(std::move(new_in_operands)); in AdaptPhiInstructionsForRemovedEdge()
|
D | structured_loop_to_selection_reduction_opportunity.cpp | 172 to_block->ForEachPhiInst([this, &from_id](Instruction* phi_inst) { in AdaptPhiInstructionsForAddedEdge() argument 175 auto undef_id = FindOrCreateGlobalUndef(context_, phi_inst->type_id()); in AdaptPhiInstructionsForAddedEdge() 176 phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {undef_id})); in AdaptPhiInstructionsForAddedEdge() 177 phi_inst->AddOperand(Operand(SPV_OPERAND_TYPE_ID, {from_id})); in AdaptPhiInstructionsForAddedEdge()
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | transformation_add_dead_block.cpp | 148 ->ForEachPhiInst([this](opt::Instruction* phi_inst) { in Apply() argument 151 opt::Operand copy_of_existing_operand = phi_inst->GetInOperand(0); in Apply() 153 phi_inst->AddOperand(std::move(copy_of_existing_operand)); in Apply() 154 phi_inst->AddOperand({SPV_OPERAND_TYPE_ID, {message_.fresh_id()}}); in Apply()
|
D | transformation_split_block.cpp | 109 new_bb->ForEachPhiInst([block_to_split](opt::Instruction* phi_inst) { in Apply() argument 112 assert(phi_inst->NumInOperands() == 2 && in Apply() 115 phi_inst->SetInOperand(1, {block_to_split->id()}); in Apply()
|
D | transformation_outline_function.cpp | 784 cloned_block->ForEachPhiInst([this](opt::Instruction* phi_inst) { in PopulateOutlinedFunction() argument 786 predecessor_index < phi_inst->NumInOperands(); in PopulateOutlinedFunction() 788 if (phi_inst->GetSingleWordInOperand(predecessor_index) == in PopulateOutlinedFunction() 790 phi_inst->SetInOperand(predecessor_index, in PopulateOutlinedFunction() 880 block_it->ForEachPhiInst([this](opt::Instruction* phi_inst) { in ShrinkOriginalRegion() argument 882 predecessor_index < phi_inst->NumInOperands(); in ShrinkOriginalRegion() 884 if (phi_inst->GetSingleWordInOperand(predecessor_index) == in ShrinkOriginalRegion() 886 phi_inst->SetInOperand(predecessor_index, {message_.entry_block()}); in ShrinkOriginalRegion()
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | transformation_add_dead_block.cpp | 150 ->ForEachPhiInst([this](opt::Instruction* phi_inst) { in Apply() argument 153 opt::Operand copy_of_existing_operand = phi_inst->GetInOperand(0); in Apply() 155 phi_inst->AddOperand(std::move(copy_of_existing_operand)); in Apply() 156 phi_inst->AddOperand({SPV_OPERAND_TYPE_ID, {message_.fresh_id()}}); in Apply()
|
D | transformation_split_block.cpp | 111 new_bb->ForEachPhiInst([block_to_split](opt::Instruction* phi_inst) { in Apply() argument 114 assert(phi_inst->NumInOperands() == 2 && in Apply() 117 phi_inst->SetInOperand(1, {block_to_split->id()}); in Apply()
|
D | transformation_outline_function.cpp | 795 cloned_block->ForEachPhiInst([this](opt::Instruction* phi_inst) { in PopulateOutlinedFunction() argument 797 predecessor_index < phi_inst->NumInOperands(); in PopulateOutlinedFunction() 799 if (phi_inst->GetSingleWordInOperand(predecessor_index) == in PopulateOutlinedFunction() 801 phi_inst->SetInOperand(predecessor_index, in PopulateOutlinedFunction() 891 block_it->ForEachPhiInst([this](opt::Instruction* phi_inst) { in ShrinkOriginalRegion() argument 893 predecessor_index < phi_inst->NumInOperands(); in ShrinkOriginalRegion() 895 if (phi_inst->GetSingleWordInOperand(predecessor_index) == in ShrinkOriginalRegion() 897 phi_inst->SetInOperand(predecessor_index, {message_.entry_block()}); in ShrinkOriginalRegion()
|
/external/angle/third_party/spirv-tools/src/source/fuzz/ |
D | transformation_add_dead_block.cpp | 150 ->ForEachPhiInst([this](opt::Instruction* phi_inst) { in Apply() argument 153 opt::Operand copy_of_existing_operand = phi_inst->GetInOperand(0); in Apply() 155 phi_inst->AddOperand(std::move(copy_of_existing_operand)); in Apply() 156 phi_inst->AddOperand({SPV_OPERAND_TYPE_ID, {message_.fresh_id()}}); in Apply()
|
D | transformation_split_block.cpp | 137 new_bb->ForEachPhiInst([block_to_split](opt::Instruction* phi_inst) { in Apply() argument 140 assert(phi_inst->NumInOperands() == 2 && in Apply() 143 phi_inst->SetInOperand(1, {block_to_split->id()}); in Apply()
|
D | transformation_outline_function.cpp | 816 cloned_block->ForEachPhiInst([this](opt::Instruction* phi_inst) { in PopulateOutlinedFunction() argument 818 predecessor_index < phi_inst->NumInOperands(); in PopulateOutlinedFunction() 820 if (phi_inst->GetSingleWordInOperand(predecessor_index) == in PopulateOutlinedFunction() 822 phi_inst->SetInOperand(predecessor_index, in PopulateOutlinedFunction() 912 block_it->ForEachPhiInst([this](opt::Instruction* phi_inst) { in ShrinkOriginalRegion() argument 914 predecessor_index < phi_inst->NumInOperands(); in ShrinkOriginalRegion() 916 if (phi_inst->GetSingleWordInOperand(predecessor_index) == in ShrinkOriginalRegion() 918 phi_inst->SetInOperand(predecessor_index, {message_.entry_block()}); in ShrinkOriginalRegion()
|
/external/angle/third_party/spirv-tools/src/source/opt/ |
D | basic_block.cpp | 260 [this, new_block, context](Instruction* phi_inst) { in SplitBasicBlock() argument 262 for (uint32_t i = 1; i < phi_inst->NumInOperands(); i += 2) { in SplitBasicBlock() 263 if (phi_inst->GetSingleWordInOperand(i) == this->id()) { in SplitBasicBlock() 265 phi_inst->SetInOperand(i, {new_block->id()}); in SplitBasicBlock() 270 context->UpdateDefUse(phi_inst); in SplitBasicBlock()
|
D | ssa_rewrite_pass.cpp | 475 std::unique_ptr<Instruction> phi_inst( in ApplyReplacements() local 478 generated_phis.push_back(phi_inst.get()); in ApplyReplacements() 479 pass_->get_def_use_mgr()->AnalyzeInstDef(&*phi_inst); in ApplyReplacements() 480 pass_->context()->set_instr_block(&*phi_inst, phi_candidate->bb()); in ApplyReplacements() 482 insert_it.InsertBefore(std::move(phi_inst)); in ApplyReplacements() 493 for (Instruction* phi_inst : generated_phis) { in ApplyReplacements() 494 pass_->get_def_use_mgr()->AnalyzeInstUse(&*phi_inst); in ApplyReplacements()
|
D | inst_bindless_check_pass.cpp | 298 Instruction* phi_inst = builder.AddPhi( in GenCheckCode() local 302 phi_inst->result_id()); in GenCheckCode()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | basic_block.cpp | 260 [this, new_block, context](Instruction* phi_inst) { in SplitBasicBlock() argument 262 for (uint32_t i = 1; i < phi_inst->NumInOperands(); i += 2) { in SplitBasicBlock() 263 if (phi_inst->GetSingleWordInOperand(i) == this->id()) { in SplitBasicBlock() 265 phi_inst->SetInOperand(i, {new_block->id()}); in SplitBasicBlock() 270 context->UpdateDefUse(phi_inst); in SplitBasicBlock()
|
D | ssa_rewrite_pass.cpp | 475 std::unique_ptr<Instruction> phi_inst( in ApplyReplacements() local 478 generated_phis.push_back(phi_inst.get()); in ApplyReplacements() 479 pass_->get_def_use_mgr()->AnalyzeInstDef(&*phi_inst); in ApplyReplacements() 480 pass_->context()->set_instr_block(&*phi_inst, phi_candidate->bb()); in ApplyReplacements() 482 insert_it.InsertBefore(std::move(phi_inst)); in ApplyReplacements() 493 for (Instruction* phi_inst : generated_phis) { in ApplyReplacements() 494 pass_->get_def_use_mgr()->AnalyzeInstUse(&*phi_inst); in ApplyReplacements()
|
D | inst_bindless_check_pass.cpp | 298 Instruction* phi_inst = builder.AddPhi( in GenCheckCode() local 302 phi_inst->result_id()); in GenCheckCode()
|
D | inst_buff_addr_check_pass.cpp | 124 Instruction* phi_inst = in GenCheckCode() local 127 context()->ReplaceAllUsesWith(ref_inst->result_id(), phi_inst->result_id()); in GenCheckCode()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | basic_block.cpp | 260 [this, new_block, context](Instruction* phi_inst) { in SplitBasicBlock() argument 262 for (uint32_t i = 1; i < phi_inst->NumInOperands(); i += 2) { in SplitBasicBlock() 263 if (phi_inst->GetSingleWordInOperand(i) == this->id()) { in SplitBasicBlock() 265 phi_inst->SetInOperand(i, {new_block->id()}); in SplitBasicBlock() 270 context->UpdateDefUse(phi_inst); in SplitBasicBlock()
|
D | ssa_rewrite_pass.cpp | 475 std::unique_ptr<Instruction> phi_inst( in ApplyReplacements() local 478 generated_phis.push_back(phi_inst.get()); in ApplyReplacements() 479 pass_->get_def_use_mgr()->AnalyzeInstDef(&*phi_inst); in ApplyReplacements() 480 pass_->context()->set_instr_block(&*phi_inst, phi_candidate->bb()); in ApplyReplacements() 482 insert_it.InsertBefore(std::move(phi_inst)); in ApplyReplacements() 493 for (Instruction* phi_inst : generated_phis) { in ApplyReplacements() 494 pass_->get_def_use_mgr()->AnalyzeInstUse(&*phi_inst); in ApplyReplacements()
|
D | inst_bindless_check_pass.cpp | 298 Instruction* phi_inst = builder.AddPhi( in GenCheckCode() local 302 phi_inst->result_id()); in GenCheckCode()
|