Added special consideration for instrumentation strategy
llvm-svn: 7208
diff --git a/llvm/lib/Target/Sparc/SparcRegClassInfo.h b/llvm/lib/Target/Sparc/SparcRegClassInfo.h
index 50cccb6..38b81b3 100644
--- a/llvm/lib/Target/Sparc/SparcRegClassInfo.h
+++ b/llvm/lib/Target/Sparc/SparcRegClassInfo.h
@@ -25,6 +25,10 @@
return (Reg < (int)StartOfNonVolatileRegs);
}
+ inline bool modifiedByCall(int Reg) const {
+ return Reg==(int)ModifiedByCall;
+ }
+
enum { // colors possible for a LR (in preferred order)
// --- following colors are volatile across function calls
// %g0 can't be used for coloring - always 0
@@ -61,6 +65,8 @@
StartOfNonVolatileRegs = l0,
StartOfAllRegs = o0,
+
+ ModifiedByCall = o7,
};
const char * const getRegName(unsigned reg) const;