mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Move getInstrOperandRegClass from the scheduler to TargetInstrInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -418,18 +418,6 @@ void SchedulePostRATDList::FinishBlock() {
|
||||
ScheduleDAGInstrs::FinishBlock();
|
||||
}
|
||||
|
||||
/// getInstrOperandRegClass - Return register class of the operand of an
|
||||
/// instruction of the specified TargetInstrDesc.
|
||||
static const TargetRegisterClass*
|
||||
getInstrOperandRegClass(const TargetRegisterInfo *TRI,
|
||||
const TargetInstrDesc &II, unsigned Op) {
|
||||
if (Op >= II.getNumOperands())
|
||||
return NULL;
|
||||
if (II.OpInfo[Op].isLookupPtrRegClass())
|
||||
return TRI->getPointerRegClass();
|
||||
return TRI->getRegClass(II.OpInfo[Op].RegClass);
|
||||
}
|
||||
|
||||
/// CriticalPathStep - Return the next SUnit after SU on the bottom-up
|
||||
/// critical path.
|
||||
static SDep *CriticalPathStep(SUnit *SU) {
|
||||
|
Reference in New Issue
Block a user