Path: blob/main/contrib/llvm-project/llvm/lib/Target/BPF/BPFMCInstLower.h
35269 views
//===-- BPFMCInstLower.h - Lower MachineInstr to MCInst ---------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIB_TARGET_BPF_BPFMCINSTLOWER_H9#define LLVM_LIB_TARGET_BPF_BPFMCINSTLOWER_H1011#include "llvm/Support/Compiler.h"1213namespace llvm {14class AsmPrinter;15class MCContext;16class MCInst;17class MCOperand;18class MCSymbol;19class MachineInstr;20class MachineOperand;2122// BPFMCInstLower - This class is used to lower an MachineInstr into an MCInst.23class LLVM_LIBRARY_VISIBILITY BPFMCInstLower {24MCContext &Ctx;2526AsmPrinter &Printer;2728public:29BPFMCInstLower(MCContext &ctx, AsmPrinter &printer)30: Ctx(ctx), Printer(printer) {}31void Lower(const MachineInstr *MI, MCInst &OutMI) const;3233MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;3435MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;36MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;37};38}3940#endif414243