[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 1 13:38:42 PDT 2005
Changes in directory llvm/include/llvm/CodeGen:
MachineInstr.h updated: 1.162 -> 1.163
---
Log message:
Mark these as V9 specific
---
Diffs of the changes: (+4 -5)
MachineInstr.h | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.162 llvm/include/llvm/CodeGen/MachineInstr.h:1.163
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.162 Thu Apr 21 22:45:18 2005
+++ llvm/include/llvm/CodeGen/MachineInstr.h Mon Aug 1 15:38:31 2005
@@ -503,10 +503,10 @@
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 @@
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 @@
}
};
- // 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);
}
More information about the llvm-commits
mailing list