Path: blob/main/contrib/llvm-project/llvm/lib/Target/AArch64/AArch64MCInstLower.h
35269 views
//===-- AArch64MCInstLower.h - Lower MachineInstr to MCInst ---------------===//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_AARCH64_AARCH64MCINSTLOWER_H9#define LLVM_LIB_TARGET_AARCH64_AARCH64MCINSTLOWER_H1011#include "llvm/IR/GlobalValue.h"12#include "llvm/Support/Compiler.h"13#include "llvm/TargetParser/Triple.h"1415namespace llvm {16class AsmPrinter;17class MCContext;18class MCInst;19class MCOperand;20class MCSymbol;21class MachineInstr;22class MachineOperand;2324/// AArch64MCInstLower - This class is used to lower an MachineInstr25/// into an MCInst.26class LLVM_LIBRARY_VISIBILITY AArch64MCInstLower {27MCContext &Ctx;28AsmPrinter &Printer;29Triple TargetTriple;3031public:32AArch64MCInstLower(MCContext &ctx, AsmPrinter &printer);3334bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const;35void Lower(const MachineInstr *MI, MCInst &OutMI) const;3637MCOperand lowerSymbolOperandMachO(const MachineOperand &MO,38MCSymbol *Sym) const;39MCOperand lowerSymbolOperandELF(const MachineOperand &MO,40MCSymbol *Sym) const;41MCOperand lowerSymbolOperandCOFF(const MachineOperand &MO,42MCSymbol *Sym) const;43MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;4445MCSymbol *GetGlobalValueSymbol(const GlobalValue *GV,46unsigned TargetFlags) const;47MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;48MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;49};50}5152#endif535455