diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-10 06:00:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-10 06:00:40 +0000 |
commit | 6c8d90d65fa721d406c7a09a0045fa49254a9244 (patch) | |
tree | 151ba29d9a710737167b38fc845c8faaf645fa1b /include/llvm/Target/MRegisterInfo.h | |
parent | 9ceece5f7d18017551e4766b06afe2b619dbe339 (diff) | |
download | external_llvm-6c8d90d65fa721d406c7a09a0045fa49254a9244.zip external_llvm-6c8d90d65fa721d406c7a09a0045fa49254a9244.tar.gz external_llvm-6c8d90d65fa721d406c7a09a0045fa49254a9244.tar.bz2 |
Doxygenify some methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/MRegisterInfo.h')
-rw-r--r-- | include/llvm/Target/MRegisterInfo.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h index 0e0d5a2..151274c 100644 --- a/include/llvm/Target/MRegisterInfo.h +++ b/include/llvm/Target/MRegisterInfo.h @@ -66,17 +66,21 @@ public: 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]; |