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"
23 class MCSymbolRefExpr;
25 class MachineModuleInfoMachO;
30 /// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
31 class LLVM_LIBRARY_VISIBILITY ARMMCInstLower {
36 ARMMCInstLower(MCContext &ctx, Mangler &mang, AsmPrinter &printer)
37 : Ctx(ctx), Mang(mang), Printer(printer) {}
39 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
42 MCSymbol *GetGlobalAddressSymbol(const GlobalValue *GV) const;
43 MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Sym) const;
46 } // end namespace llvm