/third_party/spirv-tools/source/fuzz/ |
D | fuzzer_pass_merge_function_returns.cpp | 143 for (uint32_t merge_block : merge_blocks) { in Apply() local 144 opt::BasicBlock* block = GetIRContext()->get_instr_block(merge_block); in Apply() 149 ->get_instr_block(merge_block) in Apply() 155 actual_merge_blocks.emplace_back(merge_block); in Apply() 163 GetOrCreateSimpleLoopPreheader(merge_block)->id()); in Apply() 170 SplitBlockAfterOpPhiOrOpVariable(merge_block); in Apply() 171 actual_merge_blocks.emplace_back(merge_block); in Apply() 260 uint32_t merge_block = in GetMergeBlocksOfLoopsContainingBlocks() local 263 while (merge_block != 0 && !result.count(merge_block)) { in GetMergeBlocksOfLoopsContainingBlocks() 265 result.emplace(merge_block); in GetMergeBlocksOfLoopsContainingBlocks() [all …]
|
D | transformation_merge_function_returns.cpp | 103 uint32_t merge_block = in IsApplicable() local 106 while (merge_block != 0) { in IsApplicable() 109 if (merge_blocks_to_returning_preds.count(merge_block)) { in IsApplicable() 110 merge_blocks_to_returning_preds[merge_block].emplace(block); in IsApplicable() 116 merge_blocks_to_returning_preds.emplace(merge_block, in IsApplicable() 120 block = merge_block; in IsApplicable() 121 merge_block = in IsApplicable() 122 ir_context->GetStructuredCFGAnalysis()->LoopMergeBlock(merge_block); in IsApplicable() 129 uint32_t merge_block = merge_block_entry.first; in IsApplicable() local 131 ir_context->get_instr_block(merge_block) in IsApplicable() [all …]
|
D | fuzzer_pass_add_dead_breaks.cpp | 41 auto merge_block = in Apply() local 44 assert(merge_block && "Merge block can't be null"); in Apply() 46 merge_blocks.push_back(merge_block); in Apply() 54 for (auto* merge_block : merge_blocks) { in Apply() local 66 if (!block.IsSuccessor(merge_block)) { in Apply() 67 merge_block->ForEachPhiInst([this, &phi_ids](opt::Instruction* phi) { in Apply() 86 block.id(), merge_block->id(), break_condition, std::move(phi_ids)); in Apply()
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | fuzzer_pass_merge_function_returns.cpp | 144 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 …]
|
D | transformation_merge_function_returns.cpp | 107 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 …]
|
D | fuzzer_pass_add_dead_breaks.cpp | 42 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/ |
D | fuzzer_pass_merge_function_returns.cpp | 144 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 …]
|
D | transformation_merge_function_returns.cpp | 107 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 …]
|
D | fuzzer_pass_add_dead_breaks.cpp | 42 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/spirv-tools/source/reduce/ |
D | structured_construct_to_block_reduction_opportunity.cpp | 26 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()
|
D | structured_construct_to_block_reduction_opportunity_finder.cpp | 84 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/ |
D | structured_construct_to_block_reduction_opportunity.cpp | 26 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()
|
D | structured_construct_to_block_reduction_opportunity_finder.cpp | 84 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/boost/boost/sort/common/ |
D | merge_block.hpp | 35 struct merge_block struct 98 merge_block (Iter_t first, Iter_t last, Compare comp, in merge_block() function 123 merge_block(Iter_t first, Iter_t last, Compare comp) in merge_block() argument 124 : merge_block(first, last, comp, nullptr) { }; in merge_block() 126 ~ merge_block() in ~merge_block() argument 222 void merge_block<Iter_t, Compare, Power2> 340 void merge_block<Iter_t, Compare, Power2> 378 void merge_block<Iter_t, Compare, Power2>
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/val/ |
D | function.cpp | 78 BasicBlock& merge_block = blocks_.at(merge_id); in RegisterLoopMerge() local 84 merge_block.set_type(kBlockTypeMerge); in RegisterLoopMerge() 87 AddConstruct({ConstructType::kLoop, current_block_, &merge_block}); in RegisterLoopMerge() 93 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-tools/source/opt/ |
D | merge_return_pass.cpp | 267 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/ |
D | merge_return_pass.cpp | 267 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/ |
D | merge_return_pass.cpp | 265 void MergeReturnPass::CreatePhiNodesForInst(BasicBlock* merge_block, in CreatePhiNodesForInst() argument 268 context()->GetDominatorAnalysis(merge_block->GetParent()); in CreatePhiNodesForInst() 306 const std::set<uint32_t>& new_edges = new_edges_[merge_block]; in CreatePhiNodesForInst() 310 std::vector<uint32_t> preds = cfg()->preds(merge_block->id()); in CreatePhiNodesForInst() 343 Instruction* insert_pos = &*merge_block->begin(); in CreatePhiNodesForInst() 349 context()->set_instr_block(new_phi, merge_block); in CreatePhiNodesForInst() 351 new_phi->ForEachInId([dom_tree, merge_block, this](uint32_t* use_id) { in CreatePhiNodesForInst() 354 if (use_bb != nullptr && !dom_tree->Dominates(use_bb, merge_block)) { in CreatePhiNodesForInst() 355 CreatePhiNodesForInst(merge_block, *use); in CreatePhiNodesForInst() 360 context(), &*merge_block->begin(), in CreatePhiNodesForInst() [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/ |
D | validate_cfg.cpp | 86 spv_result_t MergeBlockAssert(ValidationState_t& _, uint32_t merge_block) { in MergeBlockAssert() argument 87 if (_.current_function().IsBlockType(merge_block, kBlockTypeMerge)) { in MergeBlockAssert() 89 << "Block " << _.getIdName(merge_block) in MergeBlockAssert() 365 uint32_t merge_block = inst->words[inst->operands[0].offset]; in CfgPass() local 367 CFG_ASSERT(MergeBlockAssert, merge_block); in CfgPass() 369 if (auto error = _.current_function().RegisterLoopMerge(merge_block, in CfgPass() 374 uint32_t merge_block = inst->words[inst->operands[0].offset]; in CfgPass() local 375 CFG_ASSERT(MergeBlockAssert, merge_block); in CfgPass() 377 if (auto error = _.current_function().RegisterSelectionMerge(merge_block)) in CfgPass()
|
/third_party/spirv-tools/source/val/ |
D | function.cpp | 72 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/ |
D | function.cpp | 72 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-tools/source/val/ |
D | function.cpp | 72 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/ |
D | implicit-read-dep-phi.asm.frag | 57 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/ |
D | implicit-read-dep-phi.asm.frag | 57 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/ |
D | implicit-read-dep-phi.asm.frag | 57 OpLoopMerge %merge_block %continue_block None 63 OpBranchConditional %22 %15 %merge_block 69 OpBranchConditional %31 %continue_block %merge_block 79 %merge_block = OpLabel
|