[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Aug 9 23:00:54 PDT 2006
Changes in directory llvm/include/llvm/Target:
MRegisterInfo.h updated: 1.80 -> 1.81
---
Log message:
Doxygenify some methods.
---
Diffs of the changes: (+8 -4)
MRegisterInfo.h | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.80 llvm/include/llvm/Target/MRegisterInfo.h:1.81
--- llvm/include/llvm/Target/MRegisterInfo.h:1.80 Thu Aug 3 13:57:28 2006
+++ llvm/include/llvm/Target/MRegisterInfo.h Thu Aug 10 01:00:40 2006
@@ -66,17 +66,21 @@
RegSize(RS), Alignment(Al), RegsBegin(RB), RegsEnd(RE) {}
virtual ~TargetRegisterClass() {} // Allow subclasses
- // getID() - Return the register class ID number.
+ /// getID() - Return the register class ID number.
+ ///
unsigned getID() const { return ID; }
- // begin/end - Return all of the registers in this class.
+ /// begin/end - Return all of the registers in this class.
+ ///
iterator begin() const { return RegsBegin; }
iterator end() const { return RegsEnd; }
- // getNumRegs - Return the number of registers in this class
+ /// getNumRegs - Return the number of registers in this class.
+ ///
unsigned getNumRegs() const { return RegsEnd-RegsBegin; }
- // getRegister - Return the specified register in the class
+ /// getRegister - Return the specified register in the class.
+ ///
unsigned getRegister(unsigned i) const {
assert(i < getNumRegs() && "Register number out of range!");
return RegsBegin[i];
More information about the llvm-commits
mailing list