1 //===-- MBlazeMCInstLower.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 MBLAZE_MCINSTLOWER_H
11 #define MBLAZE_MCINSTLOWER_H
13 #include "llvm/Support/Compiler.h"
22 class MachineModuleInfoMachO;
25 /// MBlazeMCInstLower - This class is used to lower an MachineInstr
27 class LLVM_LIBRARY_VISIBILITY MBlazeMCInstLower {
32 MBlazeMCInstLower(MCContext &ctx, AsmPrinter &printer)
33 : Ctx(ctx), Printer(printer) {}
34 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
36 MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
38 MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
39 MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
40 MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;
41 MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;
42 MCSymbol *GetBlockAddressSymbol(const MachineOperand &MO) const;