Home
last modified time | relevance | path

Searched refs:merge_block (Results 1 – 25 of 82) sorted by relevance

1234

/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_merge_function_returns.cpp144 for (uint32_t merge_block : merge_blocks) { in Apply() local
145 opt::BasicBlock* block = GetIRContext()->get_instr_block(merge_block); in Apply()
150 ->get_instr_block(merge_block) in Apply()
156 actual_merge_blocks.emplace_back(merge_block); in Apply()
164 GetOrCreateSimpleLoopPreheader(merge_block)->id()); in Apply()
171 SplitBlockAfterOpPhiOrOpVariable(merge_block); in Apply()
172 actual_merge_blocks.emplace_back(merge_block); in Apply()
262 uint32_t merge_block = in GetMergeBlocksOfLoopsContainingBlocks() local
265 while (merge_block != 0 && !result.count(merge_block)) { in GetMergeBlocksOfLoopsContainingBlocks()
267 result.emplace(merge_block); in GetMergeBlocksOfLoopsContainingBlocks()
[all …]
Dtransformation_merge_function_returns.cpp107 uint32_t merge_block = in IsApplicable() local
110 while (merge_block != 0) { in IsApplicable()
113 if (merge_blocks_to_returning_preds.count(merge_block)) { in IsApplicable()
114 merge_blocks_to_returning_preds[merge_block].emplace(block); in IsApplicable()
120 merge_blocks_to_returning_preds.emplace(merge_block, in IsApplicable()
124 block = merge_block; in IsApplicable()
125 merge_block = in IsApplicable()
126 ir_context->GetStructuredCFGAnalysis()->LoopMergeBlock(merge_block); in IsApplicable()
133 uint32_t merge_block = merge_block_entry.first; in IsApplicable() local
135 ir_context->get_instr_block(merge_block) in IsApplicable()
[all …]
Dfuzzer_pass_add_dead_breaks.cpp42 auto merge_block = in Apply() local
45 assert(merge_block && "Merge block can't be null"); in Apply()
47 merge_blocks.push_back(merge_block); in Apply()
55 for (auto* merge_block : merge_blocks) { in Apply() local
67 if (!block.IsSuccessor(merge_block)) { in Apply()
68 merge_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply()
87 block.id(), merge_block->id(), break_condition, std::move(phi_ids)); in Apply()
/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass_merge_function_returns.cpp144 for (uint32_t merge_block : merge_blocks) { in Apply() local
145 opt::BasicBlock* block = GetIRContext()->get_instr_block(merge_block); in Apply()
150 ->get_instr_block(merge_block) in Apply()
156 actual_merge_blocks.emplace_back(merge_block); in Apply()
164 GetOrCreateSimpleLoopPreheader(merge_block)->id()); in Apply()
171 SplitBlockAfterOpPhiOrOpVariable(merge_block); in Apply()
172 actual_merge_blocks.emplace_back(merge_block); in Apply()
262 uint32_t merge_block = in GetMergeBlocksOfLoopsContainingBlocks() local
265 while (merge_block != 0 && !result.count(merge_block)) { in GetMergeBlocksOfLoopsContainingBlocks()
267 result.emplace(merge_block); in GetMergeBlocksOfLoopsContainingBlocks()
[all …]
Dtransformation_merge_function_returns.cpp107 uint32_t merge_block = in IsApplicable() local
110 while (merge_block != 0) { in IsApplicable()
113 if (merge_blocks_to_returning_preds.count(merge_block)) { in IsApplicable()
114 merge_blocks_to_returning_preds[merge_block].emplace(block); in IsApplicable()
120 merge_blocks_to_returning_preds.emplace(merge_block, in IsApplicable()
124 block = merge_block; in IsApplicable()
125 merge_block = in IsApplicable()
126 ir_context->GetStructuredCFGAnalysis()->LoopMergeBlock(merge_block); in IsApplicable()
133 uint32_t merge_block = merge_block_entry.first; in IsApplicable() local
135 ir_context->get_instr_block(merge_block) in IsApplicable()
[all …]
Dfuzzer_pass_add_dead_breaks.cpp42 auto merge_block = in Apply() local
45 assert(merge_block && "Merge block can't be null"); in Apply()
47 merge_blocks.push_back(merge_block); in Apply()
55 for (auto* merge_block : merge_blocks) { in Apply() local
67 if (!block.IsSuccessor(merge_block)) { in Apply()
68 merge_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply()
87 block.id(), merge_block->id(), break_condition, std::move(phi_ids)); in Apply()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_merge_function_returns.cpp144 for (uint32_t merge_block : merge_blocks) { in Apply() local
145 opt::BasicBlock* block = GetIRContext()->get_instr_block(merge_block); in Apply()
150 ->get_instr_block(merge_block) in Apply()
156 actual_merge_blocks.emplace_back(merge_block); in Apply()
164 GetOrCreateSimpleLoopPreheader(merge_block)->id()); in Apply()
171 SplitBlockAfterOpPhiOrOpVariable(merge_block); in Apply()
172 actual_merge_blocks.emplace_back(merge_block); in Apply()
262 uint32_t merge_block = in GetMergeBlocksOfLoopsContainingBlocks() local
265 while (merge_block != 0 && !result.count(merge_block)) { in GetMergeBlocksOfLoopsContainingBlocks()
267 result.emplace(merge_block); in GetMergeBlocksOfLoopsContainingBlocks()
[all …]
Dtransformation_merge_function_returns.cpp107 uint32_t merge_block = in IsApplicable() local
110 while (merge_block != 0) { in IsApplicable()
113 if (merge_blocks_to_returning_preds.count(merge_block)) { in IsApplicable()
114 merge_blocks_to_returning_preds[merge_block].emplace(block); in IsApplicable()
120 merge_blocks_to_returning_preds.emplace(merge_block, in IsApplicable()
124 block = merge_block; in IsApplicable()
125 merge_block = in IsApplicable()
126 ir_context->GetStructuredCFGAnalysis()->LoopMergeBlock(merge_block); in IsApplicable()
133 uint32_t merge_block = merge_block_entry.first; in IsApplicable() local
135 ir_context->get_instr_block(merge_block) in IsApplicable()
[all …]
Dfuzzer_pass_add_dead_breaks.cpp42 auto merge_block = in Apply() local
45 assert(merge_block && "Merge block can't be null"); in Apply()
47 merge_blocks.push_back(merge_block); in Apply()
55 for (auto* merge_block : merge_blocks) { in Apply() local
67 if (!block.IsSuccessor(merge_block)) { in Apply()
68 merge_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply()
87 block.id(), merge_block->id(), break_condition, std::move(phi_ids)); in Apply()
/third_party/spirv-tools/source/val/
Dfunction.cpp72 BasicBlock& merge_block = blocks_.at(merge_id); in RegisterLoopMerge() local
76 current_block_->RegisterStructuralSuccessor(&merge_block); in RegisterLoopMerge()
80 merge_block.set_type(kBlockTypeMerge); in RegisterLoopMerge()
83 AddConstruct({ConstructType::kLoop, current_block_, &merge_block}); in RegisterLoopMerge()
89 merge_block_header_[&merge_block] = current_block_; in RegisterLoopMerge()
102 BasicBlock& merge_block = blocks_.at(merge_id); in RegisterSelectionMerge() local
104 merge_block.set_type(kBlockTypeMerge); in RegisterSelectionMerge()
105 merge_block_header_[&merge_block] = current_block_; in RegisterSelectionMerge()
106 current_block_->RegisterStructuralSuccessor(&merge_block); in RegisterSelectionMerge()
108 AddConstruct({ConstructType::kSelection, current_block(), &merge_block}); in RegisterSelectionMerge()
/third_party/skia/third_party/externals/spirv-tools/source/reduce/
Dstructured_construct_to_block_reduction_opportunity.cpp26 auto merge_block = context_->cfg()->block(header_block->MergeBlockId()); in Apply() local
39 if (header_block != &*block_it && merge_block != &*block_it && in Apply()
41 postdominators->Dominates(merge_block, &*block_it)) { in Apply()
60 {{SPV_OPERAND_TYPE_ID, {merge_block->id()}}}); in Apply()
Dstructured_construct_to_block_reduction_opportunity_finder.cpp84 auto* merge_block = context->cfg()->block( in GetAvailableOpportunities() local
86 if (!context->IsReachable(*merge_block)) { in GetAvailableOpportunities()
91 assert(dominators->Dominates(&block, merge_block) && in GetAvailableOpportunities()
93 if (!postdominators->Dominates(merge_block, &block)) { in GetAvailableOpportunities()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dstructured_construct_to_block_reduction_opportunity.cpp26 auto merge_block = context_->cfg()->block(header_block->MergeBlockId()); in Apply() local
39 if (header_block != &*block_it && merge_block != &*block_it && in Apply()
41 postdominators->Dominates(merge_block, &*block_it)) { in Apply()
60 {{SPV_OPERAND_TYPE_ID, {merge_block->id()}}}); in Apply()
Dstructured_construct_to_block_reduction_opportunity_finder.cpp84 auto* merge_block = context->cfg()->block( in GetAvailableOpportunities() local
86 if (!context->IsReachable(*merge_block)) { in GetAvailableOpportunities()
91 assert(dominators->Dominates(&block, merge_block) && in GetAvailableOpportunities()
93 if (!postdominators->Dominates(merge_block, &block)) { in GetAvailableOpportunities()
/third_party/spirv-tools/source/reduce/
Dstructured_construct_to_block_reduction_opportunity.cpp26 auto merge_block = context_->cfg()->block(header_block->MergeBlockId()); in Apply() local
39 if (header_block != &*block_it && merge_block != &*block_it && in Apply()
41 postdominators->Dominates(merge_block, &*block_it)) { in Apply()
60 {{SPV_OPERAND_TYPE_ID, {merge_block->id()}}}); in Apply()
Dstructured_construct_to_block_reduction_opportunity_finder.cpp84 auto* merge_block = context->cfg()->block( in GetAvailableOpportunities() local
86 if (!context->IsReachable(*merge_block)) { in GetAvailableOpportunities()
91 assert(dominators->Dominates(&block, merge_block) && in GetAvailableOpportunities()
93 if (!postdominators->Dominates(merge_block, &block)) { in GetAvailableOpportunities()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dmerge_return_pass.cpp267 void MergeReturnPass::CreatePhiNodesForInst(BasicBlock* merge_block, in CreatePhiNodesForInst() argument
270 context()->GetDominatorAnalysis(merge_block->GetParent()); in CreatePhiNodesForInst()
308 const std::set<uint32_t>& new_edges = new_edges_[merge_block]; in CreatePhiNodesForInst()
312 std::vector<uint32_t> preds = cfg()->preds(merge_block->id()); in CreatePhiNodesForInst()
345 Instruction* insert_pos = &*merge_block->begin(); in CreatePhiNodesForInst()
351 context()->set_instr_block(new_phi, merge_block); in CreatePhiNodesForInst()
353 new_phi->ForEachInId([dom_tree, merge_block, this](uint32_t* use_id) { in CreatePhiNodesForInst()
356 if (use_bb != nullptr && !dom_tree->Dominates(use_bb, merge_block)) { in CreatePhiNodesForInst()
357 CreatePhiNodesForInst(merge_block, *use); in CreatePhiNodesForInst()
362 context(), &*merge_block->begin(), in CreatePhiNodesForInst()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dmerge_return_pass.cpp267 void MergeReturnPass::CreatePhiNodesForInst(BasicBlock* merge_block, in CreatePhiNodesForInst() argument
270 context()->GetDominatorAnalysis(merge_block->GetParent()); in CreatePhiNodesForInst()
308 const std::set<uint32_t>& new_edges = new_edges_[merge_block]; in CreatePhiNodesForInst()
312 std::vector<uint32_t> preds = cfg()->preds(merge_block->id()); in CreatePhiNodesForInst()
345 Instruction* insert_pos = &*merge_block->begin(); in CreatePhiNodesForInst()
351 context()->set_instr_block(new_phi, merge_block); in CreatePhiNodesForInst()
353 new_phi->ForEachInId([dom_tree, merge_block, this](uint32_t* use_id) { in CreatePhiNodesForInst()
356 if (use_bb != nullptr && !dom_tree->Dominates(use_bb, merge_block)) { in CreatePhiNodesForInst()
357 CreatePhiNodesForInst(merge_block, *use); in CreatePhiNodesForInst()
362 context(), &*merge_block->begin(), in CreatePhiNodesForInst()
[all …]
/third_party/spirv-tools/source/opt/
Dmerge_return_pass.cpp267 void MergeReturnPass::CreatePhiNodesForInst(BasicBlock* merge_block, in CreatePhiNodesForInst() argument
270 context()->GetDominatorAnalysis(merge_block->GetParent()); in CreatePhiNodesForInst()
308 const std::set<uint32_t>& new_edges = new_edges_[merge_block]; in CreatePhiNodesForInst()
312 std::vector<uint32_t> preds = cfg()->preds(merge_block->id()); in CreatePhiNodesForInst()
345 Instruction* insert_pos = &*merge_block->begin(); in CreatePhiNodesForInst()
351 context()->set_instr_block(new_phi, merge_block); in CreatePhiNodesForInst()
353 new_phi->ForEachInId([dom_tree, merge_block, this](uint32_t* use_id) { in CreatePhiNodesForInst()
356 if (use_bb != nullptr && !dom_tree->Dominates(use_bb, merge_block)) { in CreatePhiNodesForInst()
357 CreatePhiNodesForInst(merge_block, *use); in CreatePhiNodesForInst()
362 context(), &*merge_block->begin(), in CreatePhiNodesForInst()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dfunction.cpp72 BasicBlock& merge_block = blocks_.at(merge_id); in RegisterLoopMerge() local
78 merge_block.set_type(kBlockTypeMerge); in RegisterLoopMerge()
81 AddConstruct({ConstructType::kLoop, current_block_, &merge_block}); in RegisterLoopMerge()
87 merge_block_header_[&merge_block] = current_block_; in RegisterLoopMerge()
100 BasicBlock& merge_block = blocks_.at(merge_id); in RegisterSelectionMerge() local
102 merge_block.set_type(kBlockTypeMerge); in RegisterSelectionMerge()
103 merge_block_header_[&merge_block] = current_block_; in RegisterSelectionMerge()
105 AddConstruct({ConstructType::kSelection, current_block(), &merge_block}); in RegisterSelectionMerge()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dfunction.cpp72 BasicBlock& merge_block = blocks_.at(merge_id); in RegisterLoopMerge() local
78 merge_block.set_type(kBlockTypeMerge); in RegisterLoopMerge()
81 AddConstruct({ConstructType::kLoop, current_block_, &merge_block}); in RegisterLoopMerge()
87 merge_block_header_[&merge_block] = current_block_; in RegisterLoopMerge()
100 BasicBlock& merge_block = blocks_.at(merge_id); in RegisterSelectionMerge() local
102 merge_block.set_type(kBlockTypeMerge); in RegisterSelectionMerge()
103 merge_block_header_[&merge_block] = current_block_; in RegisterSelectionMerge()
105 AddConstruct({ConstructType::kSelection, current_block(), &merge_block}); in RegisterSelectionMerge()
/third_party/skia/third_party/externals/spirv-cross/shaders-hlsl/asm/frag/
Dimplicit-read-dep-phi.asm.frag57 OpLoopMerge %merge_block %continue_block None
63 OpBranchConditional %22 %15 %merge_block
69 OpBranchConditional %31 %continue_block %merge_block
79 %merge_block = OpLabel
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/asm/frag/
Dimplicit-read-dep-phi.asm.frag57 OpLoopMerge %merge_block %continue_block None
63 OpBranchConditional %22 %15 %merge_block
69 OpBranchConditional %31 %continue_block %merge_block
79 %merge_block = OpLabel
/third_party/skia/third_party/externals/spirv-cross/shaders/asm/frag/
Dimplicit-read-dep-phi.asm.frag57 OpLoopMerge %merge_block %continue_block None
63 OpBranchConditional %22 %15 %merge_block
69 OpBranchConditional %31 %continue_block %merge_block
79 %merge_block = OpLabel
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_flow.c416 ifthen->merge_block = lp_build_insert_new_block(gallivm, "endif-block"); in lp_build_if()
421 ifthen->merge_block, in lp_build_if()
438 LLVMBuildBr(builder, ifthen->merge_block); in lp_build_else()
443 ifthen->merge_block, in lp_build_else()
460 LLVMBuildBr(builder, ifthen->merge_block); in lp_build_endif()
476 ifthen->true_block, ifthen->merge_block); in lp_build_endif()
480 LLVMPositionBuilderAtEnd(builder, ifthen->merge_block); in lp_build_endif()

1234