mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
added suggesting color suppor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
91442282d8
commit
06faeee041
@ -20,6 +20,9 @@ class Instruction;
|
|||||||
class LiveRange;
|
class LiveRange;
|
||||||
class AddedInstrns;
|
class AddedInstrns;
|
||||||
class MachineInstr;
|
class MachineInstr;
|
||||||
|
class RegClass;
|
||||||
|
class CallInst;
|
||||||
|
class ReturnInst;
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@ -114,16 +117,30 @@ public:
|
|||||||
//virtual unsigned getRCIDOfMachineOp (const MachineOperand &MO) const = 0;
|
//virtual unsigned getRCIDOfMachineOp (const MachineOperand &MO) const = 0;
|
||||||
|
|
||||||
|
|
||||||
virtual void colorArgs(const Method *const Meth,
|
virtual void suggestRegs4MethodArgs(const Method *const Meth,
|
||||||
LiveRangeInfo & LRI) const = 0;
|
LiveRangeInfo & LRI) const = 0;
|
||||||
|
|
||||||
virtual void colorCallArgs(vector<const Instruction *> & CallInstrList,
|
virtual void suggestRegs4CallArgs(const CallInst *const CallI,
|
||||||
LiveRangeInfo& LRI,
|
LiveRangeInfo& LRI, vector<RegClass *> RCL) const = 0;
|
||||||
AddedInstrMapType& AddedInstrMap ) const = 0 ;
|
|
||||||
|
|
||||||
virtual void colorRetArg(vector<const Instruction *> &
|
virtual void suggestReg4RetValue(const ReturnInst *const RetI,
|
||||||
RetInstrList, LiveRangeInfo& LRI,
|
LiveRangeInfo& LRI) const = 0;
|
||||||
AddedInstrMapType &AddedInstrMap) const =0;
|
|
||||||
|
|
||||||
|
|
||||||
|
virtual void colorMethodArgs(const Method *const Meth, LiveRangeInfo& LRI,
|
||||||
|
AddedInstrns *const FirstAI) const = 0;
|
||||||
|
|
||||||
|
virtual void colorCallArgs(const CallInst *const CalI, LiveRangeInfo& LRI,
|
||||||
|
AddedInstrns *const CallAI) const = 0;
|
||||||
|
|
||||||
|
virtual void colorRetValue(const ReturnInst *const RetI, LiveRangeInfo& LRI,
|
||||||
|
AddedInstrns *const RetAI) const = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
virtual bool handleSpecialMInstr(const MachineInstr * MInst,
|
||||||
|
LiveRangeInfo& LRI, vector<RegClass *> RCL) const = 0;
|
||||||
|
|
||||||
// returns the reg used for pushing the address when a method is called.
|
// returns the reg used for pushing the address when a method is called.
|
||||||
// This can be used for other purposes between calls
|
// This can be used for other purposes between calls
|
||||||
|
Loading…
x
Reference in New Issue
Block a user