summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index 0380e803add..57cd96589f3 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -156,7 +156,7 @@ class PhyRegAlloc
RegStackOffsets StackOffsets;
- vector<const MachineInstr *> PhiInstList; // a list of all phi instrs
+ //vector<const MachineInstr *> PhiInstList; // a list of all phi instrs
//------- private methods ---------------------------------------------------
@@ -194,9 +194,20 @@ class PhyRegAlloc
void printMachineCode();
friend class UltraSparcRegInfo;
+
+
+ int getUsableRegAtMI(RegClass *RC, const int RegType, const MachineInstr *MInst,
+ const LiveVarSet *LVSetBef, MachineInstr *MIBef,
+ MachineInstr *MIAft );
+
+ int getUnusedRegAtMI(RegClass *RC, const MachineInstr *MInst,
+ const LiveVarSet *LVSetBef);
+
void setRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst );
int getRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst);
+
+
void PhyRegAlloc::insertPhiEleminateInstrns();
public:
OpenPOWER on IntegriCloud