diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-11-15 20:22:37 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-11-15 20:22:37 +0000 |
commit | 825dd55429f6dfea37a6aeb095a1c0c48018c568 (patch) | |
tree | 14a8c28c40d0b6a2c1620aaa100e027a1c27de69 | |
parent | fe700e7e4240fa88b8d5f44d1e7d6dcc51495c26 (diff) |
Changed some names of methods, added const etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1322 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/RegAlloc/LiveRange.h | 2 | ||||
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.h | 13 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/LiveRange.h | 2 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h | 13 |
4 files changed, 16 insertions, 14 deletions
diff --git a/lib/CodeGen/RegAlloc/LiveRange.h b/lib/CodeGen/RegAlloc/LiveRange.h index 5b7b7ca2d4..3ef627ed98 100644 --- a/lib/CodeGen/RegAlloc/LiveRange.h +++ b/lib/CodeGen/RegAlloc/LiveRange.h @@ -109,7 +109,7 @@ class LiveRange : public ValueSet - inline bool hasSpillOffset() { + inline bool hasSpillOffset() const { return HasSpillOffset; } diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index 060600147e..f76e68bb96 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -128,15 +128,16 @@ class PhyRegAlloc: public NonCopyable friend class UltraSparcRegInfo; - int getUsableRegAtMI(RegClass *RC, const int RegType, const MachineInstr *MInst, - const LiveVarSet *LVSetBef, MachineInstr *MIBef, - MachineInstr *MIAft ); + int getUsableUniRegAtMI(RegClass *RC, const int RegType, + const MachineInstr *MInst, + const LiveVarSet *LVSetBef, MachineInstr *MIBef, + MachineInstr *MIAft ); - int getUnusedRegAtMI(RegClass *RC, const MachineInstr *MInst, + int getUnusedUniRegAtMI(RegClass *RC, const MachineInstr *MInst, const LiveVarSet *LVSetBef); - void setRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst ); - int getRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst); + void setRelRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst ); + int getUniRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst); void addInterf4PseudoInstr(const MachineInstr *MInst); diff --git a/lib/Target/SparcV9/RegAlloc/LiveRange.h b/lib/Target/SparcV9/RegAlloc/LiveRange.h index 5b7b7ca2d4..3ef627ed98 100644 --- a/lib/Target/SparcV9/RegAlloc/LiveRange.h +++ b/lib/Target/SparcV9/RegAlloc/LiveRange.h @@ -109,7 +109,7 @@ class LiveRange : public ValueSet - inline bool hasSpillOffset() { + inline bool hasSpillOffset() const { return HasSpillOffset; } diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h index 060600147e..f76e68bb96 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h @@ -128,15 +128,16 @@ class PhyRegAlloc: public NonCopyable friend class UltraSparcRegInfo; - int getUsableRegAtMI(RegClass *RC, const int RegType, const MachineInstr *MInst, - const LiveVarSet *LVSetBef, MachineInstr *MIBef, - MachineInstr *MIAft ); + int getUsableUniRegAtMI(RegClass *RC, const int RegType, + const MachineInstr *MInst, + const LiveVarSet *LVSetBef, MachineInstr *MIBef, + MachineInstr *MIAft ); - int getUnusedRegAtMI(RegClass *RC, const MachineInstr *MInst, + int getUnusedUniRegAtMI(RegClass *RC, const MachineInstr *MInst, const LiveVarSet *LVSetBef); - void setRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst ); - int getRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst); + void setRelRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst ); + int getUniRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst); void addInterf4PseudoInstr(const MachineInstr *MInst); |