aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-01 20:38:31 +0000
committerChris Lattner <sabre@nondot.org>2005-08-01 20:38:31 +0000
commite84d2066ce4a0d3e753e3171333a69f4081dcd56 (patch)
treeb02b12dc0b80b14481e0363b928598463bddd9ab
parent5bca0da93622ef73ce08ad6c4fe222a03b396468 (diff)
Mark these as V9 specific
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22572 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineInstr.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index b0705182e9..56f374978a 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -503,10 +503,10 @@ public:
void dump() const;
friend std::ostream& operator<<(std::ostream& os, const MachineInstr& minstr);
- //
// Define iterators to access the Value operands of the Machine Instruction.
// Note that these iterators only enumerate the explicit operands.
- // begin() and end() are defined to produce these iterators...
+ // begin() and end() are defined to produce these iterators. NOTE, these are
+ // SparcV9 specific!
//
template<class _MI, class _V> class ValOpIterator;
typedef ValOpIterator<const MachineInstr*,const Value*> const_val_op_iterator;
@@ -711,7 +711,7 @@ public:
void SetRegForImplicitRef(unsigned i, int regNum);
//
- // Iterator to enumerate machine operands.
+ // Iterator to enumerate machine operands. NOTE, this is SPARCV9 specific!
//
template<class MITy, class VTy>
class ValOpIterator : public forward_iterator<VTy, ptrdiff_t> {
@@ -763,10 +763,9 @@ public:
}
};
- // define begin() and end()
+ // Note: These are Sparc-V9 specific!
val_op_iterator begin() { return val_op_iterator::begin(this); }
val_op_iterator end() { return val_op_iterator::end(this); }
-
const_val_op_iterator begin() const {
return const_val_op_iterator::begin(this);
}