1 //===-- MipsMCInstLower.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 MIPSMCINSTLOWER_H
11 #define MIPSMCINSTLOWER_H
12 #include "llvm/CodeGen/MachineOperand.h"
13 #include "llvm/Support/Compiler.h"
22 class MachineFunction;
26 /// MipsMCInstLower - This class is used to lower an MachineInstr into an
28 class LLVM_LIBRARY_VISIBILITY MipsMCInstLower {
29 typedef MachineOperand::MachineOperandType MachineOperandType;
32 MipsAsmPrinter &AsmPrinter;
34 MipsMCInstLower(Mangler *mang, const MachineFunction &MF,
35 MipsAsmPrinter &asmprinter);
36 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
38 MCOperand LowerSymbolOperand(const MachineOperand &MO,
39 MachineOperandType MOTy) const;