1 //===-- LanaiMCInstLower.h - Lower MachineInstr to MCInst -------*- C++ -*-===//
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 LLVM_LIB_TARGET_LANAI_LANAIMCINSTLOWER_H
11 #define LLVM_LIB_TARGET_LANAI_LANAIMCINSTLOWER_H
13 #include "llvm/Support/Compiler.h"
22 class MachineModuleInfoMachO;
26 // LanaiMCInstLower - This class is used to lower an MachineInstr
28 class LLVM_LIBRARY_VISIBILITY LanaiMCInstLower {
34 LanaiMCInstLower(MCContext &CTX, AsmPrinter &AP) : Ctx(CTX), Printer(AP) {}
35 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
37 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
39 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
40 MCSymbol *GetBlockAddressSymbol(const MachineOperand &MO) const;
41 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
42 MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;
43 MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;
47 #endif // LLVM_LIB_TARGET_LANAI_LANAIMCINSTLOWER_H