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"
20 class MipsSETargetLowering : public MipsTargetLowering {
22 explicit MipsSETargetLowering(MipsTargetMachine &TM);
24 virtual bool allowsUnalignedMemoryAccesses(EVT VT, bool *Fast) const;
26 virtual MachineBasicBlock *
27 EmitInstrWithCustomInserter(MachineInstr *MI, MachineBasicBlock *MBB) const;
31 isEligibleForTailCallOptimization(const MipsCC &MipsCCInfo,
32 unsigned NextStackOffset,
33 const MipsFunctionInfo& FI) const;
36 getOpndList(SmallVectorImpl<SDValue> &Ops,
37 std::deque< std::pair<unsigned, SDValue> > &RegsToPass,
38 bool IsPICCall, bool GlobalOrExternal, bool InternalLinkage,
39 CallLoweringInfo &CLI, SDValue Callee, SDValue Chain) const;
41 MachineBasicBlock *emitBPOSGE32(MachineInstr *MI,
42 MachineBasicBlock *BB) const;
46 #endif // MipsSEISELLOWERING_H