LLVM  6.0.0svn
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 "llvm/Support/GenericDomTree.h"

Inheritance diagram for llvm::DomTreeNodeBase< NodeT >:
Inheritance graph
[legend]

Public Types

using iterator = typename std::vector< DomTreeNodeBase * >::iterator
 
using const_iterator = typename std::vector< DomTreeNodeBase * >::const_iterator
 

Public Member Functions

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

Friends

struct PostDominatorTree
 
class DominatorTreeBase< NodeT, false >
 
class DominatorTreeBase< NodeT, true >
 
struct DomTreeBuilder::SemiNCAInfo< DominatorTreeBase< NodeT, false > >
 
struct DomTreeBuilder::SemiNCAInfo< DominatorTreeBase< NodeT, true > >
 

Detailed Description

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

Base class for the actual dominator tree node.

Definition at line 54 of file GenericDomTree.h.

Member Typedef Documentation

◆ const_iterator

template<class NodeT>
using llvm::DomTreeNodeBase< NodeT >::const_iterator = typename std::vector<DomTreeNodeBase *>::const_iterator

Definition at line 74 of file GenericDomTree.h.

◆ iterator

template<class NodeT>
using llvm::DomTreeNodeBase< NodeT >::iterator = typename std::vector<DomTreeNodeBase *>::iterator

Definition at line 72 of file GenericDomTree.h.

Constructor & Destructor Documentation

◆ DomTreeNodeBase()

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

Definition at line 69 of file GenericDomTree.h.

Member Function Documentation

◆ addChild()

template<class NodeT>
std::unique_ptr<DomTreeNodeBase> llvm::DomTreeNodeBase< NodeT >::addChild ( std::unique_ptr< DomTreeNodeBase< NodeT > >  C)
inline

◆ begin() [1/2]

template<class NodeT>
iterator llvm::DomTreeNodeBase< NodeT >::begin ( )
inline

◆ begin() [2/2]

template<class NodeT>
const_iterator llvm::DomTreeNodeBase< NodeT >::begin ( ) const
inline

Definition at line 78 of file GenericDomTree.h.

◆ clearAllChildren()

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

Definition at line 95 of file GenericDomTree.h.

◆ compare()

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

◆ end() [1/2]

template<class NodeT>
iterator llvm::DomTreeNodeBase< NodeT >::end ( )
inline

◆ end() [2/2]

template<class NodeT>
const_iterator llvm::DomTreeNodeBase< NodeT >::end ( ) const
inline

Definition at line 79 of file GenericDomTree.h.

◆ getBlock()

template<class NodeT>
NodeT* llvm::DomTreeNodeBase< NodeT >::getBlock ( ) const
inline

Definition at line 81 of file GenericDomTree.h.

Referenced by llvm::LoopInfoBase< BasicBlock, Loop >::analyze(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::attachNewSubtree(), llvm::IDFCalculator< NodeTy, IsPostDom >::calculate(), llvm::ForwardDominanceFrontierBase< BasicBlock >::calculate(), llvm::LiveRangeCalc::calculateValues(), checkClobberSanity(), cloneLoopBlocks(), CloneLoopBlocks(), llvm::cloneLoopWithPreheader(), llvm::DomTreeNodeBase< BasicBlock >::compare(), llvm::DominatorTree::compare(), computeBlocksDominatingExits(), computeDomSubtreeCost(), containsUnconditionalCallSafepoint(), llvm::createSystemZLDCleanupPass(), llvm::createX86GlobalBaseRegPass(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteReachable(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteUnreachable(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::EraseNode(), findBestInsertionSet(), llvm::DominatorTreeBase< BasicBlock, false >::findNearestCommonDominator(), GatherDominatingDefs(), llvm::DominatorTreeBase< BasicBlock, false >::getDescendants(), llvm::DOTGraphTraits< DomTreeNode * >::getNodeLabel(), llvm::DenseMapInfo< CallValue >::getTombstoneKey(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::HasProperSupport(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::InsertReachable(), InstructionStoresToFI(), is_empty(), isDebug(), isProfitableChain(), llvm::DominatorTreeBase< BasicBlock, false >::isVirtualRoot(), llvm::SplitEditor::overlapIntv(), preheader(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::reattachExistingSubtree(), llvm::UnrollRuntimeLoopRemainder(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateRootsBeforeInsertion(), llvm::MemorySSA::CachingWalker::verify(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VerifyLevels(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyParentProperty(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyReachability(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifySiblingProperty(), visitDomSubTree(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VisitInsertion().

◆ getChildren()

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

◆ getDFSNumIn()

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 137 of file GenericDomTree.h.

Referenced by llvm::collectCmpOps(), llvm::PredicateInfoClasses::ValueDFS_Compare::localComesBefore(), NewGVN::ValueDFS::operator<(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VerifyDFSNumbers().

◆ getDFSNumOut()

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

◆ getIDom()

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

Definition at line 82 of file GenericDomTree.h.

Referenced by llvm::IDFCalculator< NodeTy, IsPostDom >::calculate(), llvm::LiveRangeCalc::calculateValues(), checkClobberSanity(), cloneLoopBlocks(), CloneLoopBlocks(), llvm::cloneLoopWithPreheader(), computeBlocksDominatingExits(), containsUnconditionalCallSafepoint(), llvm::createAArch64ConditionalCompares(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteEdge(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteReachable(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteUnreachable(), llvm::DominatorTreeBase< BasicBlock, false >::dominates(), llvm::DominatorTreeBase< BasicBlock, false >::eraseNode(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::EraseNode(), findBestInsertionSet(), FindLIVLoopCondition(), GatherDominatingDefs(), hoistAndMergeSGPRInits(), INITIALIZE_PASS(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::InsertReachable(), is_empty(), isFullUndefDef(), isImmValidForOpcode(), llvm::ScalarEvolution::isLoopBackedgeGuardedByCond(), isSimplifiedLoopNest(), preheader(), simplifyOneLoop(), llvm::DominatorTreeBase< BasicBlock, false >::Split(), llvm::UnrollLoop(), llvm::UnrollRuntimeLoopRemainder(), updateDTAfterUnswitch(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateLevelsAfterInsertion(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateRootsAfterUpdate(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateRootsBeforeInsertion(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VerifyLevels().

◆ getLevel()

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

◆ getNumChildren()

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

◆ setIDom()

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

Friends And Related Function Documentation

◆ DominatorTreeBase< NodeT, false >

template<class NodeT>
friend class DominatorTreeBase< NodeT, false >
friend

Definition at line 56 of file GenericDomTree.h.

◆ DominatorTreeBase< NodeT, true >

template<class NodeT>
friend class DominatorTreeBase< NodeT, true >
friend

Definition at line 57 of file GenericDomTree.h.

◆ DomTreeBuilder::SemiNCAInfo< DominatorTreeBase< NodeT, false > >

template<class NodeT>
friend struct DomTreeBuilder::SemiNCAInfo< DominatorTreeBase< NodeT, false > >
friend

Definition at line 58 of file GenericDomTree.h.

◆ DomTreeBuilder::SemiNCAInfo< DominatorTreeBase< NodeT, true > >

template<class NodeT>
friend struct DomTreeBuilder::SemiNCAInfo< DominatorTreeBase< NodeT, true > >
friend

Definition at line 59 of file GenericDomTree.h.

◆ PostDominatorTree

template<class NodeT>
friend struct PostDominatorTree
friend

Definition at line 55 of file GenericDomTree.h.


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