Home
last modified time | relevance | path

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

123

/external/deqp-deps/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()
/external/angle/third_party/vulkan-deps/spirv-tools/src/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()
/external/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()
/external/llvm/test/Transforms/SimplifyCFG/
Dguards.ll36 br i1 %c, label %guard_block, label %merge_block
41 br label %merge_block
43 merge_block:
50 ; CHECK: merge_block:
58 br i1 %c0, label %guard_block, label %merge_block
66 merge_block:
71 %val.left = phi i32 [ %val, %guard_block ], [ 50, %merge_block ]
75 %val.right = phi i32 [ %val, %guard_block ], [ 100, %merge_block ]
82 ; CHECK: merge_block:
/external/deqp-deps/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()
/external/angle/third_party/vulkan-deps/spirv-tools/src/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()
/external/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()
/external/swiftshader/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()
/external/deqp-deps/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()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/
Dfunction.cpp71 BasicBlock& merge_block = blocks_.at(merge_id); in RegisterLoopMerge() local
75 current_block_->RegisterStructuralSuccessor(&merge_block); in RegisterLoopMerge()
79 merge_block.set_type(kBlockTypeMerge); in RegisterLoopMerge()
82 AddConstruct({ConstructType::kLoop, current_block_, &merge_block}); in RegisterLoopMerge()
88 merge_block_header_[&merge_block] = current_block_; in RegisterLoopMerge()
101 BasicBlock& merge_block = blocks_.at(merge_id); in RegisterSelectionMerge() local
103 merge_block.set_type(kBlockTypeMerge); in RegisterSelectionMerge()
104 merge_block_header_[&merge_block] = current_block_; in RegisterSelectionMerge()
105 current_block_->RegisterStructuralSuccessor(&merge_block); in RegisterSelectionMerge()
107 AddConstruct({ConstructType::kSelection, current_block(), &merge_block}); in RegisterSelectionMerge()
/external/deqp-deps/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 …]
Dreplace_desc_array_access_using_var_index.cpp264 auto* merge_block = SeparateInstructionsIntoNewBlock( in ReplaceNonUniformAccessWithSwitchCase() local
275 access_chain, idx, insts_to_be_cloned, merge_block->id(), in ReplaceNonUniformAccessWithSwitchCase()
278 function->InsertBasicBlockBefore(std::move(case_block), merge_block); in ReplaceNonUniformAccessWithSwitchCase()
291 merge_block->id())); in ReplaceNonUniformAccessWithSwitchCase()
293 function->InsertBasicBlockBefore(std::move(default_block), merge_block); in ReplaceNonUniformAccessWithSwitchCase()
299 merge_block->id(), case_block_ids); in ReplaceNonUniformAccessWithSwitchCase()
303 uint32_t phi_id = CreatePhiInstruction(merge_block, phi_operands, in ReplaceNonUniformAccessWithSwitchCase()
309 ReplacePhiIncomingBlock(block->id(), merge_block->id()); in ReplaceNonUniformAccessWithSwitchCase()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dfunctional_control_flow_to_cfg.cc149 Block* merge_block = orig_block->splitBlock(op); in LowerIfOp() local
154 merge_block->addArgument(value.getType(), loc); in LowerIfOp()
155 ReplaceOpResultWithBlockArgs(loc, op_inst, merge_block, &builder); in LowerIfOp()
162 Block* then_block = builder.createBlock(merge_block); in LowerIfOp()
166 JumpToBlock(loc, get_then_result, merge_block, &builder); in LowerIfOp()
169 Block* else_block = builder.createBlock(merge_block); in LowerIfOp()
173 JumpToBlock(loc, get_else_result, merge_block, &builder); in LowerIfOp()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Dmerge_return_pass.cpp271 void MergeReturnPass::CreatePhiNodesForInst(BasicBlock* merge_block, in CreatePhiNodesForInst() argument
274 context()->GetDominatorAnalysis(merge_block->GetParent()); in CreatePhiNodesForInst()
312 const std::set<uint32_t>& new_edges = new_edges_[merge_block]; in CreatePhiNodesForInst()
316 std::vector<uint32_t> preds = cfg()->preds(merge_block->id()); in CreatePhiNodesForInst()
350 Instruction* insert_pos = &*merge_block->begin(); in CreatePhiNodesForInst()
356 context()->set_instr_block(new_phi, merge_block); in CreatePhiNodesForInst()
358 new_phi->ForEachInId([dom_tree, merge_block, this](uint32_t* use_id) { in CreatePhiNodesForInst()
361 if (use_bb != nullptr && !dom_tree->Dominates(use_bb, merge_block)) { in CreatePhiNodesForInst()
362 CreatePhiNodesForInst(merge_block, *use); in CreatePhiNodesForInst()
367 context(), &*merge_block->begin(), in CreatePhiNodesForInst()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dmerge_return_pass.cpp271 void MergeReturnPass::CreatePhiNodesForInst(BasicBlock* merge_block, in CreatePhiNodesForInst() argument
274 context()->GetDominatorAnalysis(merge_block->GetParent()); in CreatePhiNodesForInst()
312 const std::set<uint32_t>& new_edges = new_edges_[merge_block]; in CreatePhiNodesForInst()
316 std::vector<uint32_t> preds = cfg()->preds(merge_block->id()); in CreatePhiNodesForInst()
350 Instruction* insert_pos = &*merge_block->begin(); in CreatePhiNodesForInst()
356 context()->set_instr_block(new_phi, merge_block); in CreatePhiNodesForInst()
358 new_phi->ForEachInId([dom_tree, merge_block, this](uint32_t* use_id) { in CreatePhiNodesForInst()
361 if (use_bb != nullptr && !dom_tree->Dominates(use_bb, merge_block)) { in CreatePhiNodesForInst()
362 CreatePhiNodesForInst(merge_block, *use); in CreatePhiNodesForInst()
367 context(), &*merge_block->begin(), in CreatePhiNodesForInst()
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_flow.c413 ifthen->merge_block = lp_build_insert_new_block(gallivm, "endif-block"); in lp_build_if()
418 ifthen->merge_block, in lp_build_if()
435 LLVMBuildBr(builder, ifthen->merge_block); in lp_build_else()
440 ifthen->merge_block, in lp_build_else()
457 LLVMBuildBr(builder, ifthen->merge_block); in lp_build_endif()
473 ifthen->true_block, ifthen->merge_block); in lp_build_endif()
477 LLVMPositionBuilderAtEnd(builder, ifthen->merge_block); in lp_build_endif()

123