LLVM API Documentation

llvm::DominatorBase Class Reference

#include <Dominators.h>

Inheritance diagram for llvm::DominatorBase:

Inheritance graph
[legend]
Collaboration diagram for llvm::DominatorBase:

Collaboration graph
[legend]
List of all members.

Public Member Functions

const std::vector< BasicBlock * > & getRoots () const
bool isPostDominator () const

Protected Member Functions

 DominatorBase (bool isPostDom)

Protected Attributes

std::vector< BasicBlock * > Roots
const bool IsPostDominators

Detailed Description

DominatorBase - Base class that other, more interesting dominator analyses inherit from.

Definition at line 44 of file Dominators.h.


Constructor & Destructor Documentation

llvm::DominatorBase::DominatorBase ( bool  isPostDom  )  [inline, protected]

Definition at line 49 of file Dominators.h.


Member Function Documentation

const std::vector<BasicBlock*>& llvm::DominatorBase::getRoots (  )  const [inline]

getRoots - Return the root blocks of the current CFG. This may include multiple blocks if we are computing post dominators. For forward dominators, this will always be a single block (the entry node).

Definition at line 55 of file Dominators.h.

References Roots.

Referenced by llvm::ETForestBase::print(), llvm::ImmediateDominatorsBase::print(), llvm::PostDominanceFrontier::runOnFunction(), llvm::PostDominatorTree::runOnFunction(), and llvm::DominanceFrontier::runOnFunction().

bool llvm::DominatorBase::isPostDominator (  )  const [inline]

isPostDominator - Returns true if analysis based of postdoms

Definition at line 59 of file Dominators.h.

References IsPostDominators.


Member Data Documentation

std::vector<BasicBlock*> llvm::DominatorBase::Roots [protected]

Definition at line 46 of file Dominators.h.

Referenced by llvm::PostETForest::calculate(), llvm::ETForest::calculate(), llvm::DominanceFrontier::getRoot(), llvm::DominatorTree::getRoot(), llvm::ETForest::getRoot(), llvm::DominatorSet::getRoot(), llvm::ImmediateDominators::getRoot(), getRoots(), llvm::PostDominanceFrontier::runOnFunction(), llvm::PostETForest::runOnFunction(), llvm::PostDominatorTree::runOnFunction(), llvm::PostDominatorSet::runOnFunction(), llvm::ImmediatePostDominators::runOnFunction(), llvm::DominanceFrontier::runOnFunction(), llvm::DominatorTree::runOnFunction(), llvm::ETForest::runOnFunction(), llvm::DominatorSet::runOnFunction(), llvm::ImmediateDominators::runOnFunction(), and llvm::ETForestBase::updateDFSNumbers().

const bool llvm::DominatorBase::IsPostDominators [protected]

Definition at line 47 of file Dominators.h.

Referenced by llvm::DominatorSetBase::dominates(), and isPostDominator().


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