LLVM API Documentation
#include <Dominators.h>
Inheritance diagram for llvm::DominatorTree:


Definition at line 718 of file Dominators.h.
|
|
Definition at line 723 of file Dominators.h. |
|
|
Definition at line 727 of file Dominators.h. |
|
||||||||||||
|
addNewBlock - Add a new node to the dominator tree information. This creates a new node as a child of DomBB dominator node,linking it into the children list of the immediate dominator. Definition at line 831 of file Dominators.h. References llvm::DomTreeNode. Referenced by CloneDominatorInfo(), LoopRotate::preserveCanonicalLoopForm(), llvm::SplitBlock(), and llvm::SplitCriticalEdge(). |
|
||||||||||||
|
Definition at line 842 of file Dominators.h. |
|
||||||||||||
|
changeImmediateDominator - This method is used to update the dominator tree information when a node's immediate dominator changes. Definition at line 838 of file Dominators.h. Referenced by llvm::MergeBlockIntoPredecessor(), LoopRotate::preserveCanonicalLoopForm(), LoopDeletion::runOnLoop(), llvm::SplitBlock(), and llvm::SplitCriticalEdge(). |
|
|
compare - Return false if the other dominator tree matches this dominator tree. Otherwise return true. Definition at line 752 of file Dominators.h. References llvm::DomTreeNode, getBase(), llvm::DomTreeNodeBase< NodeT >::getBlock(), and getRootNode(). Referenced by llvm::PMDataManager::verifyDomInfo(). |
|
||||||||||||
|
Definition at line 781 of file Dominators.h. References llvm::BasicBlock::begin(), and llvm::Instruction::getParent(). |
|
||||||||||||
|
Definition at line 775 of file Dominators.h. |
|
||||||||||||
|
|
eraseNode - Removes a node from the dominator tree. Block must not domiante any other blocks. Removes node from its immediate dominator's children list. Deletes dominator node associated with basic block BB. Definition at line 849 of file Dominators.h. Referenced by llvm::MergeBlockIntoPredecessor(), and LoopDeletion::runOnLoop(). |
|
||||||||||||
|
findNearestCommonDominator - Find nearest common dominator basic block for basic block A and B. If there is no such block then return NULL. Definition at line 813 of file Dominators.h. |
|
|
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 767 of file Dominators.h. References llvm::AnalysisUsage::setPreservesAll(). |
|
|
Definition at line 732 of file Dominators.h. Referenced by compare(), and llvm::PMDataManager::verifyDomInfo(). |
|
|
getNode - return the (Post)DominatorTree node for the specified basic block. This is the same as using operator[] on this class. Definition at line 824 of file Dominators.h. References llvm::DomTreeNode. Referenced by CloneDominatorInfo(), llvm::MergeBlockIntoPredecessor(), LoopRotate::preserveCanonicalLoopForm(), LCSSA::ProcessInstruction(), LICM::runOnLoop(), llvm::SplitBlock(), llvm::SplitCriticalEdge(), and llvm::PMDataManager::verifyDomInfo(). |
|
|
Definition at line 742 of file Dominators.h. |
|
|
Definition at line 746 of file Dominators.h. References llvm::DomTreeNode. Referenced by compare(), DomTreeDFS::DomTreeDFS(), and llvm::GraphTraits< DominatorTree * >::getEntryNode(). |
|
|
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 738 of file Dominators.h. Referenced by llvm::DominanceFrontier::runOnFunction(), and llvm::PMDataManager::verifyDomInfo(). |
|
|
Definition at line 859 of file Dominators.h. |
|
|
Definition at line 817 of file Dominators.h. References llvm::DomTreeNode. |
|
||||||||||||
|
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 868 of file Dominators.h. |
|
||||||||||||
|
Definition at line 807 of file Dominators.h. |
|
||||||||||||
|
Definition at line 803 of file Dominators.h. Referenced by llvm::DominanceFrontier::calculate(), ValueTable::lookup_or_add(), and PromoteMem2Reg::properlyDominates(). |
|
|
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 864 of file Dominators.h. |
|
|
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass. Implements llvm::FunctionPass. Definition at line 59 of file Dominators.cpp. References DT, and llvm::DominatorTreeBase< NodeT >::recalculate(). Referenced by LoopUnswitch::runOnLoop(), and LoopUnroll::runOnLoop(). |
|
|
splitBlock - BB is split and now it has one successor. Update dominator tree to reflect this change. Definition at line 855 of file Dominators.h. Referenced by llvm::SplitBlockPredecessors(). |
|
|
Definition at line 721 of file Dominators.h. Referenced by runOnFunction(). |
|
|
Definition at line 55 of file Dominators.cpp. |