[llvm] r178393 - [mips] Implement getRepRegClassFor in MipsSETargetLowering. This function is
Akira Hatanaka
ahatanaka at mips.com
Fri Mar 29 18:12:06 PDT 2013
Author: ahatanak
Date: Fri Mar 29 20:12:05 2013
New Revision: 178393
URL: http://llvm.org/viewvc/llvm-project?rev=178393&view=rev
Log:
[mips] Implement getRepRegClassFor in MipsSETargetLowering. This function is
called in several places in ScheduleDAGRRList.cpp.
Modified:
llvm/trunk/lib/Target/Mips/MipsSEISelLowering.h
Modified: llvm/trunk/lib/Target/Mips/MipsSEISelLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsSEISelLowering.h?rev=178393&r1=178392&r2=178393&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsSEISelLowering.h (original)
+++ llvm/trunk/lib/Target/Mips/MipsSEISelLowering.h Fri Mar 29 20:12:05 2013
@@ -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,
More information about the llvm-commits
mailing list