[llvm-commits] CVS: llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Feb 9 12:43:03 PST 2004
Changes in directory llvm/lib/CodeGen/InstrSched:
InstrScheduling.cpp updated: 1.62 -> 1.63
---
Log message:
Move InstrSchedule's iterator begin/end methods inline.
---
Diffs of the changes: (+4 -28)
Index: llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
diff -u llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp:1.62 llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp:1.63
--- llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp:1.62 Tue Nov 11 16:41:32 2003
+++ llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp Mon Feb 9 12:42:46 2004
@@ -149,10 +149,10 @@
typedef ScheduleIterator<SchedGraphNode> iterator;
typedef ScheduleIterator<const SchedGraphNode> const_iterator;
- iterator begin();
- const_iterator begin() const;
- iterator end();
- const_iterator end() const;
+ iterator begin() { return iterator::begin(*this); }
+ const_iterator begin() const { return const_iterator::begin(*this); }
+ iterator end() { return iterator::end(*this); }
+ const_iterator end() const { return const_iterator::end(*this); }
public: // constructors and destructor
/*ctor*/ InstrSchedule (unsigned int _nslots,
@@ -278,30 +278,6 @@
ScheduleIterator<_NodeType>::end(const InstrSchedule& _schedule)
{
return _Self(_schedule, _schedule.groups.size(), 0);
-}
-
-InstrSchedule::iterator
-InstrSchedule::begin()
-{
- return iterator::begin(*this);
-}
-
-InstrSchedule::const_iterator
-InstrSchedule::begin() const
-{
- return const_iterator::begin(*this);
-}
-
-InstrSchedule::iterator
-InstrSchedule::end()
-{
- return iterator::end(*this);
-}
-
-InstrSchedule::const_iterator
-InstrSchedule::end() const
-{
- return const_iterator::end( *this);
}
More information about the llvm-commits
mailing list