1 //===-- AVRMCInstLower.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_AVR_MCINST_LOWER_H
11 #define LLVM_AVR_MCINST_LOWER_H
13 #include "llvm/Support/Compiler.h"
25 /// Lowers `MachineInstr` objects into `MCInst` objects.
26 class AVRMCInstLower {
28 AVRMCInstLower(MCContext &Ctx, AsmPrinter &Printer)
29 : Ctx(Ctx), Printer(Printer) {}
31 /// Lowers a `MachineInstr` into a `MCInst`.
32 void lowerInstruction(const MachineInstr &MI, MCInst &OutMI) const;
33 MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
40 } // end namespace llvm
42 #endif // LLVM_AVR_MCINST_LOWER_H