Home
last modified time | relevance | path

Searched refs:entry_block (Results 1 – 25 of 59) sorted by relevance

123

/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_outline_functions.cpp49 auto entry_block = MaybeGetEntryBlockSuitableForOutlining( in Apply() local
52 if (!entry_block) { in Apply()
62 for (auto postdominates_entry_block = entry_block; in Apply()
68 if (dominator_analysis->Dominates(entry_block, in Apply()
88 GetIRContext(), entry_block, exit_block); in Apply()
100 entry_block->id(), exit_block->id(), in Apply()
117 opt::BasicBlock* entry_block) { in MaybeGetEntryBlockSuitableForOutlining() argument
120 if (entry_block->IsLoopHeader()) { in MaybeGetEntryBlockSuitableForOutlining()
122 GetIRContext()->cfg()->preds(entry_block->GetLabel()->result_id()); in MaybeGetEntryBlockSuitableForOutlining()
132 entry_block = in MaybeGetEntryBlockSuitableForOutlining()
[all …]
Dtransformation_duplicate_region_with_selection.cpp84 auto entry_block = ir_context->cfg()->block(message_.entry_block_id()); in IsApplicable() local
88 if (entry_block->GetParent() != exit_block->GetParent()) { in IsApplicable()
94 ir_context->GetDominatorAnalysis(entry_block->GetParent()); in IsApplicable()
95 if (!dominator_analysis->Dominates(entry_block, exit_block)) { in IsApplicable()
101 ir_context->GetPostDominatorAnalysis(entry_block->GetParent()); in IsApplicable()
102 if (!postdominator_analysis->Dominates(exit_block, entry_block)) { in IsApplicable()
106 auto enclosing_function = entry_block->GetParent(); in IsApplicable()
109 if (&*enclosing_function->begin() == entry_block) { in IsApplicable()
115 auto entry_block_preds = ir_context->cfg()->preds(entry_block->id()); in IsApplicable()
127 auto region_set = GetRegionBlocks(ir_context, entry_block, exit_block); in IsApplicable()
[all …]
Dfuzzer_pass_duplicate_regions_with_selections.cpp58 auto entry_block = candidate_entry_blocks[GetFuzzerContext()->RandomIndex( in Apply() local
64 for (auto postdominates_entry_block = entry_block; in Apply()
71 if (dominator_analysis->Dominates(entry_block, in Apply()
86 GetIRContext(), entry_block, exit_block); in Apply()
124 GetFuzzerContext()->GetFreshId(), entry_block->id(), in Apply()
Dtransformation_outline_function.cpp29 uint32_t entry_block, uint32_t exit_block, in TransformationOutlineFunction() argument
35 message_.set_entry_block(entry_block); in TransformationOutlineFunction()
108 for (auto block_id : {message_.entry_block(), message_.exit_block()}) { in IsApplicable()
115 auto entry_block = ir_context->cfg()->block(message_.entry_block()); in IsApplicable() local
121 if (entry_block->begin()->opcode() == SpvOpVariable) { in IsApplicable()
126 if (entry_block->GetLoopMergeInst()) { in IsApplicable()
139 if (entry_block->begin()->opcode() == SpvOpPhi) { in IsApplicable()
144 if (entry_block->GetParent() != exit_block->GetParent()) { in IsApplicable()
150 ir_context->GetDominatorAnalysis(entry_block->GetParent()); in IsApplicable()
151 if (!dominator_analysis->Dominates(entry_block, exit_block)) { in IsApplicable()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_outline_functions.cpp49 auto entry_block = MaybeGetEntryBlockSuitableForOutlining( in Apply() local
52 if (!entry_block) { in Apply()
62 for (auto postdominates_entry_block = entry_block; in Apply()
68 if (dominator_analysis->Dominates(entry_block, in Apply()
88 GetIRContext(), entry_block, exit_block); in Apply()
100 entry_block->id(), exit_block->id(), in Apply()
117 opt::BasicBlock* entry_block) { in MaybeGetEntryBlockSuitableForOutlining() argument
120 if (entry_block->IsLoopHeader()) { in MaybeGetEntryBlockSuitableForOutlining()
122 GetIRContext()->cfg()->preds(entry_block->GetLabel()->result_id()); in MaybeGetEntryBlockSuitableForOutlining()
132 entry_block = in MaybeGetEntryBlockSuitableForOutlining()
[all …]
Dtransformation_duplicate_region_with_selection.cpp84 auto entry_block = ir_context->cfg()->block(message_.entry_block_id()); in IsApplicable() local
88 if (entry_block->GetParent() != exit_block->GetParent()) { in IsApplicable()
94 ir_context->GetDominatorAnalysis(entry_block->GetParent()); in IsApplicable()
95 if (!dominator_analysis->Dominates(entry_block, exit_block)) { in IsApplicable()
101 ir_context->GetPostDominatorAnalysis(entry_block->GetParent()); in IsApplicable()
102 if (!postdominator_analysis->Dominates(exit_block, entry_block)) { in IsApplicable()
106 auto enclosing_function = entry_block->GetParent(); in IsApplicable()
109 if (&*enclosing_function->begin() == entry_block) { in IsApplicable()
115 auto entry_block_preds = ir_context->cfg()->preds(entry_block->id()); in IsApplicable()
127 auto region_set = GetRegionBlocks(ir_context, entry_block, exit_block); in IsApplicable()
[all …]
Dfuzzer_pass_duplicate_regions_with_selections.cpp58 auto entry_block = candidate_entry_blocks[GetFuzzerContext()->RandomIndex( in Apply() local
64 for (auto postdominates_entry_block = entry_block; in Apply()
71 if (dominator_analysis->Dominates(entry_block, in Apply()
86 GetIRContext(), entry_block, exit_block); in Apply()
124 GetFuzzerContext()->GetFreshId(), entry_block->id(), in Apply()
Dtransformation_outline_function.cpp29 uint32_t entry_block, uint32_t exit_block, in TransformationOutlineFunction() argument
35 message_.set_entry_block(entry_block); in TransformationOutlineFunction()
108 for (auto block_id : {message_.entry_block(), message_.exit_block()}) { in IsApplicable()
115 auto entry_block = ir_context->cfg()->block(message_.entry_block()); in IsApplicable() local
121 if (entry_block->begin()->opcode() == SpvOpVariable) { in IsApplicable()
126 if (entry_block->GetLoopMergeInst()) { in IsApplicable()
139 if (entry_block->begin()->opcode() == SpvOpPhi) { in IsApplicable()
144 if (entry_block->GetParent() != exit_block->GetParent()) { in IsApplicable()
150 ir_context->GetDominatorAnalysis(entry_block->GetParent()); in IsApplicable()
151 if (!dominator_analysis->Dominates(entry_block, exit_block)) { in IsApplicable()
[all …]
/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass_outline_functions.cpp48 auto entry_block = MaybeGetEntryBlockSuitableForOutlining( in Apply() local
51 if (!entry_block) { in Apply()
61 for (auto postdominates_entry_block = entry_block; in Apply()
67 if (dominator_analysis->Dominates(entry_block, in Apply()
87 GetIRContext(), entry_block, exit_block); in Apply()
99 entry_block->id(), exit_block->id(), in Apply()
116 opt::BasicBlock* entry_block) { in MaybeGetEntryBlockSuitableForOutlining() argument
119 if (entry_block->IsLoopHeader()) { in MaybeGetEntryBlockSuitableForOutlining()
121 GetIRContext()->cfg()->preds(entry_block->GetLabel()->result_id()); in MaybeGetEntryBlockSuitableForOutlining()
131 entry_block = in MaybeGetEntryBlockSuitableForOutlining()
[all …]
Dtransformation_duplicate_region_with_selection.cpp84 auto entry_block = ir_context->cfg()->block(message_.entry_block_id()); in IsApplicable() local
88 if (entry_block->GetParent() != exit_block->GetParent()) { in IsApplicable()
94 ir_context->GetDominatorAnalysis(entry_block->GetParent()); in IsApplicable()
95 if (!dominator_analysis->Dominates(entry_block, exit_block)) { in IsApplicable()
101 ir_context->GetPostDominatorAnalysis(entry_block->GetParent()); in IsApplicable()
102 if (!postdominator_analysis->Dominates(exit_block, entry_block)) { in IsApplicable()
106 auto enclosing_function = entry_block->GetParent(); in IsApplicable()
109 if (&*enclosing_function->begin() == entry_block) { in IsApplicable()
115 auto entry_block_preds = ir_context->cfg()->preds(entry_block->id()); in IsApplicable()
127 auto region_set = GetRegionBlocks(ir_context, entry_block, exit_block); in IsApplicable()
[all …]
Dfuzzer_pass_duplicate_regions_with_selections.cpp57 auto entry_block = candidate_entry_blocks[GetFuzzerContext()->RandomIndex( in Apply() local
63 for (auto postdominates_entry_block = entry_block; in Apply()
70 if (dominator_analysis->Dominates(entry_block, in Apply()
85 GetIRContext(), entry_block, exit_block); in Apply()
123 GetFuzzerContext()->GetFreshId(), entry_block->id(), in Apply()
Dtransformation_outline_function.cpp29 uint32_t entry_block, uint32_t exit_block, in TransformationOutlineFunction() argument
35 message_.set_entry_block(entry_block); in TransformationOutlineFunction()
108 for (auto block_id : {message_.entry_block(), message_.exit_block()}) { in IsApplicable()
115 auto entry_block = ir_context->cfg()->block(message_.entry_block()); in IsApplicable() local
121 if (entry_block->begin()->opcode() == SpvOpVariable) { in IsApplicable()
126 if (entry_block->GetLoopMergeInst()) { in IsApplicable()
139 if (entry_block->begin()->opcode() == SpvOpPhi) { in IsApplicable()
144 if (entry_block->GetParent() != exit_block->GetParent()) { in IsApplicable()
150 ir_context->GetDominatorAnalysis(entry_block->GetParent()); in IsApplicable()
151 if (!dominator_analysis->Dominates(entry_block, exit_block)) { in IsApplicable()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dconstruct.cpp65 const BasicBlock* Construct::entry_block() const { return entry_block_; } in entry_block() function in spvtools::val::Construct
66 BasicBlock* Construct::entry_block() { return entry_block_; } in entry_block() function in spvtools::val::Construct
74 auto header = entry_block(); in blocks()
84 if (type() != ConstructType::kContinue || other->entry_block() != header) { in blocks()
85 corresponding_headers.insert(other->entry_block()); in blocks()
152 auto header = entry_block(); in IsStructuredExit()
163 auto header = loop_construct->entry_block(); in IsStructuredExit()
192 auto header = entry_block(); in IsStructuredExit()
Dconstruct.h73 const BasicBlock* entry_block() const;
78 BasicBlock* entry_block();
Dfunction.cpp169 ->entry_block(); in RegisterBlockEnd()
286 entry_block_to_construct_[std::make_pair(new_construct.entry_block(), in AddConstruct()
291 Construct& Function::FindConstructForEntryBlock(const BasicBlock* entry_block, in FindConstructForEntryBlock() argument
294 entry_block_to_construct_.find(std::make_pair(entry_block, type)); in FindConstructForEntryBlock()
331 BasicBlock* loop_header = loop_construct->entry_block(); in GetBlockDepth()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dconstruct.cpp65 const BasicBlock* Construct::entry_block() const { return entry_block_; } in entry_block() function in spvtools::val::Construct
66 BasicBlock* Construct::entry_block() { return entry_block_; } in entry_block() function in spvtools::val::Construct
74 auto header = entry_block(); in blocks()
84 if (type() != ConstructType::kContinue || other->entry_block() != header) { in blocks()
85 corresponding_headers.insert(other->entry_block()); in blocks()
152 auto header = entry_block(); in IsStructuredExit()
163 auto header = loop_construct->entry_block(); in IsStructuredExit()
192 auto header = entry_block(); in IsStructuredExit()
Dconstruct.h73 const BasicBlock* entry_block() const;
78 BasicBlock* entry_block();
Dfunction.cpp169 ->entry_block(); in RegisterBlockEnd()
286 entry_block_to_construct_[std::make_pair(new_construct.entry_block(), in AddConstruct()
291 Construct& Function::FindConstructForEntryBlock(const BasicBlock* entry_block, in FindConstructForEntryBlock() argument
294 entry_block_to_construct_.find(std::make_pair(entry_block, type)); in FindConstructForEntryBlock()
331 BasicBlock* loop_header = loop_construct->entry_block(); in GetBlockDepth()
/third_party/spirv-tools/source/val/
Dconstruct.cpp65 const BasicBlock* Construct::entry_block() const { return entry_block_; } in entry_block() function in spvtools::val::Construct
66 BasicBlock* Construct::entry_block() { return entry_block_; } in entry_block() function in spvtools::val::Construct
74 auto header = entry_block(); in blocks()
81 corresponding_headers.insert(other->entry_block()); in blocks()
147 auto header = entry_block(); in IsStructuredExit()
158 auto header = loop_construct->entry_block(); in IsStructuredExit()
186 auto header = entry_block(); in IsStructuredExit()
Dconstruct.h73 const BasicBlock* entry_block() const;
78 BasicBlock* entry_block();
Dfunction.cpp169 ->entry_block(); in RegisterBlockEnd()
286 entry_block_to_construct_[std::make_pair(new_construct.entry_block(), in AddConstruct()
291 Construct& Function::FindConstructForEntryBlock(const BasicBlock* entry_block, in FindConstructForEntryBlock() argument
294 entry_block_to_construct_.find(std::make_pair(entry_block, type)); in FindConstructForEntryBlock()
328 BasicBlock* loop_header = loop_construct->entry_block(); in GetBlockDepth()
/third_party/flutter/skia/third_party/externals/spirv-tools/source/val/
Dconstruct.h61 const BasicBlock* entry_block() const;
66 BasicBlock* entry_block();
Dconstruct.cpp56 const BasicBlock* Construct::entry_block() const { return entry_block_; } in entry_block() function in libspirv::Construct
57 BasicBlock* Construct::entry_block() { return entry_block_; } in entry_block() function in libspirv::Construct
Dfunction.cpp171 ->entry_block(); in RegisterBlockEnd()
290 entry_block_to_construct_[std::make_pair(new_construct.entry_block(), in AddConstruct()
295 Construct& Function::FindConstructForEntryBlock(const BasicBlock* entry_block, in FindConstructForEntryBlock() argument
298 entry_block_to_construct_.find(std::make_pair(entry_block, type)); in FindConstructForEntryBlock()
335 BasicBlock* loop_header = loop_construct->entry_block(); in GetBlockDepth()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_cfg.cpp57 immediate_dominators[func.entry_block] = func.entry_block; in build_immediate_dominators()
210 uint32_t block = func.entry_block; in build_post_order_visit_order()
402 dominator = cfg.get_function().entry_block; in lift_continue_block_dominator()

123