383d30d5de560e8b71a0afcb400013bf28475a0e
[oota-llvm.git] / lib / Target / ARM / AsmPrinter / ARMMCInstLower.h
1 //===-- ARMMCInstLower.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 ARM_MCINSTLOWER_H
11 #define ARM_MCINSTLOWER_H
12
13 #include "llvm/Support/Compiler.h"
14
15 namespace llvm {
16   class AsmPrinter;
17   class MCAsmInfo;
18   class MCContext;
19   class MCInst;
20   class MCOperand;
21   class MCSymbol;
22   class MachineInstr;
23   class MachineModuleInfoMachO;
24   class MachineOperand;
25   class Mangler;
26   //class ARMSubtarget;
27   
28 /// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
29 class VISIBILITY_HIDDEN ARMMCInstLower {
30   MCContext &Ctx;
31   Mangler &Mang;
32   AsmPrinter &Printer;
33
34   //const ARMSubtarget &getSubtarget() const;
35 public:
36   ARMMCInstLower(MCContext &ctx, Mangler &mang, AsmPrinter &printer)
37     : Ctx(ctx), Mang(mang), Printer(printer) {}
38   
39   void Lower(const MachineInstr *MI, MCInst &OutMI) const;
40
41   //MCSymbol *GetPICBaseSymbol() const;
42   MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
43   MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
44   MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;
45   MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;
46   MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
47   
48 /*
49 private:
50   MachineModuleInfoMachO &getMachOMMI() const;
51  */
52 };
53
54 }
55
56 #endif