Added TargetRegisterInfo::getRegPressureSetName.
authorAndrew Trick <atrick@apple.com>
Fri, 20 Apr 2012 20:45:00 +0000 (20:45 +0000)
committerAndrew Trick <atrick@apple.com>
Fri, 20 Apr 2012 20:45:00 +0000 (20:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155235 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetRegisterInfo.h

index 6ddd36451b5c1ebafc01f9a13d14f17950462118..471d9aeb473a8a68d656d23b2b60f4c183ccdcfe 100644 (file)
@@ -515,13 +515,16 @@ public:
     return 0;
   }
 
-  /// Get the weight in units of pressure for this register class.
+// Get the weight in units of pressure for this register class.
   virtual const RegClassWeight &getRegClassWeight(
     const TargetRegisterClass *RC) const = 0;
 
   /// Get the number of dimensions of register pressure.
   virtual unsigned getNumRegPressureSets() const = 0;
 
+  /// Get the name of this register unit pressure set.
+  virtual const char *getRegPressureSetName(unsigned Idx) const = 0;
+
   /// Get the register unit pressure limit for this dimension.
   /// This limit must be adjusted dynamically for reserved registers.
   virtual unsigned getRegPressureSetLimit(unsigned Idx) const = 0;