mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
[mips] Implement getRepRegClassFor in MipsSETargetLowering. This function is
called in several places in ScheduleDAGRRList.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f4d3800a7
commit
cbcdcfbda5
@ -15,6 +15,7 @@
|
||||
#define MipsSEISELLOWERING_H
|
||||
|
||||
#include "MipsISelLowering.h"
|
||||
#include "MipsRegisterInfo.h"
|
||||
|
||||
namespace llvm {
|
||||
class MipsSETargetLowering : public MipsTargetLowering {
|
||||
@ -26,6 +27,14 @@ namespace llvm {
|
||||
virtual MachineBasicBlock *
|
||||
EmitInstrWithCustomInserter(MachineInstr *MI, MachineBasicBlock *MBB) const;
|
||||
|
||||
virtual const TargetRegisterClass *getRepRegClassFor(MVT VT) const {
|
||||
if (VT == MVT::Untyped)
|
||||
return Subtarget->hasDSP() ? &Mips::ACRegsDSPRegClass :
|
||||
&Mips::ACRegsRegClass;
|
||||
|
||||
return TargetLowering::getRepRegClassFor(VT);
|
||||
}
|
||||
|
||||
private:
|
||||
virtual bool
|
||||
isEligibleForTailCallOptimization(const MipsCC &MipsCCInfo,
|
||||
|
Loading…
x
Reference in New Issue
Block a user