Home
last modified time | relevance | path

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

12

/art/compiler/optimizing/
Dgraph_test.cc28 static HBasicBlock* createIfBlock(HGraph* graph, ArenaAllocator* allocator) { in createIfBlock()
29 HBasicBlock* if_block = new (allocator) HBasicBlock(graph); in createIfBlock()
40 static HBasicBlock* createGotoBlock(HGraph* graph, ArenaAllocator* allocator) { in createGotoBlock()
41 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createGotoBlock()
48 static HBasicBlock* createReturnBlock(HGraph* graph, ArenaAllocator* allocator) { in createReturnBlock()
49 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createReturnBlock()
56 static HBasicBlock* createExitBlock(HGraph* graph, ArenaAllocator* allocator) { in createExitBlock()
57 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createExitBlock()
72 HBasicBlock* entry_block = createGotoBlock(graph, &allocator); in TEST()
73 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
[all …]
Dnodes.cc23 void HGraph::AddBlock(HBasicBlock* block) { in AddBlock()
36 HBasicBlock* block = blocks_.Get(i); in RemoveDeadBlocks()
50 void HGraph::VisitBlockForBackEdges(HBasicBlock* block, in VisitBlockForBackEdges()
59 HBasicBlock* successor = block->GetSuccessors().Get(i); in VisitBlockForBackEdges()
95 HBasicBlock* HGraph::FindCommonDominator(HBasicBlock* first, HBasicBlock* second) const { in FindCommonDominator()
113 void HGraph::VisitBlockForDominatorTree(HBasicBlock* block, in VisitBlockForDominatorTree()
114 HBasicBlock* predecessor, in VisitBlockForDominatorTree()
140 void HGraph::SplitCriticalEdge(HBasicBlock* block, HBasicBlock* successor) { in SplitCriticalEdge()
143 HBasicBlock* new_block = new (arena_) HBasicBlock(this); in SplitCriticalEdge()
158 void HGraph::SimplifyLoop(HBasicBlock* header) { in SimplifyLoop()
[all …]
Dnodes.h29 class HBasicBlock; variable
63 friend class HBasicBlock; variable
84 const GrowableArray<HBasicBlock*>& GetBlocks() const { return blocks_; } in GetBlocks()
86 HBasicBlock* GetEntryBlock() const { return entry_block_; } in GetEntryBlock()
87 HBasicBlock* GetExitBlock() const { return exit_block_; } in GetExitBlock()
89 void SetEntryBlock(HBasicBlock* block) { entry_block_ = block; } in SetEntryBlock()
90 void SetExitBlock(HBasicBlock* block) { exit_block_ = block; } in SetExitBlock()
92 void AddBlock(HBasicBlock* block);
103 void SplitCriticalEdge(HBasicBlock* block, HBasicBlock* successor);
104 void SimplifyLoop(HBasicBlock* header);
[all …]
Dssa_liveness_analysis.cc50 static void VisitBlockForLinearization(HBasicBlock* block, in VisitBlockForLinearization()
51 GrowableArray<HBasicBlock*>* order, in VisitBlockForLinearization()
64 HBasicBlock* first_successor = block->GetSuccessors().Get(0); in VisitBlockForLinearization()
65 HBasicBlock* second_successor = block->GetSuccessors().Get(1); in VisitBlockForLinearization()
105 HBasicBlock* block = it.Current(); in NumberInstructions()
147 HBasicBlock* block = it.Current(); in ComputeLiveness()
168 HBasicBlock* block = it.Current(); in ComputeLiveRanges()
176 HBasicBlock* successor = block->GetSuccessors().Get(i); in ComputeLiveRanges()
243 HBasicBlock* back_edge = block->GetLoopInformation()->GetBackEdges().Get(0); in ComputeLiveRanges()
261 const HBasicBlock& block = *it.Current(); in ComputeLiveInAndLiveOutSets()
[all …]
Dssa_builder.h38 GrowableArray<HInstruction*>* GetLocalsFor(HBasicBlock* block) { in GetLocalsFor()
48 HInstruction* ValueOfLocal(HBasicBlock* block, size_t local);
50 void VisitBasicBlock(HBasicBlock* block);
61 GrowableArray<HBasicBlock*> loop_headers_;
Dbuilder.h63 HBasicBlock* FindBlockStartingAt(int32_t index) const;
115 GrowableArray<HBasicBlock*> branch_targets_;
119 HBasicBlock* entry_block_;
120 HBasicBlock* exit_block_;
121 HBasicBlock* current_block_;
Dregister_allocator.h27 class HBasicBlock; variable
107 void ConnectSplitSiblings(LiveInterval* interval, HBasicBlock* from, HBasicBlock* to) const;
110 void InsertParallelMoveAtExitOf(HBasicBlock* block, Location source, Location destination) const;
111 void InsertParallelMoveAtEntryOf(HBasicBlock* block, Location source, Location destination) const;
Dpretty_printer.h71 virtual void VisitBasicBlock(HBasicBlock* block) { in VisitBasicBlock()
74 const GrowableArray<HBasicBlock*>& predecessors = block->GetPredecessors(); in VisitBasicBlock()
83 const GrowableArray<HBasicBlock*>& successors = block->GetSuccessors(); in VisitBasicBlock()
125 virtual void VisitBasicBlock(HBasicBlock* block) { in VisitBasicBlock()
140 HBasicBlock* current_block_;
Dssa_liveness_analysis.h28 BlockInfo(ArenaAllocator* allocator, const HBasicBlock& block, size_t number_of_ssa_values) in BlockInfo()
39 const HBasicBlock& block_;
183 void AddPhiUse(HInstruction* instruction, size_t input_index, HBasicBlock* block) { in AddPhiUse()
482 BitVector* GetLiveInSet(const HBasicBlock& block) const { in GetLiveInSet()
486 BitVector* GetLiveOutSet(const HBasicBlock& block) const { in GetLiveOutSet()
490 BitVector* GetKillSet(const HBasicBlock& block) const { in GetKillSet()
494 const GrowableArray<HBasicBlock*>& GetLinearPostOrder() const { in GetLinearPostOrder()
538 bool UpdateLiveIn(const HBasicBlock& block);
541 bool UpdateLiveOut(const HBasicBlock& block);
545 GrowableArray<HBasicBlock*> linear_post_order_;
[all …]
Dssa_phi_elimination.cc24 HBasicBlock* block = it.Current(); in Run()
59 HBasicBlock* block = it.Current(); in Run()
75 HBasicBlock* block = it.Current(); in Run()
Dgraph_visualizer.cc84 void PrintPredecessors(HBasicBlock* block) { in PrintPredecessors()
88 HBasicBlock* predecessor = block->GetPredecessors().Get(i); in PrintPredecessors()
94 void PrintSuccessors(HBasicBlock* block) { in PrintSuccessors()
98 HBasicBlock* successor = block->GetSuccessors().Get(i); in PrintSuccessors()
191 void VisitBasicBlock(HBasicBlock* block) { in VisitBasicBlock()
Dcode_generator.cc34 const GrowableArray<HBasicBlock*>& blocks = GetGraph()->GetBlocks(); in CompileBaseline()
50 HBasicBlock* block = blocks.Get(i); in CompileBaseline()
72 const GrowableArray<HBasicBlock*>& blocks = GetGraph()->GetBlocks(); in CompileOptimized()
79 HBasicBlock* block = blocks.Get(i); in CompileOptimized()
245 bool CodeGenerator::GoesToNextBlock(HBasicBlock* current, HBasicBlock* next) const { in GoesToNextBlock()
250 Label* CodeGenerator::GetLabelOf(HBasicBlock* block) const { in GetLabelOf()
Dssa_builder.cc34 HBasicBlock* block = loop_headers_.Get(i); in BuildSsa()
60 HInstruction* SsaBuilder::ValueOfLocal(HBasicBlock* block, size_t local) { in ValueOfLocal()
64 void SsaBuilder::VisitBasicBlock(HBasicBlock* block) { in VisitBasicBlock()
Dcode_generator.h81 Label* GetLabelOf(HBasicBlock* block) const;
82 bool GoesToNextBlock(HBasicBlock* current, HBasicBlock* next) const;
Dbuilder.cc147 HBasicBlock* target = FindBlockStartingAt(dex_offset + instruction.GetTargetOffset()); in If_22t()
163 HBasicBlock* target = FindBlockStartingAt(dex_offset + instruction.GetTargetOffset()); in If_21t()
182 entry_block_ = new (arena_) HBasicBlock(graph_); in BuildGraph()
184 exit_block_ = new (arena_) HBasicBlock(graph_); in BuildGraph()
217 HBasicBlock* block = FindBlockStartingAt(index); in MaybeUpdateCurrentBlock()
238 HBasicBlock* block = new (arena_) HBasicBlock(graph_); in ComputeBranchTargets()
251 block = new (arena_) HBasicBlock(graph_); in ComputeBranchTargets()
257 block = new (arena_) HBasicBlock(graph_); in ComputeBranchTargets()
267 HBasicBlock* HGraphBuilder::FindBlockStartingAt(int32_t index) const { in FindBlockStartingAt()
581 HBasicBlock* target = FindBlockStartingAt(instruction.GetTargetOffset() + dex_offset); in AnalyzeDexInstruction()
Dssa_type_propagation.h33 void VisitBasicBlock(HBasicBlock* block);
Dlive_ranges_test.cc70 HBasicBlock* block = graph->GetBlocks().Get(1); in TEST()
116 HBasicBlock* block = graph->GetBlocks().Get(3); in TEST()
Dregister_allocator.cc740 void RegisterAllocator::InsertParallelMoveAtExitOf(HBasicBlock* block, in InsertParallelMoveAtExitOf()
762 void RegisterAllocator::InsertParallelMoveAtEntryOf(HBasicBlock* block, in InsertParallelMoveAtEntryOf()
849 HBasicBlock* from, in ConnectSplitSiblings()
850 HBasicBlock* to) const { in ConnectSplitSiblings()
953 HBasicBlock* block = it.Current(); in Resolve()
966 HBasicBlock* current = it.Current(); in Resolve()
970 HBasicBlock* predecessor = current->GetPredecessors().Get(i); in Resolve()
Dssa_type_propagation.cc56 void SsaTypePropagation::VisitBasicBlock(HBasicBlock* block) { in VisitBasicBlock()
Dregister_allocator_test.cc307 HBasicBlock* loop_header = graph->GetBlocks().Get(2); in TEST()
316 HBasicBlock* return_block = graph->GetBlocks().Get(3); in TEST()
Dliveness_test.cc58 HBasicBlock* block = it.Current(); in TestCode()
Dssa_test.cc68 HBasicBlock* block = graph->GetBlocks().Get(i); in ReNumberInstructions()
Dfind_loops_test.cc116 HBasicBlock* block = graph->GetBlocks().Get(block_id); in TestBlock()
Dcode_generator_x86_64.cc367 HBasicBlock* successor = got->GetSuccessor(); in VisitGoto()
Dcode_generator_arm.cc528 HBasicBlock* successor = got->GetSuccessor(); in VisitGoto()

12