LLVM API Documentation
#include <Dominators.h>
Inheritance diagram for llvm::ImmediateDominatorsBase:
Public Types | |
typedef std::map< BasicBlock *, BasicBlock * > | IDomMapType |
typedef IDomMapType::const_iterator | const_iterator |
Public Member Functions | |
ImmediateDominatorsBase (bool isPostDom) | |
virtual void | releaseMemory () |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | find (BasicBlock *B) const |
BasicBlock * | operator[] (BasicBlock *BB) const |
BasicBlock * | get (BasicBlock *BB) const |
void | addNewBlock (BasicBlock *BB, BasicBlock *IDom) |
void | setImmediateDominator (BasicBlock *BB, BasicBlock *NewIDom) |
virtual void | print (std::ostream &OS) const |
Protected Attributes | |
std::map< BasicBlock *, BasicBlock * > | IDoms |
Definition at line 64 of file Dominators.h.
|
Definition at line 74 of file Dominators.h. |
|
Definition at line 73 of file Dominators.h. |
|
Definition at line 68 of file Dominators.h. |
|
addNewBlock - Add a new block to the CFG, with the specified immediate dominator. Definition at line 100 of file Dominators.h. |
|
Definition at line 75 of file Dominators.h. References IDoms. |
|
Definition at line 76 of file Dominators.h. References IDoms. |
|
Definition at line 77 of file Dominators.h. References IDoms. |
|
get() - Synonym for operator[]. Definition at line 88 of file Dominators.h. Referenced by addNewBlock(), operator[](), and print(). |
|
operator[] - Return the idom for the specified basic block. The start node returns null, because it does not have an immediate dominator. Definition at line 82 of file Dominators.h. References get(). |
|
print - Convert to human readable form Reimplemented from llvm::Pass. Definition at line 213 of file Dominators.cpp. References llvm::Function::begin(), E, llvm::Function::end(), F, get(), llvm::DominatorBase::getRoots(), I, and llvm::WriteAsOperand(). |
|
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 70 of file Dominators.h. References IDoms. |
|
setImmediateDominator - Update the immediate dominator information to change the current immediate dominator for the specified block to another block. This method requires that BB already have an IDom, otherwise just use addNewBlock. Definition at line 110 of file Dominators.h. References IDoms. |
|
Definition at line 66 of file Dominators.h. Referenced by addNewBlock(), begin(), end(), find(), get(), releaseMemory(), llvm::ImmediatePostDominators::runOnFunction(), llvm::ImmediateDominators::runOnFunction(), and setImmediateDominator(). |