LLVM API Documentation
#include <PostDominators.h>
Public Member Functions | |
PostDominatorTree () | |
~PostDominatorTree () | |
virtual bool | runOnFunction (Function &F) |
virtual void | getAnalysisUsage (AnalysisUsage &AU) const |
const std::vector< BasicBlock * > & | getRoots () const |
DomTreeNode * | getRootNode () const |
DomTreeNode * | operator[] (BasicBlock *BB) const |
DomTreeNode * | getNode (BasicBlock *BB) const |
bool | dominates (DomTreeNode *A, DomTreeNode *B) const |
bool | dominates (const BasicBlock *A, const BasicBlock *B) const |
bool | properlyDominates (const DomTreeNode *A, DomTreeNode *B) const |
bool | properlyDominates (BasicBlock *A, BasicBlock *B) const |
BasicBlock * | findNearestCommonDominator (BasicBlock *A, BasicBlock *B) |
const BasicBlock * | findNearestCommonDominator (const BasicBlock *A, const BasicBlock *B) |
virtual void | releaseMemory () |
virtual void | print (raw_ostream &OS, const Module *) const |
![]() | |
FunctionPass (char &pid) | |
Pass * | createPrinterPass (raw_ostream &O, const std::string &Banner) const |
createPrinterPass - Get a function printer pass. More... | |
virtual void | assignPassManager (PMStack &PMS, PassManagerType T) |
virtual PassManagerType | getPotentialPassManagerType () const |
Return what kind of Pass Manager can manage this pass. More... | |
![]() | |
Pass (PassKind K, char &pid) | |
virtual | ~Pass () |
PassKind | getPassKind () const |
virtual const char * | getPassName () const |
AnalysisID | getPassID () const |
getPassID - Return the PassID number that corresponds to this pass. More... | |
virtual bool | doInitialization (Module &) |
virtual bool | doFinalization (Module &) |
void | dump () const |
virtual void | preparePassManager (PMStack &) |
Check if available pass managers are suitable for this pass or not. More... | |
void | setResolver (AnalysisResolver *AR) |
AnalysisResolver * | getResolver () const |
virtual void * | getAdjustedAnalysisPointer (AnalysisID ID) |
virtual ImmutablePass * | getAsImmutablePass () |
virtual PMDataManager * | getAsPMDataManager () |
virtual void | verifyAnalysis () const |
virtual void | dumpPassStructure (unsigned Offset=0) |
template<typename AnalysisType > | |
AnalysisType * | getAnalysisIfAvailable () const |
bool | mustPreserveAnalysisID (char &AID) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis () const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis (Function &F) |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI, Function &F) |
Public Attributes | |
DominatorTreeBase< BasicBlock > * | DT |
Static Public Attributes | |
static char | ID = 0 |
Additional Inherited Members | |
![]() | |
static const PassInfo * | lookupPassInfo (const void *TI) |
static const PassInfo * | lookupPassInfo (StringRef Arg) |
static Pass * | createPass (AnalysisID ID) |
PostDominatorTree Class - Concrete subclass of DominatorTree that is used to compute the a post-dominator tree.
Definition at line 24 of file PostDominators.h.
|
inline |
Definition at line 28 of file PostDominators.h.
References DT, llvm::PassRegistry::getPassRegistry(), and llvm::initializePostDominatorTreePass().
PostDominatorTree::~PostDominatorTree | ( | ) |
Definition at line 39 of file PostDominators.cpp.
References DT.
|
inline |
Definition at line 57 of file PostDominators.h.
References DT.
|
inline |
Definition at line 61 of file PostDominators.h.
References DT.
|
inline |
Definition at line 73 of file PostDominators.h.
References DT.
|
inline |
Definition at line 77 of file PostDominators.h.
References DT.
|
inlinevirtual |
getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below.
Reimplemented from llvm::Pass.
Definition at line 37 of file PostDominators.h.
References llvm::AnalysisUsage::setPreservesAll().
|
inline |
Definition at line 53 of file PostDominators.h.
References DT.
|
inline |
Definition at line 45 of file PostDominators.h.
References DT.
Referenced by llvm::GraphTraits< PostDominatorTree * >::getEntryNode(), and llvm::DOTGraphTraits< PostDominatorTree * >::getNodeLabel().
|
inline |
Definition at line 41 of file PostDominators.h.
References DT.
|
inline |
Definition at line 49 of file PostDominators.h.
References DT.
|
virtual |
print - Print out the internal state of the pass. This is called by Analyze to print out the contents of an analysis. Otherwise it is not necessary to implement this method. Beware that the module pointer MAY be null. This automatically forwards to a virtual function that does not provide the Module* in case the analysis doesn't need it it can just be ignored.
Reimplemented from llvm::Pass.
Definition at line 43 of file PostDominators.cpp.
References DT.
|
inline |
Definition at line 65 of file PostDominators.h.
References DT.
|
inline |
Definition at line 69 of file PostDominators.h.
References DT.
|
inlinevirtual |
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. The default behavior of passes is to hold onto memory for the entire duration of their lifetime (which is the entire compile time). For pipelined passes, this is not a big deal because that memory gets recycled every time the pass is invoked on another program unit. For IP passes, it is more important to free memory when it is unused.
Optionally implement this function to release pass memory when it is no longer used.
Reimplemented from llvm::Pass.
Definition at line 82 of file PostDominators.h.
References DT.
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.
Implements llvm::FunctionPass.
DominatorTreeBase<BasicBlock>* llvm::PostDominatorTree::DT |
Definition at line 26 of file PostDominators.h.
Referenced by dominates(), findNearestCommonDominator(), getNode(), getRootNode(), getRoots(), operator[](), PostDominatorTree(), print(), properlyDominates(), releaseMemory(), and ~PostDominatorTree().
|
static |
Definition at line 25 of file PostDominators.h.