From: Vikram S. Adve Date: Mon, 8 Jul 2002 22:39:36 +0000 (+0000) Subject: getUsableUniRegAtMI interface simplified slightly. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c2580ddb0888c0b823dab5e0b9f27bbf4afdd705;p=oota-llvm.git getUsableUniRegAtMI interface simplified slightly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2822 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index 5df4381e3ee..da4d2fd8ecd 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& MIBef, + std::vector& 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 5df4381e3ee..da4d2fd8ecd 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& MIBef, + std::vector& 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);