CIRCT
20.0.0git
|
#include <TemporalRegions.h>
Public Types | |
using | BlockMapT = DenseMap< Block *, int > |
using | TRMapT = DenseMap< int, SmallVector< Block *, 8 > > |
Public Member Functions | |
TemporalRegionAnalysis (Operation *op) | |
void | recalculate (Operation *) |
unsigned | getNumTemporalRegions () const |
int | getBlockTR (Block *) const |
SmallVector< Block *, 8 > | getBlocksInTR (int) const |
SmallVector< Block *, 8 > | getExitingBlocksInTR (int) const |
Block * | getTREntryBlock (int) |
bool | hasSingleExitBlock (int tr) const |
bool | isOwnTRSuccessor (int tr) |
SmallVector< int, 8 > | getTRSuccessors (int) |
unsigned | getNumTRSuccessors (int tr) |
unsigned | numBlocksInTR (int tr) |
Private Attributes | |
unsigned | numTRs |
BlockMapT | blockMap |
TRMapT | trMap |
Definition at line 23 of file TemporalRegions.h.
using circt::llhd::TemporalRegionAnalysis::BlockMapT = DenseMap<Block *, int> |
Definition at line 24 of file TemporalRegions.h.
using circt::llhd::TemporalRegionAnalysis::TRMapT = DenseMap<int, SmallVector<Block *, 8> > |
Definition at line 25 of file TemporalRegions.h.
|
inlineexplicit |
Definition at line 27 of file TemporalRegions.h.
References recalculate().
SmallVector< Block *, 8 > llhd::TemporalRegionAnalysis::getBlocksInTR | ( | int | tr | ) | const |
Definition at line 122 of file TemporalRegions.cpp.
Referenced by numBlocksInTR().
int llhd::TemporalRegionAnalysis::getBlockTR | ( | Block * | block | ) | const |
Definition at line 115 of file TemporalRegions.cpp.
References assert().
SmallVector< Block *, 8 > llhd::TemporalRegionAnalysis::getExitingBlocksInTR | ( | int | tr | ) | const |
Definition at line 129 of file TemporalRegions.cpp.
Referenced by hasSingleExitBlock().
|
inline |
Definition at line 31 of file TemporalRegions.h.
References numTRs.
|
inline |
Definition at line 47 of file TemporalRegions.h.
References getTRSuccessors().
Block * llhd::TemporalRegionAnalysis::getTREntryBlock | ( | int | tr | ) |
Definition at line 156 of file TemporalRegions.cpp.
References anyPredecessorHasWait().
SmallVector< int, 8 > llhd::TemporalRegionAnalysis::getTRSuccessors | ( | int | tr | ) |
Definition at line 144 of file TemporalRegions.cpp.
Referenced by getNumTRSuccessors(), and isOwnTRSuccessor().
|
inline |
Definition at line 38 of file TemporalRegions.h.
References getExitingBlocksInTR().
|
inline |
Definition at line 41 of file TemporalRegions.h.
References getTRSuccessors().
|
inline |
Definition at line 48 of file TemporalRegions.h.
References getBlocksInTR().
void llhd::TemporalRegionAnalysis::recalculate | ( | Operation * | operation | ) |
Definition at line 41 of file TemporalRegions.cpp.
References addBlockToTR(), allPredecessorTRsKnown(), anyPredecessorHasWait(), assert(), blockMap, numTRs, and trMap.
Referenced by TemporalRegionAnalysis().
|
private |
Definition at line 52 of file TemporalRegions.h.
Referenced by recalculate().
|
private |
Definition at line 51 of file TemporalRegions.h.
Referenced by getNumTemporalRegions(), and recalculate().
|
private |
Definition at line 53 of file TemporalRegions.h.
Referenced by recalculate().