[MIPS GlobalISel] Select MSA vector generic and builtin add
[llvm-complete.git] / lib / Target / AVR / AVRMCInstLower.h
blob5e0f42ac16a751f1cd12eab054bd62d251da4b41
1 //===-- AVRMCInstLower.h - Lower MachineInstr to MCInst ---------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_AVR_MCINST_LOWER_H
10 #define LLVM_AVR_MCINST_LOWER_H
12 #include "llvm/Support/Compiler.h"
14 namespace llvm {
16 class AsmPrinter;
17 class MachineInstr;
18 class MachineOperand;
19 class MCContext;
20 class MCInst;
21 class MCOperand;
22 class MCSymbol;
24 /// Lowers `MachineInstr` objects into `MCInst` objects.
25 class AVRMCInstLower {
26 public:
27 AVRMCInstLower(MCContext &Ctx, AsmPrinter &Printer)
28 : Ctx(Ctx), Printer(Printer) {}
30 /// Lowers a `MachineInstr` into a `MCInst`.
31 void lowerInstruction(const MachineInstr &MI, MCInst &OutMI) const;
32 MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
34 private:
35 MCContext &Ctx;
36 AsmPrinter &Printer;
39 } // end namespace llvm
41 #endif // LLVM_AVR_MCINST_LOWER_H