LLVM  4.0.0
Public Types | Public Member Functions | Friends | List of all members
llvm::DomTreeNodeBase< NodeT > Class Template Reference

Base class for the actual dominator tree node. More...

#include <GenericDomTree.h>

Public Types

typedef std::vector
< DomTreeNodeBase< NodeT >
* >::iterator 
iterator
 
typedef std::vector
< DomTreeNodeBase< NodeT >
* >::const_iterator 
const_iterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
NodeT * getBlock () const
 
DomTreeNodeBase< NodeT > * getIDom () const
 
const std::vector
< DomTreeNodeBase< NodeT > * > & 
getChildren () const
 
 DomTreeNodeBase (NodeT *BB, DomTreeNodeBase< NodeT > *iDom)
 
std::unique_ptr
< DomTreeNodeBase< NodeT > > 
addChild (std::unique_ptr< DomTreeNodeBase< NodeT >> C)
 
size_t getNumChildren () const
 
void clearAllChildren ()
 
bool compare (const DomTreeNodeBase< NodeT > *Other) const
 
void setIDom (DomTreeNodeBase< NodeT > *NewIDom)
 
unsigned getDFSNumIn () const
 getDFSNumIn/getDFSNumOut - These return the DFS visitation order for nodes in the dominator tree. More...
 
unsigned getDFSNumOut () const
 

Friends

template<class N >
class DominatorTreeBase
 
struct PostDominatorTree
 

Detailed Description

template<class NodeT>
class llvm::DomTreeNodeBase< NodeT >

Base class for the actual dominator tree node.

Definition at line 91 of file GenericDomTree.h.

Member Typedef Documentation

template<class NodeT>
typedef std::vector<DomTreeNodeBase<NodeT> *>::const_iterator llvm::DomTreeNodeBase< NodeT >::const_iterator

Definition at line 103 of file GenericDomTree.h.

template<class NodeT>
typedef std::vector<DomTreeNodeBase<NodeT> *>::iterator llvm::DomTreeNodeBase< NodeT >::iterator

Definition at line 101 of file GenericDomTree.h.

Constructor & Destructor Documentation

template<class NodeT>
llvm::DomTreeNodeBase< NodeT >::DomTreeNodeBase ( NodeT *  BB,
DomTreeNodeBase< NodeT > *  iDom 
)
inline

Definition at line 116 of file GenericDomTree.h.

Member Function Documentation

template<class NodeT>
std::unique_ptr<DomTreeNodeBase<NodeT> > llvm::DomTreeNodeBase< NodeT >::addChild ( std::unique_ptr< DomTreeNodeBase< NodeT >>  C)
inline
template<class NodeT>
iterator llvm::DomTreeNodeBase< NodeT >::begin ( )
inline
template<class NodeT>
const_iterator llvm::DomTreeNodeBase< NodeT >::begin ( ) const
inline

Definition at line 107 of file GenericDomTree.h.

template<class NodeT>
void llvm::DomTreeNodeBase< NodeT >::clearAllChildren ( )
inline

Definition at line 127 of file GenericDomTree.h.

template<class NodeT>
bool llvm::DomTreeNodeBase< NodeT >::compare ( const DomTreeNodeBase< NodeT > *  Other) const
inline
template<class NodeT>
iterator llvm::DomTreeNodeBase< NodeT >::end ( )
inline
template<class NodeT>
const_iterator llvm::DomTreeNodeBase< NodeT >::end ( ) const
inline

Definition at line 108 of file GenericDomTree.h.

template<class NodeT>
NodeT* llvm::DomTreeNodeBase< NodeT >::getBlock ( ) const
inline
template<class NodeT>
const std::vector<DomTreeNodeBase<NodeT> *>& llvm::DomTreeNodeBase< NodeT >::getChildren ( ) const
inline
template<class NodeT>
unsigned llvm::DomTreeNodeBase< NodeT >::getDFSNumIn ( ) const
inline

getDFSNumIn/getDFSNumOut - These return the DFS visitation order for nodes in the dominator tree.

They are only guaranteed valid if updateDFSNumbers() has been called.

Definition at line 166 of file GenericDomTree.h.

template<class NodeT>
unsigned llvm::DomTreeNodeBase< NodeT >::getDFSNumOut ( ) const
inline

Definition at line 167 of file GenericDomTree.h.

template<class NodeT>
DomTreeNodeBase<NodeT>* llvm::DomTreeNodeBase< NodeT >::getIDom ( ) const
inline
template<class NodeT>
size_t llvm::DomTreeNodeBase< NodeT >::getNumChildren ( ) const
inline

Definition at line 125 of file GenericDomTree.h.

Referenced by llvm::DomTreeNodeBase< NodeT >::compare().

template<class NodeT>
void llvm::DomTreeNodeBase< NodeT >::setIDom ( DomTreeNodeBase< NodeT > *  NewIDom)
inline

Friends And Related Function Documentation

template<class NodeT>
template<class N >
friend class DominatorTreeBase
friend

Definition at line 97 of file GenericDomTree.h.

template<class NodeT>
friend struct PostDominatorTree
friend

Definition at line 98 of file GenericDomTree.h.


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