Home
last modified time | relevance | path

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

/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dstruct_cfg_analysis.h38 uint32_t ContainingConstruct(uint32_t bb_id) { in ContainingConstruct() argument
39 auto it = bb_to_construct_.find(bb_id); in ContainingConstruct()
54 uint32_t MergeBlock(uint32_t bb_id);
64 uint32_t ContainingLoop(uint32_t bb_id) { in ContainingLoop() argument
65 auto it = bb_to_construct_.find(bb_id); in ContainingLoop()
75 uint32_t LoopMergeBlock(uint32_t bb_id);
80 uint32_t LoopContinueBlock(uint32_t bb_id);
87 uint32_t LoopNestingDepth(uint32_t bb_id);
92 uint32_t ContainingSwitch(uint32_t bb_id) { in ContainingSwitch() argument
93 auto it = bb_to_construct_.find(bb_id); in ContainingSwitch()
[all …]
Dstruct_cfg_analysis.cpp120 uint32_t StructuredCFGAnalysis::MergeBlock(uint32_t bb_id) { in MergeBlock() argument
121 uint32_t header_id = ContainingConstruct(bb_id); in MergeBlock()
131 uint32_t StructuredCFGAnalysis::NestingDepth(uint32_t bb_id) { in NestingDepth() argument
136 for (uint32_t merge_block_id = MergeBlock(bb_id); merge_block_id != 0; in NestingDepth()
144 uint32_t StructuredCFGAnalysis::LoopMergeBlock(uint32_t bb_id) { in LoopMergeBlock() argument
145 uint32_t header_id = ContainingLoop(bb_id); in LoopMergeBlock()
155 uint32_t StructuredCFGAnalysis::LoopContinueBlock(uint32_t bb_id) { in LoopContinueBlock() argument
156 uint32_t header_id = ContainingLoop(bb_id); in LoopContinueBlock()
166 uint32_t StructuredCFGAnalysis::LoopNestingDepth(uint32_t bb_id) { in LoopNestingDepth() argument
171 for (uint32_t merge_block_id = LoopMergeBlock(bb_id); merge_block_id != 0; in LoopNestingDepth()
[all …]
Dregister_pressure.cpp100 uint32_t bb_id = bb.id(); in ComputePhiUses() local
101 bb.ForEachSuccessorLabel([live, bb_id, this](uint32_t sid) { in ComputePhiUses()
103 succ_bb->ForEachPhiInst([live, bb_id, this](const Instruction* phi) { in ComputePhiUses()
105 if (phi->GetSingleWordInOperand(i + 1) == bb_id) { in ComputePhiUses()
176 [&loop, this](uint32_t bb_id) { in DoLoopLivenessUnification() argument
177 return bb_id != loop.GetHeaderBlock()->id() && in DoLoopLivenessUnification()
178 loop_desc_[bb_id] == &loop; in DoLoopLivenessUnification()
191 for (uint32_t bb_id : blocks_in_loop) { in DoLoopLivenessUnification() local
192 BasicBlock* bb = cfg_.block(bb_id); in DoLoopLivenessUnification()
298 for (uint32_t bb_id : exit_blocks) { in ComputeLoopRegisterPressure() local
[all …]
Dregister_pressure.h99 const RegionRegisterLiveness* Get(uint32_t bb_id) const { in Get() argument
100 RegionRegisterLivenessMap::const_iterator it = block_pressure_.find(bb_id); in Get()
115 RegionRegisterLiveness* Get(uint32_t bb_id) { in Get() argument
116 RegionRegisterLivenessMap::iterator it = block_pressure_.find(bb_id); in Get()
125 RegionRegisterLiveness* GetOrInsert(uint32_t bb_id) { in GetOrInsert() argument
126 return &block_pressure_[bb_id]; in GetOrInsert()
Dloop_utils.cpp153 Instruction* GetOrBuildIncoming(uint32_t bb_id) { in GetOrBuildIncoming()
154 assert(base_->cfg_->block(bb_id) != nullptr && "Unknown basic block"); in GetOrBuildIncoming()
156 Instruction*& incoming_phi = bb_to_phi_[bb_id]; in GetOrBuildIncoming()
161 BasicBlock* bb = &*base_->cfg_->block(bb_id); in GetOrBuildIncoming()
186 base_->GetDefiningBlocks(bb_id); in GetOrBuildIncoming()
192 if (defining_blocks.size() > 1 || bb_id == base_->merge_block_id_) { in GetOrBuildIncoming()
196 assert(bb_id == base_->merge_block_id_); in GetOrBuildIncoming()
219 const std::vector<uint32_t>& GetDefiningBlocks(uint32_t bb_id) { in GetDefiningBlocks() argument
220 assert(cfg_->block(bb_id) != nullptr && "Unknown basic block"); in GetDefiningBlocks()
221 std::vector<uint32_t>& defining_blocks = bb_to_defining_blocks_[bb_id]; in GetDefiningBlocks()
[all …]
Dloop_descriptor.h196 inline bool IsInsideLoop(uint32_t bb_id) const { in IsInsideLoop() argument
197 return loop_basic_blocks_.count(bb_id); in IsInsideLoop()
216 void RemoveBasicBlock(uint32_t bb_id) { in RemoveBasicBlock() argument
218 loop->loop_basic_blocks_.erase(bb_id); in RemoveBasicBlock()
498 inline void SetBasicBlockToLoop(uint32_t bb_id, Loop* loop) { in SetBasicBlockToLoop() argument
499 basic_block_to_loop_[bb_id] = loop; in SetBasicBlockToLoop()
517 inline void ForgetBasicBlock(uint32_t bb_id) { in ForgetBasicBlock() argument
518 basic_block_to_loop_.erase(bb_id); in ForgetBasicBlock()
Dloop_descriptor.cpp358 for (uint32_t bb_id : GetBlocks()) { in GetExitBlocks() local
359 const BasicBlock* bb = cfg->block(bb_id); in GetExitBlocks()
404 for (uint32_t bb_id : GetBlocks()) { in IsSafeToClone() local
405 BasicBlock* bb = cfg.block(bb_id); in IsSafeToClone()
415 for (uint32_t bb_id : blocks) { in IsSafeToClone() local
416 BasicBlock* bb = cfg.block(bb_id); in IsSafeToClone()
435 for (uint32_t bb_id : GetBlocks()) { in IsLCSSA() local
436 for (Instruction& insn : *cfg->block(bb_id)) { in IsLCSSA()
991 for (uint32_t bb_id : current_loop.GetBlocks()) in AddLoopNest() local
992 basic_block_to_loop_.insert(std::make_pair(bb_id, &current_loop)); in AddLoopNest()
[all …]
Dfunction.h119 iterator FindBlock(uint32_t bb_id) { in FindBlock() argument
120 return std::find_if(begin(), end(), [bb_id](const BasicBlock& it_bb) { in FindBlock()
121 return bb_id == it_bb.id(); in FindBlock()
Dloop_unswitch_pass.cpp73 for (uint32_t bb_id : loop_->GetBlocks()) { in CanUnswitchLoop() local
74 BasicBlock* bb = cfg.block(bb_id); in CanUnswitchLoop()
464 ignore_node = [loop](uint32_t bb_id) { return !loop->IsInsideLoop(bb_id); }; in SpecializeLoop() argument
Ddead_branch_elim_pass.cpp613 uint32_t bb_id = work_list.back(); in AddBlocksWithBackEdge() local
616 BasicBlock* bb = context()->get_instr_block(bb_id); in AddBlocksWithBackEdge()
Dloop_peeling.cpp229 for (uint32_t bb_id : blocks_in_path) { in IsConditionCheckSideEffectFree() local
230 BasicBlock* bb = cfg.block(bb_id); in IsConditionCheckSideEffectFree()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dstruct_cfg_analysis.h38 uint32_t ContainingConstruct(uint32_t bb_id) { in ContainingConstruct() argument
39 auto it = bb_to_construct_.find(bb_id); in ContainingConstruct()
54 uint32_t MergeBlock(uint32_t bb_id);
64 uint32_t ContainingLoop(uint32_t bb_id) { in ContainingLoop() argument
65 auto it = bb_to_construct_.find(bb_id); in ContainingLoop()
75 uint32_t LoopMergeBlock(uint32_t bb_id);
80 uint32_t LoopContinueBlock(uint32_t bb_id);
87 uint32_t LoopNestingDepth(uint32_t bb_id);
92 uint32_t ContainingSwitch(uint32_t bb_id) { in ContainingSwitch() argument
93 auto it = bb_to_construct_.find(bb_id); in ContainingSwitch()
[all …]
Dstruct_cfg_analysis.cpp120 uint32_t StructuredCFGAnalysis::MergeBlock(uint32_t bb_id) { in MergeBlock() argument
121 uint32_t header_id = ContainingConstruct(bb_id); in MergeBlock()
131 uint32_t StructuredCFGAnalysis::NestingDepth(uint32_t bb_id) { in NestingDepth() argument
136 for (uint32_t merge_block_id = MergeBlock(bb_id); merge_block_id != 0; in NestingDepth()
144 uint32_t StructuredCFGAnalysis::LoopMergeBlock(uint32_t bb_id) { in LoopMergeBlock() argument
145 uint32_t header_id = ContainingLoop(bb_id); in LoopMergeBlock()
155 uint32_t StructuredCFGAnalysis::LoopContinueBlock(uint32_t bb_id) { in LoopContinueBlock() argument
156 uint32_t header_id = ContainingLoop(bb_id); in LoopContinueBlock()
166 uint32_t StructuredCFGAnalysis::LoopNestingDepth(uint32_t bb_id) { in LoopNestingDepth() argument
171 for (uint32_t merge_block_id = LoopMergeBlock(bb_id); merge_block_id != 0; in LoopNestingDepth()
[all …]
Dregister_pressure.cpp100 uint32_t bb_id = bb.id(); in ComputePhiUses() local
101 bb.ForEachSuccessorLabel([live, bb_id, this](uint32_t sid) { in ComputePhiUses()
103 succ_bb->ForEachPhiInst([live, bb_id, this](const Instruction* phi) { in ComputePhiUses()
105 if (phi->GetSingleWordInOperand(i + 1) == bb_id) { in ComputePhiUses()
176 [&loop, this](uint32_t bb_id) { in DoLoopLivenessUnification() argument
177 return bb_id != loop.GetHeaderBlock()->id() && in DoLoopLivenessUnification()
178 loop_desc_[bb_id] == &loop; in DoLoopLivenessUnification()
191 for (uint32_t bb_id : blocks_in_loop) { in DoLoopLivenessUnification() local
192 BasicBlock* bb = cfg_.block(bb_id); in DoLoopLivenessUnification()
298 for (uint32_t bb_id : exit_blocks) { in ComputeLoopRegisterPressure() local
[all …]
Dregister_pressure.h99 const RegionRegisterLiveness* Get(uint32_t bb_id) const { in Get() argument
100 RegionRegisterLivenessMap::const_iterator it = block_pressure_.find(bb_id); in Get()
115 RegionRegisterLiveness* Get(uint32_t bb_id) { in Get() argument
116 RegionRegisterLivenessMap::iterator it = block_pressure_.find(bb_id); in Get()
125 RegionRegisterLiveness* GetOrInsert(uint32_t bb_id) { in GetOrInsert() argument
126 return &block_pressure_[bb_id]; in GetOrInsert()
Dloop_utils.cpp153 Instruction* GetOrBuildIncoming(uint32_t bb_id) { in GetOrBuildIncoming()
154 assert(base_->cfg_->block(bb_id) != nullptr && "Unknown basic block"); in GetOrBuildIncoming()
156 Instruction*& incoming_phi = bb_to_phi_[bb_id]; in GetOrBuildIncoming()
161 BasicBlock* bb = &*base_->cfg_->block(bb_id); in GetOrBuildIncoming()
186 base_->GetDefiningBlocks(bb_id); in GetOrBuildIncoming()
192 if (defining_blocks.size() > 1 || bb_id == base_->merge_block_id_) { in GetOrBuildIncoming()
196 assert(bb_id == base_->merge_block_id_); in GetOrBuildIncoming()
219 const std::vector<uint32_t>& GetDefiningBlocks(uint32_t bb_id) { in GetDefiningBlocks() argument
220 assert(cfg_->block(bb_id) != nullptr && "Unknown basic block"); in GetDefiningBlocks()
221 std::vector<uint32_t>& defining_blocks = bb_to_defining_blocks_[bb_id]; in GetDefiningBlocks()
[all …]
Dloop_descriptor.h196 inline bool IsInsideLoop(uint32_t bb_id) const { in IsInsideLoop() argument
197 return loop_basic_blocks_.count(bb_id); in IsInsideLoop()
216 void RemoveBasicBlock(uint32_t bb_id) { in RemoveBasicBlock() argument
218 loop->loop_basic_blocks_.erase(bb_id); in RemoveBasicBlock()
498 inline void SetBasicBlockToLoop(uint32_t bb_id, Loop* loop) { in SetBasicBlockToLoop() argument
499 basic_block_to_loop_[bb_id] = loop; in SetBasicBlockToLoop()
517 inline void ForgetBasicBlock(uint32_t bb_id) { in ForgetBasicBlock() argument
518 basic_block_to_loop_.erase(bb_id); in ForgetBasicBlock()
Dloop_descriptor.cpp358 for (uint32_t bb_id : GetBlocks()) { in GetExitBlocks() local
359 const BasicBlock* bb = cfg->block(bb_id); in GetExitBlocks()
404 for (uint32_t bb_id : GetBlocks()) { in IsSafeToClone() local
405 BasicBlock* bb = cfg.block(bb_id); in IsSafeToClone()
415 for (uint32_t bb_id : blocks) { in IsSafeToClone() local
416 BasicBlock* bb = cfg.block(bb_id); in IsSafeToClone()
435 for (uint32_t bb_id : GetBlocks()) { in IsLCSSA() local
436 for (Instruction& insn : *cfg->block(bb_id)) { in IsLCSSA()
991 for (uint32_t bb_id : current_loop.GetBlocks()) in AddLoopNest() local
992 basic_block_to_loop_.insert(std::make_pair(bb_id, &current_loop)); in AddLoopNest()
[all …]
Dfunction.h119 iterator FindBlock(uint32_t bb_id) { in FindBlock() argument
120 return std::find_if(begin(), end(), [bb_id](const BasicBlock& it_bb) { in FindBlock()
121 return bb_id == it_bb.id(); in FindBlock()
Dloop_unswitch_pass.cpp73 for (uint32_t bb_id : loop_->GetBlocks()) { in CanUnswitchLoop() local
74 BasicBlock* bb = cfg.block(bb_id); in CanUnswitchLoop()
464 ignore_node = [loop](uint32_t bb_id) { return !loop->IsInsideLoop(bb_id); }; in SpecializeLoop() argument
Ddead_branch_elim_pass.cpp613 uint32_t bb_id = work_list.back(); in AddBlocksWithBackEdge() local
616 BasicBlock* bb = context()->get_instr_block(bb_id); in AddBlocksWithBackEdge()
Dloop_peeling.cpp229 for (uint32_t bb_id : blocks_in_path) { in IsConditionCheckSideEffectFree() local
230 BasicBlock* bb = cfg.block(bb_id); in IsConditionCheckSideEffectFree()
/external/toolchain-utils/llvm_tools/
Dupdate_packages_and_run_tests_unittest.py125 bb_id = '1234'
128 mock_cmd.return_value = json.dumps([{'buildbucket_id': bb_id, 'url': url}])
142 'buildbucket_id': int(bb_id),
166 bb_id = '1234'
169 mock_cmd.return_value = json.dumps({'id': bb_id, 'createTime': create_time})
182 'link': 'http://ci.chromium.org/b/%s' % bb_id,
183 'buildbucket_id': bb_id,
/external/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/
Dnested_loops.cpp199 for (uint32_t bb_id : loop->GetBlocks()) { in CheckLoopBlocks() local
200 EXPECT_EQ(expected_ids->count(bb_id), 1u); in CheckLoopBlocks()
201 expected_ids->erase(bb_id); in CheckLoopBlocks()
356 for (uint32_t bb_id : {22, 24}) EXPECT_EQ(ld[bb_id], nullptr); in TEST_F()
/external/deqp-deps/SPIRV-Tools/test/opt/loop_optimizations/
Dnested_loops.cpp199 for (uint32_t bb_id : loop->GetBlocks()) { in CheckLoopBlocks() local
200 EXPECT_EQ(expected_ids->count(bb_id), 1u); in CheckLoopBlocks()
201 expected_ids->erase(bb_id); in CheckLoopBlocks()
356 for (uint32_t bb_id : {22, 24}) EXPECT_EQ(ld[bb_id], nullptr); in TEST_F()