Path: blob/main/contrib/llvm-project/llvm/lib/Target/Lanai/LanaiMCInstLower.h
35271 views
//===-- LanaiMCInstLower.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_LANAI_LANAIMCINSTLOWER_H9#define LLVM_LIB_TARGET_LANAI_LANAIMCINSTLOWER_H1011#include "llvm/Support/Compiler.h"1213namespace llvm {14class AsmPrinter;15class MCContext;16class MCInst;17class MCOperand;18class MCSymbol;19class MachineInstr;20class MachineOperand;2122// LanaiMCInstLower - This class is used to lower an MachineInstr23// into an MCInst.24class LLVM_LIBRARY_VISIBILITY LanaiMCInstLower {25MCContext &Ctx;2627AsmPrinter &Printer;2829public:30LanaiMCInstLower(MCContext &CTX, AsmPrinter &AP) : Ctx(CTX), Printer(AP) {}31void Lower(const MachineInstr *MI, MCInst &OutMI) const;3233MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;3435MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;36MCSymbol *GetBlockAddressSymbol(const MachineOperand &MO) const;37MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;38MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;39MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;40};41} // namespace llvm4243#endif // LLVM_LIB_TARGET_LANAI_LANAIMCINSTLOWER_H444546