LLVM 22.0.0git
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 >:
[フレーム]
[legend]

Public Types

using  iterator = typename SmallVector<DomTreeNodeBase *, 4>::iterator
using  const_iterator

Public Member Functions

  DomTreeNodeBase (NodeT *BB, DomTreeNodeBase *iDom)
NodeT *  getBlock () const
size_t  getNumChildren () const
void  clearAllChildren ()
void  setIDom (DomTreeNodeBase *NewIDom)
  getDFSNumIn/getDFSNumOut - These return the DFS visitation order for nodes in the dominator tree.

Friends

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>
Initial value:

Definition at line 73 of file GenericDomTree.h.

◆  iterator

template<class NodeT>
using llvm::DomTreeNodeBase< NodeT >::iterator = typename SmallVector<DomTreeNodeBase *, 4>::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>
void llvm::DomTreeNodeBase< NodeT >::addChild ( DomTreeNodeBase< NodeT > * C )
inline

Definition at line 93 of file GenericDomTree.h.

Referenced by llvm::DominatorTreeBase< BlockT, false >::createNode(), and llvm::DominatorTreeBase< BlockT, false >::setNewRoot().

◆  back() [1/2]

template<class NodeT>
DomTreeNodeBase *& llvm::DomTreeNodeBase< NodeT >::back ( )
inline

Definition at line 82 of file GenericDomTree.h.

◆  back() [2/2]

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

Definition at line 81 of file GenericDomTree.h.

Referenced by llvm::DomTreeNodeBase< BlockT >::back(), and llvm::DomTreeNodeBase< BlockT >::back().

◆  begin() [1/2]

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

Definition at line 76 of file GenericDomTree.h.

Referenced by llvm::DomTreeNodeBase< BlockT >::children(), llvm::DomTreeNodeBase< BlockT >::children(), loadCSE(), and llvm::DominatorTreeBase< BlockT, false >::updateDFSNumbers().

◆  begin() [2/2]

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

Definition at line 78 of file GenericDomTree.h.

◆  children() [1/2]

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

Definition at line 84 of file GenericDomTree.h.

Referenced by llvm::collectChildrenInLoop(), findBestInsertionSet(), getDominatees(), llvm::MergeBlockIntoPredecessor(), llvm::UnrollLoop(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyParentProperty(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifySiblingProperty().

◆  children() [2/2]

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

Definition at line 85 of file GenericDomTree.h.

◆  clearAllChildren()

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

Definition at line 98 of file GenericDomTree.h.

◆  compare()

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

Definition at line 100 of file GenericDomTree.h.

◆  end() [1/2]

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

Definition at line 77 of file GenericDomTree.h.

Referenced by llvm::DomTreeNodeBase< BlockT >::children(), llvm::DomTreeNodeBase< BlockT >::children(), and loadCSE().

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

Referenced by llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::attachNewSubtree(), llvm::IDFCalculatorBase< NodeTy, IsPostDom >::calculate(), CloneLoopBlocks(), cloneLoopBlocks(), llvm::cloneLoopWithPreheader(), computeBlocksDominatingExits(), containsUnconditionalCallSafepoint(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteReachable(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteUnreachable(), findBestInsertionSet(), llvm::DominatorTreeBase< BlockT, false >::findNearestCommonDominator(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::HasProperSupport(), llvm::hoistRegion(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::InsertReachable(), loadCSE(), preheader(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::reattachExistingSubtree(), llvm::SSAUpdaterBulk::RewriteAllUses(), simplifyUsingControlFlow(), SinkInstruction(), UpdateAnalysisInformation(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateRootsBeforeInsertion(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VerifyLevels(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyParentProperty(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyReachability(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifySiblingProperty().

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

Referenced by llvm::IDFCalculatorBase< NodeTy, IsPostDom >::calculate(), checkAndReplaceCondition(), compareCmp(), llvm::ValueDFS_Compare::comparePHIRelated(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VerifyDFSNumbers().

◆  getDFSNumOut()

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

Definition at line 141 of file GenericDomTree.h.

Referenced by checkAndReplaceCondition().

◆  getIDom()

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

Definition at line 90 of file GenericDomTree.h.

Referenced by CloneLoopBlocks(), cloneLoopBlocks(), llvm::cloneLoopWithPreheader(), computeBlocksDominatingExits(), containsUnconditionalCallSafepoint(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteEdge(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteReachable(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteUnreachable(), findBestInsertionSet(), llvm::hoistRegion(), isGuaranteedNotToBeUndefOrPoison(), preheader(), llvm::SSAUpdaterBulk::RewriteAllUses(), simplifyUsingControlFlow(), SinkInstruction(), llvm::UnrollAndJamLoop(), llvm::UnrollLoop(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateInsertion(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateRootsBeforeInsertion(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VerifyLevels().

◆  getLevel()

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

Definition at line 91 of file GenericDomTree.h.

Referenced by llvm::IDFCalculatorBase< NodeTy, IsPostDom >::calculate(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteReachable(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::DeleteUnreachable(), llvm::DominatorTreeBase< BlockT, false >::findNearestCommonDominator(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::InsertReachable(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateInsertion(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VerifyLevels().

◆  getNumChildren()

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

Definition at line 96 of file GenericDomTree.h.

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

◆  isLeaf()

template<class NodeT>
bool llvm::DomTreeNodeBase< NodeT >::isLeaf ( ) const
inline

Definition at line 95 of file GenericDomTree.h.

Referenced by llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyParentProperty(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifySiblingProperty().

◆  setIDom()

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

Definition at line 120 of file GenericDomTree.h.

Referenced by llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::reattachExistingSubtree(), and llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::UpdateInsertion().

◆  DominatorTreeBase< NodeT, false >

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

Definition at line 55 of file GenericDomTree.h.

◆  DominatorTreeBase< NodeT, true >

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

Definition at line 55 of file GenericDomTree.h.

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

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

Definition at line 55 of file GenericDomTree.h.

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

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

Definition at line 55 of file GenericDomTree.h.

◆  PostDominatorTree

template<class NodeT>
friend class PostDominatorTree
friend

Definition at line 55 of file GenericDomTree.h.


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

Generated on for LLVM by doxygen 1.14.0

AltStyle によって変換されたページ (->オリジナル) /