1 //===- MipsLegalizerInfo ----------------------------------------*- 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 /// This file declares the targeting of the Machinelegalizer class for Mips.
11 /// \todo This should be generated by TableGen.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_MIPS_MIPSMACHINELEGALIZER_H
15 #define LLVM_LIB_TARGET_MIPS_MIPSMACHINELEGALIZER_H
17 #include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
23 /// This class provides legalization strategies.
24 class MipsLegalizerInfo
: public LegalizerInfo
{
26 MipsLegalizerInfo(const MipsSubtarget
&ST
);
28 bool legalizeCustom(MachineInstr
&MI
, MachineRegisterInfo
&MRI
,
29 MachineIRBuilder
&MIRBuilder
) const override
;
31 } // end namespace llvm