mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-17 15:38:40 +00:00
Move InstrSchedule's iterator begin/end methods inline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11239 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0dc5753f2b
commit
f738db0818
@ -149,10 +149,10 @@ public: // iterators
|
|||||||
typedef ScheduleIterator<SchedGraphNode> iterator;
|
typedef ScheduleIterator<SchedGraphNode> iterator;
|
||||||
typedef ScheduleIterator<const SchedGraphNode> const_iterator;
|
typedef ScheduleIterator<const SchedGraphNode> const_iterator;
|
||||||
|
|
||||||
iterator begin();
|
iterator begin() { return iterator::begin(*this); }
|
||||||
const_iterator begin() const;
|
const_iterator begin() const { return const_iterator::begin(*this); }
|
||||||
iterator end();
|
iterator end() { return iterator::end(*this); }
|
||||||
const_iterator end() const;
|
const_iterator end() const { return const_iterator::end(*this); }
|
||||||
|
|
||||||
public: // constructors and destructor
|
public: // constructors and destructor
|
||||||
/*ctor*/ InstrSchedule (unsigned int _nslots,
|
/*ctor*/ InstrSchedule (unsigned int _nslots,
|
||||||
@ -280,30 +280,6 @@ ScheduleIterator<_NodeType>::end(const InstrSchedule& _schedule)
|
|||||||
return _Self(_schedule, _schedule.groups.size(), 0);
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class DelaySlotInfo:
|
// class DelaySlotInfo:
|
||||||
|
@ -149,10 +149,10 @@ public: // iterators
|
|||||||
typedef ScheduleIterator<SchedGraphNode> iterator;
|
typedef ScheduleIterator<SchedGraphNode> iterator;
|
||||||
typedef ScheduleIterator<const SchedGraphNode> const_iterator;
|
typedef ScheduleIterator<const SchedGraphNode> const_iterator;
|
||||||
|
|
||||||
iterator begin();
|
iterator begin() { return iterator::begin(*this); }
|
||||||
const_iterator begin() const;
|
const_iterator begin() const { return const_iterator::begin(*this); }
|
||||||
iterator end();
|
iterator end() { return iterator::end(*this); }
|
||||||
const_iterator end() const;
|
const_iterator end() const { return const_iterator::end(*this); }
|
||||||
|
|
||||||
public: // constructors and destructor
|
public: // constructors and destructor
|
||||||
/*ctor*/ InstrSchedule (unsigned int _nslots,
|
/*ctor*/ InstrSchedule (unsigned int _nslots,
|
||||||
@ -280,30 +280,6 @@ ScheduleIterator<_NodeType>::end(const InstrSchedule& _schedule)
|
|||||||
return _Self(_schedule, _schedule.groups.size(), 0);
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// class DelaySlotInfo:
|
// class DelaySlotInfo:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user