diff options
Diffstat (limited to 'lib/Target/Mips/Mips16ISelLowering.h')
-rw-r--r-- | lib/Target/Mips/Mips16ISelLowering.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lib/Target/Mips/Mips16ISelLowering.h b/lib/Target/Mips/Mips16ISelLowering.h index 2a5eec5..d3b9f75 100644 --- a/lib/Target/Mips/Mips16ISelLowering.h +++ b/lib/Target/Mips/Mips16ISelLowering.h @@ -11,27 +11,29 @@ // //===----------------------------------------------------------------------===// -#ifndef MIPS16ISELLOWERING_H -#define MIPS16ISELLOWERING_H +#ifndef LLVM_LIB_TARGET_MIPS_MIPS16ISELLOWERING_H +#define LLVM_LIB_TARGET_MIPS_MIPS16ISELLOWERING_H #include "MipsISelLowering.h" namespace llvm { class Mips16TargetLowering : public MipsTargetLowering { public: - explicit Mips16TargetLowering(MipsTargetMachine &TM); + explicit Mips16TargetLowering(const MipsTargetMachine &TM, + const MipsSubtarget &STI); - bool allowsUnalignedMemoryAccesses(EVT VT, unsigned AddrSpace, - bool *Fast) const override; + bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AddrSpace, + unsigned Align, + bool *Fast) const override; MachineBasicBlock * EmitInstrWithCustomInserter(MachineInstr *MI, MachineBasicBlock *MBB) const override; private: - bool isEligibleForTailCallOptimization(const MipsCC &MipsCCInfo, - unsigned NextStackOffset, - const MipsFunctionInfo& FI) const override; + bool isEligibleForTailCallOptimization( + const CCState &CCInfo, unsigned NextStackOffset, + const MipsFunctionInfo &FI) const override; void setMips16HardFloatLibCalls(); @@ -45,7 +47,7 @@ namespace llvm { getOpndList(SmallVectorImpl<SDValue> &Ops, std::deque< std::pair<unsigned, SDValue> > &RegsToPass, bool IsPICCall, bool GlobalOrExternal, bool InternalLinkage, - CallLoweringInfo &CLI, SDValue Callee, + bool IsCallReloc, CallLoweringInfo &CLI, SDValue Callee, SDValue Chain) const override; MachineBasicBlock *emitSel16(unsigned Opc, MachineInstr *MI, @@ -77,4 +79,4 @@ namespace llvm { }; } -#endif // Mips16ISELLOWERING_H +#endif |