diff options
| author | Dan Gohman <gohman@apple.com> | 2010-07-06 15:31:55 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-07-06 15:31:55 +0000 |
| commit | 2b2a1c3c8614421dd9f750564d020b552dc0e0e2 (patch) | |
| tree | 79d23192eda355a2155b0c5e93ff301e3acb1f61 /llvm | |
| parent | 6c858db40cfe6bcb0d79eeadd467db44dc6b71d0 (diff) | |
| download | bcm5719-llvm-2b2a1c3c8614421dd9f750564d020b552dc0e0e2.tar.gz bcm5719-llvm-2b2a1c3c8614421dd9f750564d020b552dc0e0e2.zip | |
Make getMinimalPhysRegClass' comment mention what makes it different
from getPhysicalRegisterRegClass.
llvm-svn: 107660
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Target/TargetRegisterInfo.h | 3 | ||||
| -rw-r--r-- | llvm/lib/Target/TargetRegisterInfo.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Target/TargetRegisterInfo.h b/llvm/include/llvm/Target/TargetRegisterInfo.h index eb997cddf23..5913d67b904 100644 --- a/llvm/include/llvm/Target/TargetRegisterInfo.h +++ b/llvm/include/llvm/Target/TargetRegisterInfo.h @@ -320,7 +320,8 @@ public: getPhysicalRegisterRegClass(unsigned Reg, EVT VT = MVT::Other) const; /// getMinimalPhysRegClass - Returns the Register Class of a physical - /// register of the given type. + /// register of the given type, picking the most sub register class of + /// the right type that contains this physreg. const TargetRegisterClass * getMinimalPhysRegClass(unsigned Reg, EVT VT = MVT::Other) const; diff --git a/llvm/lib/Target/TargetRegisterInfo.cpp b/llvm/lib/Target/TargetRegisterInfo.cpp index 48374d93d88..65898243d0a 100644 --- a/llvm/lib/Target/TargetRegisterInfo.cpp +++ b/llvm/lib/Target/TargetRegisterInfo.cpp @@ -61,7 +61,8 @@ TargetRegisterInfo::getPhysicalRegisterRegClass(unsigned reg, EVT VT) const { } /// getMinimalPhysRegClass - Returns the Register Class of a physical -/// register of the given type. +/// register of the given type, picking the most sub register class of +/// the right type that contains this physreg. const TargetRegisterClass * TargetRegisterInfo::getMinimalPhysRegClass(unsigned reg, EVT VT) const { assert(isPhysicalRegister(reg) && "reg must be a physical register"); |

