Fix uninitialized variable
[llvm-core.git] / lib / Target / Mips / MipsLegalizerInfo.h
blob96d95746ac879841a3161fd84c704812075df3de
1 //===- MipsLegalizerInfo ----------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 /// \file
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"
19 namespace llvm {
21 class MipsSubtarget;
23 /// This class provides legalization strategies.
24 class MipsLegalizerInfo : public LegalizerInfo {
25 public:
26 MipsLegalizerInfo(const MipsSubtarget &ST);
28 bool legalizeCustom(MachineInstr &MI, MachineRegisterInfo &MRI,
29 MachineIRBuilder &MIRBuilder) const override;
31 } // end namespace llvm
32 #endif