1 //===-- AArch64MCInstLower.h - Lower MachineInstr to MCInst ---------------===//
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_AARCH64_AARCH64MCINSTLOWER_H
11 #define LLVM_LIB_TARGET_AARCH64_AARCH64MCINSTLOWER_H
13 #include "llvm/ADT/Triple.h"
14 #include "llvm/Support/Compiler.h"
24 class MachineModuleInfoMachO
;
28 /// AArch64MCInstLower - This class is used to lower an MachineInstr
30 class LLVM_LIBRARY_VISIBILITY AArch64MCInstLower
{
36 AArch64MCInstLower(MCContext
&ctx
, AsmPrinter
&printer
);
38 bool lowerOperand(const MachineOperand
&MO
, MCOperand
&MCOp
) const;
39 void Lower(const MachineInstr
*MI
, MCInst
&OutMI
) const;
41 MCOperand
lowerSymbolOperandDarwin(const MachineOperand
&MO
,
43 MCOperand
lowerSymbolOperandELF(const MachineOperand
&MO
,
45 MCOperand
LowerSymbolOperand(const MachineOperand
&MO
, MCSymbol
*Sym
) const;
47 MCSymbol
*GetGlobalAddressSymbol(const MachineOperand
&MO
) const;
48 MCSymbol
*GetExternalSymbolSymbol(const MachineOperand
&MO
) const;