diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-14 03:55:58 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-14 03:55:58 +0000 |
commit | 603ef2796b6db947ec76f18131894eb8f1a1b2fc (patch) | |
tree | 26408e420040331cfe74160f5196fef06455a056 | |
parent | ef7a9fb63bfb045160f33a3e7b8107246a3db999 (diff) | |
download | llvm-603ef2796b6db947ec76f18131894eb8f1a1b2fc.zip llvm-603ef2796b6db947ec76f18131894eb8f1a1b2fc.tar.gz llvm-603ef2796b6db947ec76f18131894eb8f1a1b2fc.tar.bz2 |
[dom] Clean up some comments in this header that were confusingly
formatted or placed incorrectly.
llvm-svn: 225937
-rw-r--r-- | llvm/include/llvm/Support/GenericDomTree.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/llvm/include/llvm/Support/GenericDomTree.h b/llvm/include/llvm/Support/GenericDomTree.h index 6bc4b44..12a1f5d 100644 --- a/llvm/include/llvm/Support/GenericDomTree.h +++ b/llvm/include/llvm/Support/GenericDomTree.h @@ -29,10 +29,8 @@ namespace llvm { -//===----------------------------------------------------------------------===// -/// DominatorBase - Base class that other, more interesting dominator analyses +/// \brief Base class that other, more interesting dominator analyses /// inherit from. -/// template <class NodeT> class DominatorBase { protected: @@ -54,11 +52,10 @@ public: }; -//===----------------------------------------------------------------------===// -// DomTreeNodeBase - Dominator Tree Node template<class NodeT> class DominatorTreeBase; struct PostDominatorTree; +/// \brief Base class for the actual dominator tree node. template <class NodeT> class DomTreeNodeBase { NodeT *TheBB; @@ -169,14 +166,15 @@ inline void PrintDomTree(const DomTreeNodeBase<NodeT> *N, raw_ostream &o, PrintDomTree<NodeT>(*I, o, Lev+1); } -//===----------------------------------------------------------------------===// -/// DominatorTree - Calculate the immediate dominator tree for a function. -/// - +// The calculate routine is provided in a separate header but referenced here. template<class FuncT, class N> void Calculate(DominatorTreeBase<typename GraphTraits<N>::NodeType>& DT, FuncT& F); +/// \brief Core dominator tree base class. +/// +/// This class is a generic template over graph nodes. It is instantiated for +/// various graphs in the LLVM IR or in the code generator. template<class NodeT> class DominatorTreeBase : public DominatorBase<NodeT> { bool dominatedBySlowTreeWalk(const DomTreeNodeBase<NodeT> *A, |