Make getMinimalPhysRegClass' comment mention what makes it different
authorDan Gohman <gohman@apple.com>
Tue, 6 Jul 2010 15:31:55 +0000 (15:31 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 6 Jul 2010 15:31:55 +0000 (15:31 +0000)
from getPhysicalRegisterRegClass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107660 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetRegisterInfo.h
lib/Target/TargetRegisterInfo.cpp

index eb997cddf23fdb8c864ffaa350d845a10003a575..5913d67b904c06f77edf4c279e323ef2a59d9a62 100644 (file)
@@ -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;
 
index 48374d93d8865ce1a0533561dd75b2608c2b0f2f..65898243d0a22551db06dbf559387e76bc8eb05a 100644 (file)
@@ -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");