14 #ifndef DIALECT_LLHD_TRANSFORMS_TEMPORALREGIONS_H
15 #define DIALECT_LLHD_TRANSFORMS_TEMPORALREGIONS_H
18 #include "mlir/IR/Operation.h"
25 using TRMapT = DenseMap<int, SmallVector<Block *, 8>>;
43 return std::find(succs.begin(), succs.end(), tr) != succs.end();
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
int getBlockTR(Block *) const
unsigned getNumTemporalRegions() const
DenseMap< int, SmallVector< Block *, 8 > > TRMapT
void recalculate(Operation *)
bool isOwnTRSuccessor(int tr)
bool hasSingleExitBlock(int tr) const
SmallVector< Block *, 8 > getExitingBlocksInTR(int) const
TemporalRegionAnalysis(Operation *op)
DenseMap< Block *, int > BlockMapT
SmallVector< Block *, 8 > getBlocksInTR(int) const
SmallVector< int, 8 > getTRSuccessors(int)
Block * getTREntryBlock(int)
unsigned numBlocksInTR(int tr)
unsigned getNumTRSuccessors(int tr)