mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Move getPointerRegClass from TargetInstrInfo to TargetRegisterInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63938 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -433,14 +433,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
/// getPointerRegClass - Returns a TargetRegisterClass used for pointer
|
||||
/// values.
|
||||
virtual const TargetRegisterClass *getPointerRegClass() const {
|
||||
assert(0 && "Target didn't implement getPointerRegClass!");
|
||||
abort();
|
||||
return 0; // Must return a value in order to compile with VS 2005
|
||||
}
|
||||
|
||||
/// GetInstSize - Returns the size of the specified Instruction.
|
||||
///
|
||||
virtual unsigned GetInstSizeInBytes(const MachineInstr *MI) const {
|
||||
|
@ -422,11 +422,13 @@ public:
|
||||
return i ? RegClassBegin[i - 1] : NULL;
|
||||
}
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Interfaces used by the register allocator and stack frame
|
||||
// manipulation passes to move data around between registers,
|
||||
// immediates and memory. FIXME: Move these to TargetInstrInfo.h.
|
||||
//
|
||||
/// getPointerRegClass - Returns a TargetRegisterClass used for pointer
|
||||
/// values.
|
||||
virtual const TargetRegisterClass *getPointerRegClass() const {
|
||||
assert(0 && "Target didn't implement getPointerRegClass!");
|
||||
abort();
|
||||
return 0; // Must return a value in order to compile with VS 2005
|
||||
}
|
||||
|
||||
/// getCrossCopyRegClass - Returns a legal register class to copy a register
|
||||
/// in the specified class to or from. Returns NULL if it is possible to copy
|
||||
@ -479,7 +481,6 @@ public:
|
||||
int getCallFrameSetupOpcode() const { return CallFrameSetupOpcode; }
|
||||
int getCallFrameDestroyOpcode() const { return CallFrameDestroyOpcode; }
|
||||
|
||||
|
||||
/// eliminateCallFramePseudoInstr - This method is called during prolog/epilog
|
||||
/// code insertion to eliminate call frame setup and destroy pseudo
|
||||
/// instructions (but only if the Target is using them). It is responsible
|
||||
|
Reference in New Issue
Block a user