/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()
|
/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/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/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/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() 168 if (cond->parent_instr->block != header_block) in opt_peel_loop_initial_if() 221 nir_lower_phis_to_regs_block(header_block); in opt_peel_loop_initial_if() 226 nir_lower_ssa_defs_to_regs_block(header_block); in opt_peel_loop_initial_if() [all …]
|
/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/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/spirv-tools/source/opt/ |
D | aggressive_dead_code_elim_pass.cpp | 997 BasicBlock* header_block = GetHeaderBlock(blk); in GetHeaderBranch() local 998 if (header_block == nullptr) { in GetHeaderBranch() 1001 return header_block->terminator(); in GetHeaderBranch() 1009 BasicBlock* header_block = nullptr; in GetHeaderBlock() local 1011 header_block = blk; in GetHeaderBlock() 1015 header_block = context()->get_instr_block(header); in GetHeaderBlock() 1017 return header_block; in GetHeaderBlock() 1049 bool AggressiveDCEPass::BlockIsInConstruct(BasicBlock* header_block, in BlockIsInConstruct() argument 1051 if (bb == nullptr || header_block == nullptr) { in BlockIsInConstruct() 1057 if (current_header == header_block->id()) return true; in BlockIsInConstruct()
|
/third_party/spirv-tools/source/val/ |
D | validate_cfg.cpp | 700 uint32_t header_block; in StructuredControlFlowChecks() local 701 std::tie(back_edge_block, header_block) = back_edge; in StructuredControlFlowChecks() 702 if (!function->IsBlockType(header_block, kBlockTypeLoop)) { in StructuredControlFlowChecks() 705 << _.getIdName(header_block) in StructuredControlFlowChecks() 708 loop_latch_blocks[header_block].insert(back_edge_block); in StructuredControlFlowChecks() 838 uint32_t header_block; in StructuredControlFlowChecks() local 839 std::tie(back_edge_block, header_block) = back_edge; in StructuredControlFlowChecks() 840 if (header_block == continue_id && back_edge_block == pred->id()) in StructuredControlFlowChecks()
|