[llvm-commits] [llvm] r130814 - /llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.h

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue May 3 18:01:36 PDT 2011


Author: stoklund
Date: Tue May  3 20:01:36 2011
New Revision: 130814

URL: http://llvm.org/viewvc/llvm-project?rev=130814&view=rev
Log:
Implement MSP430RegisterInfo::getMatchingSuperRegClass to enable cross-class
coalescing.

Modified:
    llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.h

Modified: llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.h?rev=130814&r1=130813&r2=130814&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.h (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430RegisterInfo.h Tue May  3 20:01:36 2011
@@ -39,6 +39,13 @@
   BitVector getReservedRegs(const MachineFunction &MF) const;
   const TargetRegisterClass* getPointerRegClass(unsigned Kind = 0) const;
 
+  const TargetRegisterClass *
+  getMatchingSuperRegClass(const TargetRegisterClass *A,
+                           const TargetRegisterClass *B, unsigned Idx) const {
+    // No sub-classes makes this really easy.
+    return A;
+  }
+
   void eliminateCallFramePseudoInstr(MachineFunction &MF,
                                      MachineBasicBlock &MBB,
                                      MachineBasicBlock::iterator I) const;





More information about the llvm-commits mailing list