blob: c6b0c3e7955c98c016e8153d5b4ee0a3e3ecba95 [file] [log] [blame]
Anton Korobeynikov1c7ceed2009-10-21 00:11:08 +00001//===-- MSP430MCInstLower.h - Lower MachineInstr to MCInst ----------------===//
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#ifndef MSP430_MCINSTLOWER_H
11#define MSP430_MCINSTLOWER_H
12
13#include "llvm/Support/Compiler.h"
14
15namespace llvm {
16 class MCAsmInfo;
17 class MCContext;
18 class MCInst;
19 class MCOperand;
20 class MCSymbol;
21 class MachineInstr;
22 class MachineModuleInfoMachO;
23 class MachineOperand;
24 class Mangler;
25
26 /// MSP430MCInstLower - This class is used to lower an MachineInstr
27 /// into an MCInst.
28class VISIBILITY_HIDDEN MSP430MCInstLower {
29 MCContext &Ctx;
30 Mangler *Mang;
31
32 #if 0
33 const unsigned CurFunctionNumber;
34 const MCAsmInfo &MAI;
35 #endif
36
37public:
38 MSP430MCInstLower(MCContext &ctx, Mangler *mang) : Ctx(ctx), Mang(mang) {}
39
40 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
41};
42
43}
44
45#endif