diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-12 22:39:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-12 22:39:50 +0000 |
commit | 455889aa79e3463a4b0f2161e3d9d72a683268b6 (patch) | |
tree | af1cb8e20b69e33a7a744365fb6e15445abf81ed /lib/CodeGen/InstrSched/SchedGraph.h | |
parent | cc179d3ab85fd19c3fd9586409c69d14fbb6c642 (diff) |
* Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
llvm/Support/CFG.h
* Make pred & succ iterators for intervals global functions
* Add #includes that are now neccesary because BasicBlock.h doesn't include
InstrTypes.h anymore
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSched/SchedGraph.h')
-rw-r--r-- | lib/CodeGen/InstrSched/SchedGraph.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/CodeGen/InstrSched/SchedGraph.h b/lib/CodeGen/InstrSched/SchedGraph.h index 80355e4986..fb6087c44d 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.h +++ b/lib/CodeGen/InstrSched/SchedGraph.h @@ -391,13 +391,13 @@ private: // for <const SchedGraphNode, SchedGraphNode::const_iterator>. // template <class _NodeType, class _EdgeType, class _EdgeIter> -class PredIterator: public std::bidirectional_iterator<_NodeType, ptrdiff_t> { +class SGPredIterator: public std::bidirectional_iterator<_NodeType, ptrdiff_t> { protected: _EdgeIter oi; public: - typedef PredIterator<_NodeType, _EdgeType, _EdgeIter> _Self; + typedef SGPredIterator<_NodeType, _EdgeType, _EdgeIter> _Self; - inline PredIterator(_EdgeIter startEdge) : oi(startEdge) {} + inline SGPredIterator(_EdgeIter startEdge) : oi(startEdge) {} inline bool operator==(const _Self& x) const { return oi == x.oi; } inline bool operator!=(const _Self& x) const { return !operator==(x); } @@ -420,13 +420,13 @@ public: }; template <class _NodeType, class _EdgeType, class _EdgeIter> -class SuccIterator: public std::bidirectional_iterator<_NodeType, ptrdiff_t> { +class SGSuccIterator: public std::bidirectional_iterator<_NodeType, ptrdiff_t> { protected: _EdgeIter oi; public: - typedef SuccIterator<_NodeType, _EdgeType, _EdgeIter> _Self; + typedef SGSuccIterator<_NodeType, _EdgeType, _EdgeIter> _Self; - inline SuccIterator(_EdgeIter startEdge) : oi(startEdge) {} + inline SGSuccIterator(_EdgeIter startEdge) : oi(startEdge) {} inline bool operator==(const _Self& x) const { return oi == x.oi; } inline bool operator!=(const _Self& x) const { return !operator==(x); } @@ -451,9 +451,9 @@ public: // sg_pred_iterator // sg_pred_const_iterator // -typedef PredIterator<SchedGraphNode, SchedGraphEdge, SchedGraphNode::iterator> +typedef SGPredIterator<SchedGraphNode, SchedGraphEdge, SchedGraphNode::iterator> sg_pred_iterator; -typedef PredIterator<const SchedGraphNode, const SchedGraphEdge,SchedGraphNode::const_iterator> +typedef SGPredIterator<const SchedGraphNode, const SchedGraphEdge,SchedGraphNode::const_iterator> sg_pred_const_iterator; inline sg_pred_iterator pred_begin( SchedGraphNode *N) { @@ -474,9 +474,9 @@ inline sg_pred_const_iterator pred_end( const SchedGraphNode *N) { // sg_succ_iterator // sg_succ_const_iterator // -typedef SuccIterator<SchedGraphNode, SchedGraphEdge, SchedGraphNode::iterator> +typedef SGSuccIterator<SchedGraphNode, SchedGraphEdge, SchedGraphNode::iterator> sg_succ_iterator; -typedef SuccIterator<const SchedGraphNode, const SchedGraphEdge,SchedGraphNode::const_iterator> +typedef SGSuccIterator<const SchedGraphNode, const SchedGraphEdge,SchedGraphNode::const_iterator> sg_succ_const_iterator; inline sg_succ_iterator succ_begin( SchedGraphNode *N) { |