Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::LoopHierarchy Class Reference

#include <loops.h>

Inheritance diagram for dart::LoopHierarchy:
dart::ZoneAllocated

Public Member Functions

 LoopHierarchy (ZoneGrowableArray< BlockEntryInstr * > *headers, const GrowableArray< BlockEntryInstr * > &preorder, bool print_traces)
 
const ZoneGrowableArray< BlockEntryInstr * > & headers () const
 
LoopInfotop () const
 
intptr_t num_loops () const
 
void ComputeInduction () const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Detailed Description

Definition at line 322 of file loops.h.

Constructor & Destructor Documentation

◆ LoopHierarchy()

dart::LoopHierarchy::LoopHierarchy ( ZoneGrowableArray< BlockEntryInstr * > *  headers,
const GrowableArray< BlockEntryInstr * > &  preorder,
bool  print_traces 
)

Definition at line 1151 of file loops.cc.

1154 : headers_(headers),
1155 preorder_(preorder),
1156 top_(nullptr),
1157 print_traces_(print_traces) {
1158 Build();
1159}
const ZoneGrowableArray< BlockEntryInstr * > & headers() const
Definition loops.h:329

Member Function Documentation

◆ ComputeInduction()

void dart::LoopHierarchy::ComputeInduction ( ) const

Definition at line 1207 of file loops.cc.

1207 {
1208 InductionVarAnalysis(preorder_).VisitHierarchy(top_);
1209}

◆ headers()

const ZoneGrowableArray< BlockEntryInstr * > & dart::LoopHierarchy::headers ( ) const
inline

Definition at line 329 of file loops.h.

329 {
330 return *headers_;
331 }

◆ num_loops()

intptr_t dart::LoopHierarchy::num_loops ( ) const
inline

Definition at line 335 of file loops.h.

335{ return headers_->length(); }

◆ top()

LoopInfo * dart::LoopHierarchy::top ( ) const
inline

Definition at line 332 of file loops.h.

332{ return top_; }

The documentation for this class was generated from the following files: