1 //===-- ARMMCInstLower.h - Lower MachineInstr to MCInst -------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef ARM_MCINSTLOWER_H
11 #define ARM_MCINSTLOWER_H
13 #include "llvm/Support/Compiler.h"
22 class MachineModuleInfoMachO;
27 /// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
28 class VISIBILITY_HIDDEN ARMMCInstLower {
32 const unsigned CurFunctionNumber;
35 //const ARMSubtarget &getSubtarget() const;
37 ARMMCInstLower(MCContext &ctx, Mangler &mang, unsigned FuncNum,
39 : Ctx(ctx), Mang(mang), CurFunctionNumber(FuncNum), MAI(mai) {}
41 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
43 //MCSymbol *GetPICBaseSymbol() const;
44 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
45 //MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
46 MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;
47 MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;
48 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
52 MachineModuleInfoMachO &getMachOMMI() const;