mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Fix naming inconsistency: calleesave -> calleesaved.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ebdf389e2f
commit
0098b3e2b6
@ -283,16 +283,16 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getCalleeSaveRegs - Return a null-terminated list of all of the
|
/// getCalleeSavedRegs - Return a null-terminated list of all of the
|
||||||
/// callee-save registers on this target. The register should be in the
|
/// callee saved registers on this target. The register should be in the
|
||||||
/// order of desired callee-save stack frame offset. The first register is
|
/// order of desired callee-save stack frame offset. The first register is
|
||||||
/// closed to the incoming stack pointer if stack grows down, and vice versa.
|
/// closed to the incoming stack pointer if stack grows down, and vice versa.
|
||||||
virtual const unsigned* getCalleeSaveRegs() const = 0;
|
virtual const unsigned* getCalleeSavedRegs() const = 0;
|
||||||
|
|
||||||
/// getCalleeSaveRegClasses - Return a null-terminated list of the preferred
|
/// getCalleeSavedRegClasses - Return a null-terminated list of the preferred
|
||||||
/// register classes to spill each callee-saved register with. The order and
|
/// register classes to spill each callee saved register with. The order and
|
||||||
/// length of this list match the getCalleeSaveRegs() list.
|
/// length of this list match the getCalleeSaveRegs() list.
|
||||||
virtual const TargetRegisterClass* const *getCalleeSaveRegClasses() const = 0;
|
virtual const TargetRegisterClass* const *getCalleeSavedRegClasses() const =0;
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Register Class Information
|
// Register Class Information
|
||||||
@ -320,22 +320,22 @@ public:
|
|||||||
// immediates and memory. FIXME: Move these to TargetInstrInfo.h.
|
// immediates and memory. FIXME: Move these to TargetInstrInfo.h.
|
||||||
//
|
//
|
||||||
|
|
||||||
/// spillCalleeSaveRegisters - Issues instruction(s) to spill all callee saved
|
/// spillCalleeSavedRegisters - Issues instruction(s) to spill all callee saved
|
||||||
/// registers and returns true if it isn't possible / profitable to do so by
|
/// registers and returns true if it isn't possible / profitable to do so by
|
||||||
/// issuing a series of store instructions via storeRegToStackSlot(). Returns
|
/// issuing a series of store instructions via storeRegToStackSlot(). Returns
|
||||||
/// false otherwise.
|
/// false otherwise.
|
||||||
virtual bool spillCalleeSaveRegisters(MachineBasicBlock &MBB,
|
virtual bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
|
||||||
MachineBasicBlock::iterator MI,
|
MachineBasicBlock::iterator MI,
|
||||||
const std::vector<CalleeSavedInfo> &CSI) const {
|
const std::vector<CalleeSavedInfo> &CSI) const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// restoreCalleeSaveRegisters - Issues instruction(s) to restore all callee
|
/// restoreCalleeSavedRegisters - Issues instruction(s) to restore all callee
|
||||||
/// saved registers and returns true if it isn't possible / profitable to do
|
/// saved registers and returns true if it isn't possible / profitable to do
|
||||||
/// so by issuing a series of load instructions via loadRegToStackSlot().
|
/// so by issuing a series of load instructions via loadRegToStackSlot().
|
||||||
/// Returns false otherwise.
|
/// Returns false otherwise.
|
||||||
virtual bool restoreCalleeSaveRegisters(MachineBasicBlock &MBB,
|
virtual bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB,
|
||||||
MachineBasicBlock::iterator MI,
|
MachineBasicBlock::iterator MI,
|
||||||
const std::vector<CalleeSavedInfo> &CSI) const {
|
const std::vector<CalleeSavedInfo> &CSI) const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -394,10 +394,10 @@ public:
|
|||||||
assert(0 && "Call Frame Pseudo Instructions do not exist on this target!");
|
assert(0 && "Call Frame Pseudo Instructions do not exist on this target!");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// processFunctionBeforeCalleeSaveScan - This method is called immediately
|
/// processFunctionBeforeCalleeSavedScan - This method is called immediately
|
||||||
/// before PrologEpilogInserter scans the physical registers used to determine
|
/// before PrologEpilogInserter scans the physical registers used to determine
|
||||||
/// what callee-save registers should be spilled. This method is optional.
|
/// what callee saved registers should be spilled. This method is optional.
|
||||||
virtual void processFunctionBeforeCalleeSaveScan(MachineFunction &MF) const {
|
virtual void processFunctionBeforeCalleeSavedScan(MachineFunction &MF) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// processFunctionBeforeFrameFinalized - This method is called immediately
|
/// processFunctionBeforeFrameFinalized - This method is called immediately
|
||||||
|
@ -61,8 +61,8 @@ public:
|
|||||||
///
|
///
|
||||||
int getOffsetOfLocalArea() const { return LocalAreaOffset; }
|
int getOffsetOfLocalArea() const { return LocalAreaOffset; }
|
||||||
|
|
||||||
/// getCalleeSaveSpillSlots - This method returns a pointer to an array of
|
/// getCalleeSavedSpillSlots - This method returns a pointer to an array of
|
||||||
/// pairs, that contains an entry for each callee save register that must be
|
/// pairs, that contains an entry for each callee saved register that must be
|
||||||
/// spilled to a particular stack location if it is spilled.
|
/// spilled to a particular stack location if it is spilled.
|
||||||
///
|
///
|
||||||
/// Each entry in this array contains a <register,offset> pair, indicating the
|
/// Each entry in this array contains a <register,offset> pair, indicating the
|
||||||
@ -71,7 +71,7 @@ public:
|
|||||||
/// allowed to spill it anywhere it chooses.
|
/// allowed to spill it anywhere it chooses.
|
||||||
///
|
///
|
||||||
virtual const std::pair<unsigned, int> *
|
virtual const std::pair<unsigned, int> *
|
||||||
getCalleeSaveSpillSlots(unsigned &NumEntries) const {
|
getCalleeSavedSpillSlots(unsigned &NumEntries) const {
|
||||||
NumEntries = 0;
|
NumEntries = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user