From ca632ed71aedb74790257246d08854a888ca3a84 Mon Sep 17 00:00:00 2001 From: Ruchira Sasanka Date: Sat, 3 Nov 2001 17:14:44 +0000 Subject: [PATCH] Arranged stack frame - needs furhter organization llvm-svn: 1108 --- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h index 59de6195314b..0380e803add6 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -151,10 +151,13 @@ class PhyRegAlloc //vector CallInstrList; // a list of all call instrs //vector RetInstrList; // a list of all return instrs + AddedInstrMapType AddedInstrMap; // to store instrns added in this phase RegStackOffsets StackOffsets; + vector PhiInstList; // a list of all phi instrs + //------- private methods --------------------------------------------------- void addInterference(const Value *const Def, const LiveVarSet *const LVSet, @@ -194,6 +197,7 @@ class PhyRegAlloc void setRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst ); int getRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst); + void PhyRegAlloc::insertPhiEleminateInstrns(); public: @@ -206,6 +210,20 @@ class PhyRegAlloc +/* + + +What to do: + + * Insert IntCCReg checking code to insertCallerSaving + * add methods like cpCCReg2Mem & cpMem2CCReg (these will accept an array + and push back or push_front the instr according to PUSH_BACK, PUSH_FRONT + flags + +*/ + + +