LLVM API Documentation

Public Types | Public Member Functions
llvm::DominatorTree Class Reference

Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree. More...

#include <Dominators.h>

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

List of all members.

Public Types

typedef DominatorTreeBase
< BasicBlock
Base

Public Member Functions

 DominatorTree ()
bool compare (const DominatorTree &Other) const
 Returns *false* if the other dominator tree matches this dominator tree.
bool dominates (const Instruction *Def, const Use &U) const
 Return true if Def dominates a use in User.
bool dominates (const Instruction *Def, const Instruction *User) const
bool dominates (const Instruction *Def, const BasicBlock *BB) const
bool dominates (const BasicBlockEdge &BBE, const Use &U) const
bool dominates (const BasicBlockEdge &BBE, const BasicBlock *BB) const
bool isReachableFromEntry (const Use &U) const
 Provide an overload for a Use.
void verifyDomTree () const
 Verify the correctness of the domtree by re-computing it.

Detailed Description

Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree.

Definition at line 66 of file Dominators.h.


Member Typedef Documentation

Definition at line 68 of file Dominators.h.


Constructor & Destructor Documentation

Definition at line 70 of file Dominators.h.


Member Function Documentation

Verify the correctness of the domtree by re-computing it.

This should only be used for debugging as it aborts the program if the verification fails.

Definition at line 283 of file Dominators.cpp.

References compare(), llvm::errs(), F(), llvm::BasicBlock::getParent(), llvm::DominatorTreeBase< BasicBlock >::getRoot(), llvm::DominatorTreeBase< BasicBlock >::print(), llvm::DominatorTreeBase< NodeT >::print(), llvm::DominatorTreeBase< NodeT >::recalculate(), and VerifyDomInfo.

Referenced by llvm::DominatorTreeWrapperPass::verifyAnalysis().


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