Home
last modified time | relevance | path

Searched refs:mergeInst (Results 1 – 13 of 13) sorted by relevance

/third_party/glslang/SPIRV/
DInReadableOrder.cpp83 auto mergeInst = block->getMergeInstruction(); in visit() local
84 if (mergeInst) { in visit()
85 Id mergeId = mergeInst->getIdOperand(0); in visit()
88 if (mergeInst->getOpCode() == spv::OpLoopMerge) { in visit()
89 Id continueId = mergeInst->getIdOperand(1); in visit()
/third_party/flutter/skia/third_party/externals/spirv-tools/source/opt/
Ddead_branch_elim_pass.cpp157 ir::Instruction** branchInst, ir::Instruction** mergeInst, in GetConstConditionalSelectionBranch() argument
167 *mergeInst = &*ii; in GetConstConditionalSelectionBranch()
168 if ((*mergeInst)->opcode() != SpvOpSelectionMerge) in GetConstConditionalSelectionBranch()
200 ir::Instruction* mergeInst; in EliminateDeadBranches() local
203 if (!GetConstConditionalSelectionBranch(*bi, &br, &mergeInst, &condId, in EliminateDeadBranches()
213 mergeInst->GetSingleWordInOperand(kSelectionMergeMergeBlockIdInIdx); in EliminateDeadBranches()
218 def_use_mgr_->KillInst(mergeInst); in EliminateDeadBranches()
Dlocal_ssa_elim_pass.cpp398 auto mergeInst = (*block_itr)->end(); in SSABlockInitLoopHeader() local
399 --mergeInst; in SSABlockInitLoopHeader()
400 --mergeInst; in SSABlockInitLoopHeader()
401 uint32_t mergeLabel = mergeInst->GetSingleWordInOperand( in SSABlockInitLoopHeader()
Ddead_branch_elim_pass.h94 ir::Instruction** branchInst, ir::Instruction** mergeInst,
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Daggressive_dead_code_elim_pass.cpp210 Instruction* mergeInst) { in AddBreaksAndContinuesToWorklist() argument
211 assert(mergeInst->opcode() == SpvOpSelectionMerge || in AddBreaksAndContinuesToWorklist()
212 mergeInst->opcode() == SpvOpLoopMerge); in AddBreaksAndContinuesToWorklist()
214 BasicBlock* header = context()->get_instr_block(mergeInst); in AddBreaksAndContinuesToWorklist()
215 const uint32_t mergeId = mergeInst->GetSingleWordInOperand(0); in AddBreaksAndContinuesToWorklist()
228 if (mergeInst->opcode() != SpvOpLoopMerge) { in AddBreaksAndContinuesToWorklist()
234 mergeInst->GetSingleWordInOperand(kLoopMergeContinueBlockIdInIdx); in AddBreaksAndContinuesToWorklist()
490 Instruction* mergeInst = GetMergeInstruction(next_branch_inst); in MarkBlockAsLive() local
491 AddToWorklist(mergeInst); in MarkBlockAsLive()
Dmerge_return_pass.cpp76 if (Instruction* mergeInst = block->GetMergeInst()) { in GenerateState() local
77 if (mergeInst->opcode() == SpvOpLoopMerge) { in GenerateState()
79 state_.emplace_back(mergeInst, mergeInst); in GenerateState()
81 auto branchInst = mergeInst->NextNode(); in GenerateState()
87 state_.emplace_back(lastMergeInst, mergeInst); in GenerateState()
89 state_.emplace_back(mergeInst, mergeInst); in GenerateState()
95 state_.emplace_back(lastMergeInst, mergeInst); in GenerateState()
Daggressive_dead_code_elim_pass.h114 void AddBreaksAndContinuesToWorklist(Instruction* mergeInst);
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Daggressive_dead_code_elim_pass.cpp210 Instruction* mergeInst) { in AddBreaksAndContinuesToWorklist() argument
211 assert(mergeInst->opcode() == SpvOpSelectionMerge || in AddBreaksAndContinuesToWorklist()
212 mergeInst->opcode() == SpvOpLoopMerge); in AddBreaksAndContinuesToWorklist()
214 BasicBlock* header = context()->get_instr_block(mergeInst); in AddBreaksAndContinuesToWorklist()
215 const uint32_t mergeId = mergeInst->GetSingleWordInOperand(0); in AddBreaksAndContinuesToWorklist()
228 if (mergeInst->opcode() != SpvOpLoopMerge) { in AddBreaksAndContinuesToWorklist()
234 mergeInst->GetSingleWordInOperand(kLoopMergeContinueBlockIdInIdx); in AddBreaksAndContinuesToWorklist()
490 Instruction* mergeInst = GetMergeInstruction(next_branch_inst); in MarkBlockAsLive() local
491 AddToWorklist(mergeInst); in MarkBlockAsLive()
Dmerge_return_pass.cpp76 if (Instruction* mergeInst = block->GetMergeInst()) { in GenerateState() local
77 if (mergeInst->opcode() == SpvOpLoopMerge) { in GenerateState()
79 state_.emplace_back(mergeInst, mergeInst); in GenerateState()
81 auto branchInst = mergeInst->NextNode(); in GenerateState()
87 state_.emplace_back(lastMergeInst, mergeInst); in GenerateState()
89 state_.emplace_back(mergeInst, mergeInst); in GenerateState()
95 state_.emplace_back(lastMergeInst, mergeInst); in GenerateState()
Daggressive_dead_code_elim_pass.h114 void AddBreaksAndContinuesToWorklist(Instruction* mergeInst);
/third_party/spirv-tools/source/opt/
Daggressive_dead_code_elim_pass.cpp208 Instruction* mergeInst) { in AddBreaksAndContinuesToWorklist() argument
209 assert(mergeInst->opcode() == SpvOpSelectionMerge || in AddBreaksAndContinuesToWorklist()
210 mergeInst->opcode() == SpvOpLoopMerge); in AddBreaksAndContinuesToWorklist()
212 BasicBlock* header = context()->get_instr_block(mergeInst); in AddBreaksAndContinuesToWorklist()
213 const uint32_t mergeId = mergeInst->GetSingleWordInOperand(0); in AddBreaksAndContinuesToWorklist()
226 if (mergeInst->opcode() != SpvOpLoopMerge) { in AddBreaksAndContinuesToWorklist()
232 mergeInst->GetSingleWordInOperand(kLoopMergeContinueBlockIdInIdx); in AddBreaksAndContinuesToWorklist()
490 Instruction* mergeInst = GetMergeInstruction(next_branch_inst); in MarkBlockAsLive() local
491 AddToWorklist(mergeInst); in MarkBlockAsLive()
Dmerge_return_pass.cpp76 if (Instruction* mergeInst = block->GetMergeInst()) { in GenerateState() local
77 if (mergeInst->opcode() == SpvOpLoopMerge) { in GenerateState()
79 state_.emplace_back(mergeInst, mergeInst); in GenerateState()
81 auto branchInst = mergeInst->NextNode(); in GenerateState()
87 state_.emplace_back(lastMergeInst, mergeInst); in GenerateState()
89 state_.emplace_back(mergeInst, mergeInst); in GenerateState()
95 state_.emplace_back(lastMergeInst, mergeInst); in GenerateState()
Daggressive_dead_code_elim_pass.h114 void AddBreaksAndContinuesToWorklist(Instruction* mergeInst);