Path: blob/main/contrib/llvm-project/llvm/lib/Target/MSP430/MSP430MCInstLower.h
35269 views
//===-- MSP430MCInstLower.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_MSP430_MSP430MCINSTLOWER_H9#define LLVM_LIB_TARGET_MSP430_MSP430MCINSTLOWER_H1011#include "llvm/Support/Compiler.h"1213namespace llvm {14class AsmPrinter;15class MCContext;16class MCInst;17class MCOperand;18class MCSymbol;19class MachineInstr;20class MachineOperand;2122/// MSP430MCInstLower - This class is used to lower an MachineInstr23/// into an MCInst.24class LLVM_LIBRARY_VISIBILITY MSP430MCInstLower {25MCContext &Ctx;2627AsmPrinter &Printer;28public:29MSP430MCInstLower(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;37MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;38MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;39MCSymbol *GetBlockAddressSymbol(const MachineOperand &MO) const;40};4142}4344#endif454647