Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/spirv-tools/source/val/
H A 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 in IsStructuredExit()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
H A 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 in IsStructuredExit()
[all...]
/third_party/spirv-tools/source/val/
H A Dconstruct.cpp139 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
140 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
141 auto continue_block_id = merge_inst->GetOperandAs<uint32_t>(1u); in IsStructuredExit()
150 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
151 auto merge_block_id = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
184 auto merge_inst = &_.ordered_instructions()[index - 1]; in IsStructuredExit() local
185 if (merge_inst->opcode() == spv::Op::OpLoopMerge || in IsStructuredExit()
187 merge_inst->opcode() == spv::Op::OpSelectionMerge && in IsStructuredExit()
189 auto merge_target = merge_inst->GetOperandAs<uint32_t>(0u); in IsStructuredExit()
190 auto merge_block = merge_inst in IsStructuredExit()
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A 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 in Apply()
[all...]
H A Dfuzzer_pass_adjust_selection_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply()
37 if (merge_inst->opcode() != SpvOpSelectionMerge) { in Apply()
54 if (control == merge_inst->GetSingleWordOperand(1)) { in Apply()
H A Dfuzzer_pass_adjust_loop_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply()
37 if (merge_inst->opcode() != SpvOpLoopMerge) { in Apply()
47 uint32_t existing_mask = merge_inst->GetSingleWordOperand( in Apply()
H A Dtransformation_set_selection_control.cpp38 if (auto merge_inst = block->GetMergeInst()) { in IsApplicable()
39 return merge_inst->opcode() == SpvOpSelectionMerge; in IsApplicable()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A 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 in Apply()
[all...]
H A Dfuzzer_pass_adjust_selection_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply()
37 if (merge_inst->opcode() != SpvOpSelectionMerge) { in Apply()
54 if (control == merge_inst->GetSingleWordOperand(1)) { in Apply()
H A Dfuzzer_pass_adjust_loop_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply()
37 if (merge_inst->opcode() != SpvOpLoopMerge) { in Apply()
47 uint32_t existing_mask = merge_inst->GetSingleWordOperand( in Apply()
H A Dtransformation_set_selection_control.cpp38 if (auto merge_inst = block->GetMergeInst()) { in IsApplicable()
39 return merge_inst->opcode() == SpvOpSelectionMerge; in IsApplicable()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dstruct_cfg_analysis.cpp79 if (Instruction* merge_inst = block->GetMergeInst()) { in AddBlocksInFunction()
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 in LoopContinueBlock() local
186 Instruction* merge_inst = header->GetMergeInst(); SwitchMergeBlock() local
[all...]
H A 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()
169 // Move OpLine/OpNoLine information to merge_inst. This solves in MergeWithSuccessor()
175 merge_inst->ClearDbgLineInsts(); in MergeWithSuccessor()
176 auto& new_vec = merge_inst in MergeWithSuccessor()
[all...]
H A 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()
H A Dcode_sink.cpp115 Instruction* merge_inst = bb->GetMergeInst(); in FindNewBasicBlockFor() local
116 if (merge_inst == nullptr || merge_inst->opcode() != SpvOpSelectionMerge) { in FindNewBasicBlockFor()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dstruct_cfg_analysis.cpp79 if (Instruction* merge_inst = block->GetMergeInst()) { in AddBlocksInFunction()
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 in LoopContinueBlock() local
186 Instruction* merge_inst = header->GetMergeInst(); SwitchMergeBlock() local
[all...]
H A 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()
169 // Move OpLine/OpNoLine information to merge_inst. This solves in MergeWithSuccessor()
175 merge_inst->ClearDbgLineInsts(); in MergeWithSuccessor()
176 auto& new_vec = merge_inst in MergeWithSuccessor()
[all...]
H A 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/spirv-tools/source/opt/
H A Dstruct_cfg_analysis.cpp78 if (Instruction* merge_inst = block->GetMergeInst()) { in AddBlocksInFunction()
81 merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in AddBlocksInFunction()
84 if (merge_inst->opcode() == spv::Op::OpLoopMerge) { in AddBlocksInFunction()
88 merge_inst->GetSingleWordInOperand(kContinueNodeIndex); in AddBlocksInFunction()
100 if (merge_inst->NextNode()->opcode() == spv::Op::OpSwitch) { in AddBlocksInFunction()
126 Instruction* merge_inst = header->GetMergeInst(); in MergeBlock() local
127 return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in MergeBlock()
150 Instruction* merge_inst = header->GetMergeInst(); in LoopMergeBlock() local
151 return merge_inst->GetSingleWordInOperand(kMergeNodeIndex); in LoopMergeBlock()
161 Instruction* merge_inst in LoopContinueBlock() local
185 Instruction* merge_inst = header->GetMergeInst(); SwitchMergeBlock() local
[all...]
H A 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() == spv::Op::OpLoopMerge); in CanMergeWithSuccessor()
162 Instruction* merge_inst = bi->GetMergeInst(); in MergeWithSuccessor() local
189 if (merge_inst) { in MergeWithSuccessor()
190 if (pred_is_header && lab_id == merge_inst->GetSingleWordInOperand(0u)) { in MergeWithSuccessor()
193 context->KillInst(merge_inst); in MergeWithSuccessor()
195 // Move OpLine/OpNoLine information to merge_inst. This solves in MergeWithSuccessor()
201 merge_inst->ClearDbgLineInsts(); in MergeWithSuccessor()
202 auto& new_vec = merge_inst in MergeWithSuccessor()
[all...]
H A Ddead_branch_elim_pass.cpp191 Instruction* merge_inst = block->GetMergeInst(); in SimplifyBranch() local
193 if (merge_inst && merge_inst->opcode() == spv::Op::OpSelectionMerge) { in SimplifyBranch()
194 if (merge_inst->NextNode()->opcode() == spv::Op::OpSwitch && in SimplifyBranch()
215 live_lab_id, merge_inst->GetSingleWordInOperand(0), in SimplifyBranch()
223 context()->KillInst(merge_inst); in SimplifyBranch()
225 merge_inst->RemoveFromList(); in SimplifyBranch()
226 first_break->InsertBefore(std::unique_ptr<Instruction>(merge_inst)); in SimplifyBranch()
227 context()->set_instr_block(merge_inst, in SimplifyBranch()
/third_party/spirv-tools/source/fuzz/
H A Dtransformation_set_loop_control.cpp40 auto merge_inst = block->GetMergeInst(); in IsApplicable() local
41 if (!merge_inst || merge_inst->opcode() != spv::Op::OpLoopMerge) { in IsApplicable()
66 merge_inst->GetSingleWordInOperand(kLoopControlMaskInOperandIndex); in IsApplicable()
119 auto merge_inst = in Apply() local
122 merge_inst->GetSingleWordInOperand(kLoopControlMaskInOperandIndex); in Apply()
127 new_operands.push_back(merge_inst->GetInOperand(0)); in Apply()
128 new_operands.push_back(merge_inst->GetInOperand(1)); in Apply()
153 {merge_inst->GetSingleWordInOperand( in Apply()
177 merge_inst in Apply()
[all...]
H A Dfuzzer_pass_adjust_selection_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply()
37 if (merge_inst->opcode() != spv::Op::OpSelectionMerge) { in Apply()
55 spv::SelectionControlMask(merge_inst->GetSingleWordOperand(1))) { in Apply()
H A Dfuzzer_pass_adjust_loop_controls.cpp35 if (auto merge_inst = block.GetMergeInst()) { in Apply()
37 if (merge_inst->opcode() != spv::Op::OpLoopMerge) { in Apply()
47 uint32_t existing_mask = merge_inst->GetSingleWordOperand( in Apply()
H A Dtransformation_set_selection_control.cpp41 if (auto merge_inst = block->GetMergeInst()) { in IsApplicable()
42 return merge_inst->opcode() == spv::Op::OpSelectionMerge; in IsApplicable()

Completed in 13 milliseconds

12