LLVM
8.0.1
|
A RegionNode represents a subregion or a BasicBlock that is part of a Region. More...
#include "llvm/Analysis/RegionInfo.h"
Public Types | |
using | BlockT = typename Tr::BlockT |
using | RegionT = typename Tr::RegionT |
Public Member Functions | |
RegionNodeBase (const RegionNodeBase &)=delete | |
RegionNodeBase & | operator= (const RegionNodeBase &)=delete |
RegionT * | getParent () const |
Get the parent Region of this RegionNode. More... | |
BlockT * | getEntry () const |
Get the entry BasicBlock of this RegionNode. More... | |
template<class T > | |
T * | getNodeAs () const |
Get the content of this RegionNode. More... | |
bool | isSubRegion () const |
Is this RegionNode a subregion? More... | |
template<> | |
BasicBlock * | getNodeAs () const |
template<> | |
Region * | getNodeAs () const |
template<> | |
MachineBasicBlock * | getNodeAs () const |
template<> | |
MachineRegion * | getNodeAs () const |
Protected Member Functions | |
RegionNodeBase (RegionT *Parent, BlockT *Entry, bool isSubRegion=false) | |
Create a RegionNode. More... | |
Friends | |
class | RegionBase< Tr > |
A RegionNode represents a subregion or a BasicBlock that is part of a Region.
Definition at line 119 of file RegionInfo.h.
using llvm::RegionNodeBase< Tr >::BlockT = typename Tr::BlockT |
Definition at line 123 of file RegionInfo.h.
using llvm::RegionNodeBase< Tr >::RegionT = typename Tr::RegionT |
Definition at line 124 of file RegionInfo.h.
|
inlineprotected |
Create a RegionNode.
Parent | The parent of this RegionNode. |
Entry | The entry BasicBlock of the RegionNode. If this RegionNode represents a BasicBlock, this is the BasicBlock itself. If it represents a subregion, this is the entry BasicBlock of the subregion. |
isSubRegion | If this RegionNode represents a SubRegion. |
Definition at line 152 of file RegionInfo.h.
|
delete |
|
inline |
Get the entry BasicBlock of this RegionNode.
If this RegionNode represents a BasicBlock this is just the BasicBlock itself, otherwise we return the entry BasicBlock of the Subregion
Definition at line 176 of file RegionInfo.h.
Referenced by llvm::RegionBase< RegionTraits< Function > >::getEntry().
|
inline |
Definition at line 113 of file MachineRegionInfo.h.
|
inline |
Definition at line 122 of file MachineRegionInfo.h.
Get the content of this RegionNode.
This can be either a BasicBlock or a subregion. Before calling getNodeAs() check the type of the content with the isSubRegion() function call.
Referenced by llvm::DOTGraphTraits< RegionInfo * >::getEdgeAttributes().
|
inline |
Definition at line 1001 of file RegionInfo.h.
|
inline |
Definition at line 1009 of file RegionInfo.h.
|
inline |
Get the parent Region of this RegionNode.
The parent Region is the Region this RegionNode belongs to. If for example a BasicBlock is element of two Regions, there exist two RegionNodes for this BasicBlock. Each with the getParent() function pointing to the Region this RegionNode belongs to.
Definition at line 168 of file RegionInfo.h.
Referenced by llvm::RegionBase< RegionTraits< Function > >::getParent().
|
inline |
Is this RegionNode a subregion?
Definition at line 190 of file RegionInfo.h.
Referenced by llvm::DOTGraphTraits< RegionInfo * >::getEdgeAttributes().
|
delete |
|
friend |
Definition at line 120 of file RegionInfo.h.