LLVM 20.0.0git
|
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. | |
BlockT * | getEntry () const |
Get the entry BasicBlock of this RegionNode. | |
template<class T > | |
T * | getNodeAs () const |
Get the content of this RegionNode. | |
bool | isSubRegion () const |
Is this RegionNode a subregion? | |
BasicBlock * | getNodeAs () const |
Region * | getNodeAs () const |
MachineBasicBlock * | getNodeAs () const |
MachineRegion * | getNodeAs () const |
Protected Member Functions | |
RegionNodeBase (RegionT *Parent, BlockT *Entry, bool isSubRegion=false) | |
Create a RegionNode. | |
Friends | |
class | RegionBase< Tr > |
A RegionNode represents a subregion or a BasicBlock that is part of a Region.
Definition at line 115 of file RegionInfo.h.
using llvm::RegionNodeBase< Tr >::BlockT = typename Tr::BlockT |
Definition at line 119 of file RegionInfo.h.
using llvm::RegionNodeBase< Tr >::RegionT = typename Tr::RegionT |
Definition at line 120 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 148 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 172 of file RegionInfo.h.
References llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::getPointer().
Referenced by llvm::RegionBase< Tr >::getEntry().
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 996 of file RegionInfo.h.
References assert().
|
inline |
Definition at line 1004 of file RegionInfo.h.
References assert().
|
inline |
Definition at line 111 of file MachineRegionInfo.h.
References assert().
|
inline |
Definition at line 120 of file MachineRegionInfo.h.
References assert().
|
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 164 of file RegionInfo.h.
Referenced by llvm::RegionBase< Tr >::getParent().
|
inline |
Is this RegionNode a subregion?
Definition at line 186 of file RegionInfo.h.
References llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::getInt().
Referenced by llvm::DOTGraphTraits< RegionInfo * >::getEdgeAttributes().
|
delete |
|
friend |
Definition at line 97 of file RegionInfo.h.