1 //===- MipsLegalizerInfo.cpp ------------------------------------*- 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 implements the targeting of the Machinelegalizer class for Mips.
11 /// \todo This should be generated by TableGen.
12 //===----------------------------------------------------------------------===//
13 
14 #include "MipsLegalizerInfo.h"
15 
16 using namespace llvm;
17 
18 MipsLegalizerInfo::MipsLegalizerInfo(const MipsSubtarget &ST) {
19   using namespace TargetOpcode;
20 
21   const LLT s32 = LLT::scalar(32);
22 
23   getActionDefinitionsBuilder(G_ADD).legalFor({s32});
24 
25   computeTables();
26 }
27