Changes in directory llvm/lib/Target/Alpha:

AlphaRegisterInfo.cpp updated: 1.57 -> 1.58
AlphaRegisterInfo.h updated: 1.17 -> 1.18
---
Log message:

Added getReservedRegs().

---
Diffs of the changes:  (+11 -0)

 AlphaRegisterInfo.cpp |    9 +++++++++
 AlphaRegisterInfo.h   |    2 ++
 2 files changed, 11 insertions(+)


Index: llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
diff -u llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.57 
llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.58
--- llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.57    Tue Jan 23 03:37:38 2007
+++ llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp Sat Feb 17 05:06:00 2007
@@ -28,6 +28,7 @@
 #include "llvm/Target/TargetInstrInfo.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/ADT/BitVector.h"
 #include "llvm/ADT/STLExtras.h"
 #include <cstdlib>
 using namespace llvm;
@@ -178,6 +179,14 @@
   return CalleeSavedRegClasses;
 }
 
+BitVector AlphaRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
+  BitVector Reserved(getNumRegs());
+  Reserved.set(Alpha::R15);
+  Reserved.set(Alpha::R30);
+  Reserved.set(Alpha::R31);
+  return Reserved;
+}
+
 
//===----------------------------------------------------------------------===//
 // Stack Frame Processing methods
 
//===----------------------------------------------------------------------===//


Index: llvm/lib/Target/Alpha/AlphaRegisterInfo.h
diff -u llvm/lib/Target/Alpha/AlphaRegisterInfo.h:1.17 
llvm/lib/Target/Alpha/AlphaRegisterInfo.h:1.18
--- llvm/lib/Target/Alpha/AlphaRegisterInfo.h:1.17      Mon Jan 22 18:53:13 2007
+++ llvm/lib/Target/Alpha/AlphaRegisterInfo.h   Sat Feb 17 05:06:00 2007
@@ -49,6 +49,8 @@
 
   const TargetRegisterClass* const* getCalleeSavedRegClasses() const;
 
+  BitVector getReservedRegs(const MachineFunction &MF) const;
+
   bool hasFP(const MachineFunction &MF) const;
 
   void eliminateCallFramePseudoInstr(MachineFunction &MF,



_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to