[cfe-commits] r42304 - /cfe/trunk/Analysis/DataflowSolver.h
Ted Kremenek
kremenek at apple.com
Tue Sep 25 10:51:05 PDT 2007
Author: kremenek
Date: Tue Sep 25 12:51:05 2007
New Revision: 42304
URL: http://llvm.org/viewvc/llvm-project?rev=42304&view=rev
Log:
Minor comment changes.
Modified:
cfe/trunk/Analysis/DataflowSolver.h
Modified: cfe/trunk/Analysis/DataflowSolver.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/DataflowSolver.h?rev=42304&r1=42303&r2=42304&view=diff
==============================================================================
--- cfe/trunk/Analysis/DataflowSolver.h (original)
+++ cfe/trunk/Analysis/DataflowSolver.h Tue Sep 25 12:51:05 2007
@@ -23,6 +23,7 @@
//===----------------------------------------------------------------------===//
/// DataflowWorkListTy - Data structure representing the worklist used for
/// dataflow algorithms.
+//===----------------------------------------------------------------------===//
class DataflowWorkListTy {
typedef llvm::SmallPtrSet<const CFGBlock*,20> BlockSet;
@@ -48,6 +49,7 @@
// BlockItrTraits - Traits classes that allow transparent iteration over
// successors/predecessors of a block depending on the direction of our
// dataflow analysis.
+//===----------------------------------------------------------------------===//
namespace dataflow {
template<typename Tag> struct ItrTraits {};
@@ -101,15 +103,17 @@
//===----------------------------------------------------------------------===//
/// DataflowSolverTy - Generic dataflow solver.
+//===----------------------------------------------------------------------===//
+
template <typename _DFValuesTy, // Usually a subclass of DataflowValues
typename _TransferFuncsTy,
typename _MergeOperatorTy,
typename _Equal = std::equal_to<typename _DFValuesTy::ValTy> >
class DataflowSolver {
- //===--------------------------------------------------------------------===//
+ //===----------------------------------------------------===//
// Type declarations.
- //===--------------------------------------------------------------------===//
+ //===----------------------------------------------------===//
public:
typedef _DFValuesTy DFValuesTy;
@@ -126,9 +130,9 @@
typedef typename ItrTraits::PrevBItr PrevBItr;
typedef typename ItrTraits::StmtItr StmtItr;
- //===--------------------------------------------------------------------===//
+ //===----------------------------------------------------===//
// External interface: constructing and running the solver.
- //===--------------------------------------------------------------------===//
+ //===----------------------------------------------------===//
public:
DataflowSolver(DFValuesTy& d) : D(d), TF(d.getAnalysisData()) {}
@@ -167,9 +171,9 @@
runOnBlock(I);
}
- //===--------------------------------------------------------------------===//
+ //===----------------------------------------------------===//
// Internal solver logic.
- //===--------------------------------------------------------------------===//
+ //===----------------------------------------------------===//
private:
More information about the cfe-commits
mailing list