1 //===-- MipsSEISelLowering.h - MipsSE DAG Lowering Interface ----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Subclass of MipsTargetLowering specialized for mips32/64.
12 //===----------------------------------------------------------------------===//
14 #ifndef MipsSEISELLOWERING_H
15 #define MipsSEISELLOWERING_H
17 #include "MipsISelLowering.h"
18 #include "MipsRegisterInfo.h"
21 class MipsSETargetLowering : public MipsTargetLowering {
23 explicit MipsSETargetLowering(MipsTargetMachine &TM);
25 virtual bool allowsUnalignedMemoryAccesses(EVT VT, bool *Fast) const;
27 virtual MachineBasicBlock *
28 EmitInstrWithCustomInserter(MachineInstr *MI, MachineBasicBlock *MBB) const;
30 virtual const TargetRegisterClass *getRepRegClassFor(MVT VT) const {
31 if (VT == MVT::Untyped)
32 return Subtarget->hasDSP() ? &Mips::ACRegsDSPRegClass :
33 &Mips::ACRegsRegClass;
35 return TargetLowering::getRepRegClassFor(VT);
40 isEligibleForTailCallOptimization(const MipsCC &MipsCCInfo,
41 unsigned NextStackOffset,
42 const MipsFunctionInfo& FI) const;
45 getOpndList(SmallVectorImpl<SDValue> &Ops,
46 std::deque< std::pair<unsigned, SDValue> > &RegsToPass,
47 bool IsPICCall, bool GlobalOrExternal, bool InternalLinkage,
48 CallLoweringInfo &CLI, SDValue Callee, SDValue Chain) const;
50 MachineBasicBlock *emitBPOSGE32(MachineInstr *MI,
51 MachineBasicBlock *BB) const;
55 #endif // MipsSEISELLOWERING_H