1 //===-- MSP430MCInstLower.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 MSP430_MCINSTLOWER_H
11 #define MSP430_MCINSTLOWER_H
13 #include "llvm/Support/Compiler.h"
23 class MachineModuleInfoMachO;
27 /// MSP430MCInstLower - This class is used to lower an MachineInstr
29 class LLVM_LIBRARY_VISIBILITY MSP430MCInstLower {
35 MSP430MCInstLower(MCContext &ctx, Mangler &mang, AsmPrinter &printer)
36 : Ctx(ctx), Mang(mang), Printer(printer) {}
37 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
39 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
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 MCSymbol *GetBlockAddressSymbol(const MachineOperand &MO) const;