diff options
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.h | 13 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h | 13 |
2 files changed, 14 insertions, 12 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index 5df4381e3e..da4d2fd8ec 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -143,13 +143,14 @@ private: friend class UltraSparcRegInfo; - int getUsableUniRegAtMI(RegClass *RC, int RegType, - const MachineInstr *MInst, - const ValueSet *LVSetBef, MachineInstr *&MIBef, - MachineInstr *&MIAft ); - + int getUsableUniRegAtMI(int RegType, + const ValueSet *LVSetBef, + MachineInstr *MInst, + std::vector<MachineInstr*>& MIBef, + std::vector<MachineInstr*>& MIAft); + int getUnusedUniRegAtMI(RegClass *RC, const MachineInstr *MInst, - const ValueSet *LVSetBef); + const ValueSet *LVSetBef); void setRelRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst ); int getUniRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst); diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h index 5df4381e3e..da4d2fd8ec 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h @@ -143,13 +143,14 @@ private: friend class UltraSparcRegInfo; - int getUsableUniRegAtMI(RegClass *RC, int RegType, - const MachineInstr *MInst, - const ValueSet *LVSetBef, MachineInstr *&MIBef, - MachineInstr *&MIAft ); - + int getUsableUniRegAtMI(int RegType, + const ValueSet *LVSetBef, + MachineInstr *MInst, + std::vector<MachineInstr*>& MIBef, + std::vector<MachineInstr*>& MIAft); + int getUnusedUniRegAtMI(RegClass *RC, const MachineInstr *MInst, - const ValueSet *LVSetBef); + const ValueSet *LVSetBef); void setRelRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst ); int getUniRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst); |