aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/SparcV9RegClassInfo.h
diff options
context:
space:
mode:
authorAnand Shukla <ashukla@cs.uiuc.edu>2003-07-20 15:39:30 +0000
committerAnand Shukla <ashukla@cs.uiuc.edu>2003-07-20 15:39:30 +0000
commit6da69e75ec594afe6758d923ff011b59c2e82dee (patch)
tree9b25ebf7c0a3497dba6ff737090c735367f7c808 /lib/Target/SparcV9/SparcV9RegClassInfo.h
parentfcf2be75ec61c6ae3da53d0e4e9f53b4d754dc9b (diff)
downloadexternal_llvm-6da69e75ec594afe6758d923ff011b59c2e82dee.zip
external_llvm-6da69e75ec594afe6758d923ff011b59c2e82dee.tar.gz
external_llvm-6da69e75ec594afe6758d923ff011b59c2e82dee.tar.bz2
Added special consideration for instrumentation strategy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9RegClassInfo.h')
-rw-r--r--lib/Target/SparcV9/SparcV9RegClassInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9RegClassInfo.h b/lib/Target/SparcV9/SparcV9RegClassInfo.h
index 50cccb6..38b81b3 100644
--- a/lib/Target/SparcV9/SparcV9RegClassInfo.h
+++ b/lib/Target/SparcV9/SparcV9RegClassInfo.h
@@ -25,6 +25,10 @@ struct SparcIntRegClass : public TargetRegClassInfo {
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 @@ struct SparcIntRegClass : public TargetRegClassInfo {
StartOfNonVolatileRegs = l0,
StartOfAllRegs = o0,
+
+ ModifiedByCall = o7,
};
const char * const getRegName(unsigned reg) const;