Chris Lattner | 9cf0eb5 | 2009-10-19 20:21:05 +0000 | [diff] [blame^] | 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 MCContext; |
| 17 | class MCInst; |
| 18 | class MCOperand; |
| 19 | class MCSymbol; |
| 20 | class MachineInstr; |
| 21 | class MachineModuleInfoMachO; |
| 22 | class MachineOperand; |
| 23 | class Mangler; |
| 24 | //class ARMSubtarget; |
| 25 | |
| 26 | /// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst. |
| 27 | class VISIBILITY_HIDDEN ARMMCInstLower { |
| 28 | MCContext &Ctx; |
| 29 | Mangler *Mang; |
| 30 | |
| 31 | //const ARMSubtarget &getSubtarget() const; |
| 32 | public: |
| 33 | ARMMCInstLower(MCContext &ctx, Mangler *mang) |
| 34 | : Ctx(ctx), Mang(mang) {} |
| 35 | |
| 36 | void Lower(const MachineInstr *MI, MCInst &OutMI) const; |
| 37 | |
| 38 | /* |
| 39 | MCSymbol *GetPICBaseSymbol() const; |
| 40 | |
| 41 | MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const; |
| 42 | MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const; |
| 43 | MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const; |
| 44 | MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const; |
| 45 | MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const; |
| 46 | |
| 47 | private: |
| 48 | MachineModuleInfoMachO &getMachOMMI() const; |
| 49 | */ |
| 50 | }; |
| 51 | |
| 52 | } |
| 53 | |
| 54 | #endif |