1 //===-- BPFMCInstLower.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_BPF_BPFMCINSTLOWER_H
11 #define LLVM_LIB_TARGET_BPF_BPFMCINSTLOWER_H
13 #include "llvm/Support/Compiler.h"
22 class MachineModuleInfoMachO;
26 // BPFMCInstLower - This class is used to lower an MachineInstr into an MCInst.
27 class LLVM_LIBRARY_VISIBILITY BPFMCInstLower {
33 BPFMCInstLower(MCContext &ctx, AsmPrinter &printer)
34 : Ctx(ctx), Printer(printer) {}
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;