Home
last modified time | relevance | path

Searched refs:merge_inst (Results 1 – 25 of 50) sorted by relevance

12

/third_party/spirv-tools/source/val/
Dconstruct.cpp140 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
141 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
142 auto continue_block_id = merge_inst->GetOperandAs<uint32_t>(1u); in IsStructuredExit()
151 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
152 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
183 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
184 if (merge_inst->opcode() == SpvOpLoopMerge || in IsStructuredExit()
186 merge_inst->opcode() == SpvOpSelectionMerge && in IsStructuredExit()
188 auto merge_target = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
189 auto merge_block = merge_inst->function()->GetBlock(merge_target).first; in IsStructuredExit()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dconstruct.cpp155 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
156 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
157 auto continue_block_id = merge_inst->GetOperandAs<uint32_t>(1u); in IsStructuredExit()
166 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
167 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
197 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
198 if (merge_inst->opcode() == SpvOpLoopMerge || in IsStructuredExit()
200 merge_inst->opcode() == SpvOpSelectionMerge && in IsStructuredExit()
202 auto merge_target = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
203 auto merge_block = merge_inst->function()->GetBlock(merge_target).first; in IsStructuredExit()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dconstruct.cpp155 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
156 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
157 auto continue_block_id = merge_inst->GetOperandAs<uint32_t>(1u); in IsStructuredExit()
166 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
167 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
197 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
198 if (merge_inst->opcode() == SpvOpLoopMerge || in IsStructuredExit()
200 merge_inst->opcode() == SpvOpSelectionMerge && in IsStructuredExit()
202 auto merge_target = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
203 auto merge_block = merge_inst->function()->GetBlock(merge_target).first; in IsStructuredExit()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dtransformation_set_loop_control.cpp40 auto merge_inst = block->GetMergeInst(); in IsApplicable() local
41 if (!merge_inst || merge_inst->opcode() != SpvOpLoopMerge) { in IsApplicable()
64 merge_inst->GetSingleWordInOperand(kLoopControlMaskInOperandIndex); in IsApplicable()
113 auto merge_inst = in Apply() local
116 merge_inst->GetSingleWordInOperand(kLoopControlMaskInOperandIndex); in Apply()
121 new_operands.push_back(merge_inst->GetInOperand(0)); in Apply()
122 new_operands.push_back(merge_inst->GetInOperand(1)); in Apply()
146 {merge_inst->GetSingleWordInOperand( in Apply()
170 merge_inst->SetInOperands(std::move(new_operands)); in Apply()
Dfuzzer_pass_adjust_selection_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply() local
37 if (merge_inst->opcode() != SpvOpSelectionMerge) { in Apply()
54 if (control == merge_inst->GetSingleWordOperand(1)) { in Apply()
Dfuzzer_pass_adjust_loop_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply() local
37 if (merge_inst->opcode() != SpvOpLoopMerge) { in Apply()
47 uint32_t existing_mask = merge_inst->GetSingleWordOperand( in Apply()
Dtransformation_set_selection_control.cpp38 if (auto merge_inst = block->GetMergeInst()) { in IsApplicable() local
39 return merge_inst->opcode() == SpvOpSelectionMerge; in IsApplicable()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_set_loop_control.cpp40 auto merge_inst = block->GetMergeInst(); in IsApplicable() local
41 if (!merge_inst || merge_inst->opcode() != SpvOpLoopMerge) { in IsApplicable()
64 merge_inst->GetSingleWordInOperand(kLoopControlMaskInOperandIndex); in IsApplicable()
113 auto merge_inst = in Apply() local
116 merge_inst->GetSingleWordInOperand(kLoopControlMaskInOperandIndex); in Apply()
121 new_operands.push_back(merge_inst->GetInOperand(0)); in Apply()
122 new_operands.push_back(merge_inst->GetInOperand(1)); in Apply()
146 {merge_inst->GetSingleWordInOperand( in Apply()
170 merge_inst->SetInOperands(std::move(new_operands)); in Apply()
Dfuzzer_pass_adjust_selection_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply() local
37 if (merge_inst->opcode() != SpvOpSelectionMerge) { in Apply()
54 if (control == merge_inst->GetSingleWordOperand(1)) { in Apply()
Dfuzzer_pass_adjust_loop_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply() local
37 if (merge_inst->opcode() != SpvOpLoopMerge) { in Apply()
47 uint32_t existing_mask = merge_inst->GetSingleWordOperand( in Apply()
Dtransformation_set_selection_control.cpp38 if (auto merge_inst = block->GetMergeInst()) { in IsApplicable() local
39 return merge_inst->opcode() == SpvOpSelectionMerge; in IsApplicable()
/third_party/spirv-tools/source/fuzz/
Dtransformation_set_loop_control.cpp40 auto merge_inst = block->GetMergeInst(); in IsApplicable() local
41 if (!merge_inst || merge_inst->opcode() != SpvOpLoopMerge) { in IsApplicable()
64 merge_inst->GetSingleWordInOperand(kLoopControlMaskInOperandIndex); in IsApplicable()
113 auto merge_inst = in Apply() local
116 merge_inst->GetSingleWordInOperand(kLoopControlMaskInOperandIndex); in Apply()
121 new_operands.push_back(merge_inst->GetInOperand(0)); in Apply()
122 new_operands.push_back(merge_inst->GetInOperand(1)); in Apply()
146 {merge_inst->GetSingleWordInOperand( in Apply()
170 merge_inst->SetInOperands(std::move(new_operands)); in Apply()
Dfuzzer_pass_adjust_selection_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply() local
37 if (merge_inst->opcode() != SpvOpSelectionMerge) { in Apply()
54 if (control == merge_inst->GetSingleWordOperand(1)) { in Apply()
Dfuzzer_pass_adjust_loop_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply() local
37 if (merge_inst->opcode() != SpvOpLoopMerge) { in Apply()
47 uint32_t existing_mask = merge_inst->GetSingleWordOperand( in Apply()
Dtransformation_set_selection_control.cpp38 if (auto merge_inst = block->GetMergeInst()) { in IsApplicable() local
39 return merge_inst->opcode() == SpvOpSelectionMerge; in IsApplicable()
/third_party/spirv-tools/source/opt/
Dstruct_cfg_analysis.cpp79 if (Instruction* merge_inst = block->GetMergeInst()) { in AddBlocksInFunction() local
82 merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in AddBlocksInFunction()
85 if (merge_inst->opcode() == SpvOpLoopMerge) { in AddBlocksInFunction()
89 merge_inst->GetSingleWordInOperand(kContinueNodeIndex); in AddBlocksInFunction()
101 if (merge_inst->NextNode()->opcode() == SpvOpSwitch) { in AddBlocksInFunction()
127 Instruction* merge_inst = header->GetMergeInst(); in MergeBlock() local
128 return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in MergeBlock()
151 Instruction* merge_inst = header->GetMergeInst(); in LoopMergeBlock() local
152 return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in LoopMergeBlock()
162 Instruction* merge_inst = header->GetMergeInst(); in LoopContinueBlock() local
[all …]
Dblock_merge_util.cpp106 Instruction* merge_inst = block->GetMergeInst(); in CanMergeWithSuccessor() local
108 if (pred_is_header && lab_id != merge_inst->GetSingleWordInOperand(0u)) { in CanMergeWithSuccessor()
123 assert(merge_inst->opcode() == SpvOpLoopMerge); in CanMergeWithSuccessor()
141 Instruction* merge_inst = bi->GetMergeInst(); in MergeWithSuccessor() local
163 if (merge_inst) { in MergeWithSuccessor()
164 if (pred_is_header && lab_id == merge_inst->GetSingleWordInOperand(0u)) { in MergeWithSuccessor()
167 context->KillInst(merge_inst); in MergeWithSuccessor()
175 merge_inst->ClearDbgLineInsts(); in MergeWithSuccessor()
176 auto& new_vec = merge_inst->dbg_line_insts(); in MergeWithSuccessor()
186 merge_inst->InsertBefore(terminator); in MergeWithSuccessor()
Ddead_branch_elim_pass.cpp195 Instruction* merge_inst = block->GetMergeInst(); in SimplifyBranch() local
197 if (merge_inst && merge_inst->opcode() == SpvOpSelectionMerge) { in SimplifyBranch()
198 if (merge_inst->NextNode()->opcode() == SpvOpSwitch && in SimplifyBranch()
219 live_lab_id, merge_inst->GetSingleWordInOperand(0), in SimplifyBranch()
227 context()->KillInst(merge_inst); in SimplifyBranch()
229 merge_inst->RemoveFromList(); in SimplifyBranch()
230 first_break->InsertBefore(std::unique_ptr<Instruction>(merge_inst)); in SimplifyBranch()
231 context()->set_instr_block(merge_inst, in SimplifyBranch()
Dloop_unroller.cpp640 Instruction* merge_inst = loop->GetHeaderBlock()->GetLoopMergeInst(); in CopyBasicBlock() local
641 merge_inst->SetInOperand(1, {basic_block->id()}); in CopyBasicBlock()
642 context_->UpdateDefUse(merge_inst); in CopyBasicBlock()
654 Instruction* merge_inst = basic_block->GetLoopMergeInst(); in CopyBasicBlock() local
655 if (merge_inst) invalidated_instructions_.push_back(merge_inst); in CopyBasicBlock()
770 Instruction* merge_inst = loop->GetHeaderBlock()->GetLoopMergeInst(); in CloseUnrolledLoop() local
771 invalidated_instructions_.push_back(merge_inst); in CloseUnrolledLoop()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dstruct_cfg_analysis.cpp79 if (Instruction* merge_inst = block->GetMergeInst()) { in AddBlocksInFunction() local
82 merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in AddBlocksInFunction()
85 if (merge_inst->opcode() == SpvOpLoopMerge) { in AddBlocksInFunction()
89 merge_inst->GetSingleWordInOperand(kContinueNodeIndex); in AddBlocksInFunction()
101 if (merge_inst->NextNode()->opcode() == SpvOpSwitch) { in AddBlocksInFunction()
127 Instruction* merge_inst = header->GetMergeInst(); in MergeBlock() local
128 return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in MergeBlock()
151 Instruction* merge_inst = header->GetMergeInst(); in LoopMergeBlock() local
152 return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in LoopMergeBlock()
162 Instruction* merge_inst = header->GetMergeInst(); in LoopContinueBlock() local
[all …]
Dblock_merge_util.cpp106 Instruction* merge_inst = block->GetMergeInst(); in CanMergeWithSuccessor() local
108 if (pred_is_header && lab_id != merge_inst->GetSingleWordInOperand(0u)) { in CanMergeWithSuccessor()
123 assert(merge_inst->opcode() == SpvOpLoopMerge); in CanMergeWithSuccessor()
141 Instruction* merge_inst = bi->GetMergeInst(); in MergeWithSuccessor() local
163 if (merge_inst) { in MergeWithSuccessor()
164 if (pred_is_header && lab_id == merge_inst->GetSingleWordInOperand(0u)) { in MergeWithSuccessor()
167 context->KillInst(merge_inst); in MergeWithSuccessor()
175 merge_inst->ClearDbgLineInsts(); in MergeWithSuccessor()
176 auto& new_vec = merge_inst->dbg_line_insts(); in MergeWithSuccessor()
186 merge_inst->InsertBefore(terminator); in MergeWithSuccessor()
Ddead_branch_elim_pass.cpp195 Instruction* merge_inst = block->GetMergeInst(); in SimplifyBranch() local
197 if (merge_inst && merge_inst->opcode() == SpvOpSelectionMerge) { in SimplifyBranch()
198 if (merge_inst->NextNode()->opcode() == SpvOpSwitch && in SimplifyBranch()
219 live_lab_id, merge_inst->GetSingleWordInOperand(0), in SimplifyBranch()
227 context()->KillInst(merge_inst); in SimplifyBranch()
229 merge_inst->RemoveFromList(); in SimplifyBranch()
230 first_break->InsertBefore(std::unique_ptr<Instruction>(merge_inst)); in SimplifyBranch()
231 context()->set_instr_block(merge_inst, in SimplifyBranch()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dstruct_cfg_analysis.cpp79 if (Instruction* merge_inst = block->GetMergeInst()) { in AddBlocksInFunction() local
82 merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in AddBlocksInFunction()
85 if (merge_inst->opcode() == SpvOpLoopMerge) { in AddBlocksInFunction()
89 merge_inst->GetSingleWordInOperand(kContinueNodeIndex); in AddBlocksInFunction()
101 if (merge_inst->NextNode()->opcode() == SpvOpSwitch) { in AddBlocksInFunction()
127 Instruction* merge_inst = header->GetMergeInst(); in MergeBlock() local
128 return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in MergeBlock()
151 Instruction* merge_inst = header->GetMergeInst(); in LoopMergeBlock() local
152 return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in LoopMergeBlock()
162 Instruction* merge_inst = header->GetMergeInst(); in LoopContinueBlock() local
[all …]
Dblock_merge_util.cpp106 Instruction* merge_inst = block->GetMergeInst(); in CanMergeWithSuccessor() local
108 if (pred_is_header && lab_id != merge_inst->GetSingleWordInOperand(0u)) { in CanMergeWithSuccessor()
123 assert(merge_inst->opcode() == SpvOpLoopMerge); in CanMergeWithSuccessor()
141 Instruction* merge_inst = bi->GetMergeInst(); in MergeWithSuccessor() local
163 if (merge_inst) { in MergeWithSuccessor()
164 if (pred_is_header && lab_id == merge_inst->GetSingleWordInOperand(0u)) { in MergeWithSuccessor()
167 context->KillInst(merge_inst); in MergeWithSuccessor()
175 merge_inst->ClearDbgLineInsts(); in MergeWithSuccessor()
176 auto& new_vec = merge_inst->dbg_line_insts(); in MergeWithSuccessor()
186 merge_inst->InsertBefore(terminator); in MergeWithSuccessor()
Ddead_branch_elim_pass.cpp195 Instruction* merge_inst = block->GetMergeInst(); in SimplifyBranch() local
197 if (merge_inst && merge_inst->opcode() == SpvOpSelectionMerge) { in SimplifyBranch()
198 if (merge_inst->NextNode()->opcode() == SpvOpSwitch && in SimplifyBranch()
219 live_lab_id, merge_inst->GetSingleWordInOperand(0), in SimplifyBranch()
227 context()->KillInst(merge_inst); in SimplifyBranch()
229 merge_inst->RemoveFromList(); in SimplifyBranch()
230 first_break->InsertBefore(std::unique_ptr<Instruction>(merge_inst)); in SimplifyBranch()
231 context()->set_instr_block(merge_inst, in SimplifyBranch()

12