mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Moved callerSaving code to machine specific classes since we have to handle
%ccr reg differently. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@991 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
174bded6ce
commit
78d63ee313
@ -23,7 +23,8 @@ class MachineInstr;
|
||||
class RegClass;
|
||||
class CallInst;
|
||||
class ReturnInst;
|
||||
|
||||
class PhyRegAlloc;
|
||||
class BasicBlock;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// class MachineRegClassInfo
|
||||
@ -129,8 +130,8 @@ public:
|
||||
AddedInstrns *const FirstAI) const = 0;
|
||||
|
||||
virtual void colorCallArgs(const MachineInstr *const CalI,
|
||||
LiveRangeInfo& LRI,
|
||||
AddedInstrns *const CallAI) const = 0;
|
||||
LiveRangeInfo& LRI, AddedInstrns *const CallAI,
|
||||
PhyRegAlloc &PRA) const = 0;
|
||||
|
||||
virtual void colorRetValue(const MachineInstr *const RetI,LiveRangeInfo& LRI,
|
||||
AddedInstrns *const RetAI) const = 0;
|
||||
@ -179,6 +180,11 @@ public:
|
||||
inline virtual int getInvalidRegNum() const=0;
|
||||
|
||||
|
||||
virtual void insertCallerSavingCode(const MachineInstr *MInst,
|
||||
const BasicBlock *BB,
|
||||
PhyRegAlloc &PRA ) const = 0;
|
||||
|
||||
|
||||
//virtual void printReg(const LiveRange *const LR) const =0;
|
||||
|
||||
MachineRegInfo() { }
|
||||
|
Loading…
Reference in New Issue
Block a user