/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/ |
D | structured_construct_to_block_reduction_opportunity.cpp | 25 auto header_block = context_->cfg()->block(construct_header_); in Apply() local 26 auto merge_block = context_->cfg()->block(header_block->MergeBlockId()); in Apply() 28 auto* enclosing_function = header_block->GetParent(); in Apply() 39 if (header_block != &*block_it && merge_block != &*block_it && in Apply() 40 dominators->Dominates(header_block, &*block_it) && in Apply() 54 context_->KillInst(header_block->GetMergeInst()); in Apply() 58 header_block->terminator()->SetOpcode(SpvOpBranch); in Apply() 59 header_block->terminator()->SetInOperands( in Apply()
|
D | remove_selection_reduction_opportunity_finder.cpp | 72 opt::IRContext* context, const opt::BasicBlock& header_block, in CanOpSelectionMergeBeRemoved() argument 75 assert(header_block.GetMergeInst() == merge_instruction && in CanOpSelectionMergeBeRemoved() 96 header_block.ForEachSuccessorLabel( in CanOpSelectionMergeBeRemoved()
|
D | remove_selection_reduction_opportunity.h | 31 RemoveSelectionReductionOpportunity(opt::BasicBlock* header_block) in RemoveSelectionReductionOpportunity() argument 32 : header_block_(header_block) {} in RemoveSelectionReductionOpportunity()
|
D | remove_selection_reduction_opportunity_finder.h | 41 opt::IRContext* context, const opt::BasicBlock& header_block,
|
/third_party/skia/third_party/externals/spirv-tools/source/reduce/ |
D | structured_construct_to_block_reduction_opportunity.cpp | 25 auto header_block = context_->cfg()->block(construct_header_); in Apply() local 26 auto merge_block = context_->cfg()->block(header_block->MergeBlockId()); in Apply() 28 auto* enclosing_function = header_block->GetParent(); in Apply() 39 if (header_block != &*block_it && merge_block != &*block_it && in Apply() 40 dominators->Dominates(header_block, &*block_it) && in Apply() 54 context_->KillInst(header_block->GetMergeInst()); in Apply() 58 header_block->terminator()->SetOpcode(SpvOpBranch); in Apply() 59 header_block->terminator()->SetInOperands( in Apply()
|
D | remove_selection_reduction_opportunity_finder.cpp | 72 opt::IRContext* context, const opt::BasicBlock& header_block, in CanOpSelectionMergeBeRemoved() argument 75 assert(header_block.GetMergeInst() == merge_instruction && in CanOpSelectionMergeBeRemoved() 96 header_block.ForEachSuccessorLabel( in CanOpSelectionMergeBeRemoved()
|
D | remove_selection_reduction_opportunity.h | 31 RemoveSelectionReductionOpportunity(opt::BasicBlock* header_block) in RemoveSelectionReductionOpportunity() argument 32 : header_block_(header_block) {} in RemoveSelectionReductionOpportunity()
|
D | remove_selection_reduction_opportunity_finder.h | 41 opt::IRContext* context, const opt::BasicBlock& header_block,
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | transformation_flatten_conditional_branch.cpp | 46 auto header_block = in IsApplicable() local 50 if (!header_block || !header_block->GetMergeInst() || in IsApplicable() 51 header_block->GetMergeInst()->opcode() != SpvOpSelectionMerge) { in IsApplicable() 56 if (header_block->terminator()->opcode() != SpvOpBranchConditional) { in IsApplicable() 65 header_block->terminator()->GetSingleWordInOperand(0))) { in IsApplicable() 92 ir_context, header_block, transformation_context, in IsApplicable() 156 FindConvergenceBlock(ir_context, *header_block); in IsApplicable() 231 auto header_block = ir_context->cfg()->block(message_.header_block_id()); in Apply() local 236 auto branch_instruction = header_block->terminator(); in Apply() 243 FindConvergenceBlock(ir_context, *header_block); in Apply() [all …]
|
D | transformation_flatten_conditional_branch.h | 103 const opt::BasicBlock& header_block); 136 const opt::BasicBlock& header_block, uint32_t convergence_block_id,
|
D | fuzzer_pass.cpp | 619 auto header_block = fuzzerutil::MaybeFindBlock(GetIRContext(), header_id); in GetOrCreateSimpleLoopPreheader() local 621 assert(header_block && header_block->IsLoopHeader() && in GetOrCreateSimpleLoopPreheader() 629 auto function = header_block->GetParent(); in GetOrCreateSimpleLoopPreheader() 664 header_block->ForEachPhiInst( in GetOrCreateSimpleLoopPreheader()
|
/third_party/spirv-tools/source/fuzz/ |
D | transformation_flatten_conditional_branch.cpp | 46 auto header_block = in IsApplicable() local 50 if (!header_block || !header_block->GetMergeInst() || in IsApplicable() 51 header_block->GetMergeInst()->opcode() != SpvOpSelectionMerge) { in IsApplicable() 56 if (header_block->terminator()->opcode() != SpvOpBranchConditional) { in IsApplicable() 65 header_block->terminator()->GetSingleWordInOperand(0))) { in IsApplicable() 92 ir_context, header_block, transformation_context, in IsApplicable() 156 FindConvergenceBlock(ir_context, *header_block); in IsApplicable() 231 auto header_block = ir_context->cfg()->block(message_.header_block_id()); in Apply() local 236 auto branch_instruction = header_block->terminator(); in Apply() 243 FindConvergenceBlock(ir_context, *header_block); in Apply() [all …]
|
D | transformation_flatten_conditional_branch.h | 103 const opt::BasicBlock& header_block); 136 const opt::BasicBlock& header_block, uint32_t convergence_block_id,
|
D | fuzzer_pass.cpp | 575 auto header_block = fuzzerutil::MaybeFindBlock(GetIRContext(), header_id); in GetOrCreateSimpleLoopPreheader() local 577 assert(header_block && header_block->IsLoopHeader() && in GetOrCreateSimpleLoopPreheader() 585 auto function = header_block->GetParent(); in GetOrCreateSimpleLoopPreheader() 620 header_block->ForEachPhiInst( in GetOrCreateSimpleLoopPreheader()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | transformation_flatten_conditional_branch.cpp | 46 auto header_block = in IsApplicable() local 50 if (!header_block || !header_block->GetMergeInst() || in IsApplicable() 51 header_block->GetMergeInst()->opcode() != SpvOpSelectionMerge) { in IsApplicable() 56 if (header_block->terminator()->opcode() != SpvOpBranchConditional) { in IsApplicable() 65 header_block->terminator()->GetSingleWordInOperand(0))) { in IsApplicable() 92 ir_context, header_block, transformation_context, in IsApplicable() 156 FindConvergenceBlock(ir_context, *header_block); in IsApplicable() 231 auto header_block = ir_context->cfg()->block(message_.header_block_id()); in Apply() local 236 auto branch_instruction = header_block->terminator(); in Apply() 243 FindConvergenceBlock(ir_context, *header_block); in Apply() [all …]
|
D | transformation_flatten_conditional_branch.h | 103 const opt::BasicBlock& header_block); 136 const opt::BasicBlock& header_block, uint32_t convergence_block_id,
|
D | fuzzer_pass.cpp | 619 auto header_block = fuzzerutil::MaybeFindBlock(GetIRContext(), header_id); in GetOrCreateSimpleLoopPreheader() local 621 assert(header_block && header_block->IsLoopHeader() && in GetOrCreateSimpleLoopPreheader() 629 auto function = header_block->GetParent(); in GetOrCreateSimpleLoopPreheader() 664 header_block->ForEachPhiInst( in GetOrCreateSimpleLoopPreheader()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_opt_if.c | 41 nir_block *header_block = nir_loop_first_block(loop); in find_continue_block() local 45 assert(header_block->predecessors->entries == 2); in find_continue_block() 47 set_foreach(header_block->predecessors, pred_entry) { in find_continue_block() 141 nir_block *header_block = nir_loop_first_block(loop); in opt_peel_loop_initial_if() local 146 assert(_mesa_set_search(header_block->predecessors, prev_block)); in opt_peel_loop_initial_if() 152 if (header_block->predecessors->entries != 2) in opt_peel_loop_initial_if() 155 nir_cf_node *if_node = nir_cf_node_next(&header_block->cf_node); in opt_peel_loop_initial_if() 167 if (cond->parent_instr->block != header_block) in opt_peel_loop_initial_if() 220 nir_lower_phis_to_regs_block(header_block); in opt_peel_loop_initial_if() 225 nir_lower_ssa_defs_to_regs_block(header_block); in opt_peel_loop_initial_if() [all …]
|
/third_party/spirv-tools/source/reduce/ |
D | remove_selection_reduction_opportunity_finder.cpp | 72 opt::IRContext* context, const opt::BasicBlock& header_block, in CanOpSelectionMergeBeRemoved() argument 75 assert(header_block.GetMergeInst() == merge_instruction && in CanOpSelectionMergeBeRemoved() 96 header_block.ForEachSuccessorLabel( in CanOpSelectionMergeBeRemoved()
|
D | remove_selection_reduction_opportunity.h | 31 RemoveSelectionReductionOpportunity(opt::BasicBlock* header_block) in RemoveSelectionReductionOpportunity() argument 32 : header_block_(header_block) {} in RemoveSelectionReductionOpportunity()
|
D | remove_selection_reduction_opportunity_finder.h | 41 opt::IRContext* context, const opt::BasicBlock& header_block,
|
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/ |
D | parse.cc | 1191 FunctionBlockPtr header_block = nullptr; in ParseWhile() local 1196 header_block = MakeFunctionBlock(*this); in ParseWhile() 1207 body_block->AddPrevBlock(header_block); in ParseWhile() 1208 after_block->AddPrevBlock(header_block); in ParseWhile() 1209 block->Jump(header_block, {}); in ParseWhile() 1212 AnfNodePtr condition_node = ParseExprNode(header_block, test_node); in ParseWhile() 1213 condition_node = header_block->ForceToWhileCond(condition_node); in ParseWhile() 1215 header_block->ConditionalJump(condition_node, body_block, after_block); in ParseWhile() 1218 LoopContext loop_context{&loops_, header_block, nullptr}; in ParseWhile() 1222 after_body->Jump(header_block, {}); in ParseWhile() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | aggressive_dead_code_elim_pass.cpp | 979 BasicBlock* header_block = GetHeaderBlock(blk); in GetHeaderBranch() local 980 if (header_block == nullptr) { in GetHeaderBranch() 983 return header_block->terminator(); in GetHeaderBranch() 991 BasicBlock* header_block = nullptr; in GetHeaderBlock() local 993 header_block = blk; in GetHeaderBlock() 997 header_block = context()->get_instr_block(header); in GetHeaderBlock() 999 return header_block; in GetHeaderBlock() 1031 bool AggressiveDCEPass::BlockIsInConstruct(BasicBlock* header_block, in BlockIsInConstruct() argument 1033 if (bb == nullptr || header_block == nullptr) { in BlockIsInConstruct() 1039 if (current_header == header_block->id()) return true; in BlockIsInConstruct()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | aggressive_dead_code_elim_pass.cpp | 979 BasicBlock* header_block = GetHeaderBlock(blk); in GetHeaderBranch() local 980 if (header_block == nullptr) { in GetHeaderBranch() 983 return header_block->terminator(); in GetHeaderBranch() 991 BasicBlock* header_block = nullptr; in GetHeaderBlock() local 993 header_block = blk; in GetHeaderBlock() 997 header_block = context()->get_instr_block(header); in GetHeaderBlock() 999 return header_block; in GetHeaderBlock() 1031 bool AggressiveDCEPass::BlockIsInConstruct(BasicBlock* header_block, in BlockIsInConstruct() argument 1033 if (bb == nullptr || header_block == nullptr) { in BlockIsInConstruct() 1039 if (current_header == header_block->id()) return true; in BlockIsInConstruct()
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/ |
D | validate_cfg.cpp | 180 uint32_t header_block; in StructuredControlFlowChecks() local 181 tie(back_edge_block, header_block) = back_edge; in StructuredControlFlowChecks() 182 if (!function.IsBlockType(header_block, kBlockTypeLoop)) { in StructuredControlFlowChecks() 185 << _.getIdName(header_block) in StructuredControlFlowChecks() 188 loop_latch_blocks[header_block].insert(back_edge_block); in StructuredControlFlowChecks()
|