MSP430InstrInfo.cpp revision f2c3e179ecc2a6ebc259382828a5e5dc5a61d2f8
1//===- MSP430InstrInfo.cpp - MSP430 Instruction Information ---------------===// 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// 10// This file contains the MSP430 implementation of the TargetInstrInfo class. 11// 12//===----------------------------------------------------------------------===// 13 14#include "MSP430.h" 15#include "MSP430InstrInfo.h" 16#include "MSP430TargetMachine.h" 17#include "MSP430GenInstrInfo.inc" 18#include "llvm/Function.h" 19#include "llvm/CodeGen/MachineFunction.h" 20#include "llvm/CodeGen/MachineInstrBuilder.h" 21#include "llvm/CodeGen/MachineRegisterInfo.h" 22 23 24using namespace llvm; 25 26MSP430InstrInfo::MSP430InstrInfo(MSP430TargetMachine &tm) 27 : TargetInstrInfoImpl(MSP430Insts, array_lengthof(MSP430Insts)), 28 RI(*this), TM(tm) {} 29