13#ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCTARGETDESC_H
14#define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCTARGETDESC_H
21class formatted_raw_ostream;
28class MCObjectStreamer;
29class MCObjectTargetWriter;
36class MCTargetStreamer;
43namespace DWARFFlavour {
72 const MCSubtargetInfo &STI);
88 int MemoryOperand,
uint64_t TSFlags);
96 const MCSubtargetInfo &STI);
98void emitPrefix(MCCodeEmitter &MCE,
const MCInst &
MI, SmallVectorImpl<char> &CB,
99 const MCSubtargetInfo &STI);
106 const MCSubtargetInfo &STI,
107 const MCRegisterInfo &
MRI,
108 const MCTargetOptions &
Options);
110 const MCSubtargetInfo &STI,
111 const MCRegisterInfo &
MRI,
112 const MCTargetOptions &
Options);
116 formatted_raw_ostream &
OS,
117 MCInstPrinter *InstPrinter);
121 const MCSubtargetInfo &STI);
128 std::unique_ptr<MCAsmBackend> &&AB,
129 std::unique_ptr<MCObjectWriter> &&OW,
130 std::unique_ptr<MCCodeEmitter> &&CE);
133 std::unique_ptr<MCAsmBackend> &&MAB,
134 std::unique_ptr<MCObjectWriter> &&MOW,
135 std::unique_ptr<MCCodeEmitter> &&MCE);
138std::unique_ptr<MCObjectTargetWriter>
142std::unique_ptr<MCObjectTargetWriter>
145std::unique_ptr<MCObjectTargetWriter>
161#define GET_REGINFO_ENUM
162#include "X86GenRegisterInfo.inc"
166#define GET_INSTRINFO_ENUM
167#define GET_INSTRINFO_MC_HELPER_DECLS
168#include "X86GenInstrInfo.inc"
170#define GET_SUBTARGETINFO_ENUM
171#include "X86GenSubtargetInfo.inc"
173#define GET_X86_MNEMONIC_TABLES_H
174#include "X86GenMnemonicTables.inc"
unsigned const MachineRegisterInfo * MRI
This file defines the SmallVector class.
@ C
The default llvm calling convention, compatible with C.
bool is32BitMemOperand(const MCInst &MI, unsigned Op)
bool is16BitMemOperand(const MCInst &MI, unsigned Op, const MCSubtargetInfo &STI)
bool hasLockPrefix(const MCInst &MI)
Returns true if this instruction has a LOCK prefix.
void initLLVMToSEHAndCVRegMapping(MCRegisterInfo *MRI)
bool needsAddressSizeOverride(const MCInst &MI, const MCSubtargetInfo &STI, int MemoryOperand, uint64_t TSFlags)
Returns true if this instruction needs an Address-Size override prefix.
void emitPrefix(MCCodeEmitter &MCE, const MCInst &MI, SmallVectorImpl< char > &CB, const MCSubtargetInfo &STI)
std::string ParseX86Triple(const Triple &TT)
void emitInstruction(MCObjectStreamer &, const MCInst &Inst, const MCSubtargetInfo &STI)
MCSubtargetInfo * createX86MCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
Create a X86 MCSubtargetInfo instance.
bool is64BitMemOperand(const MCInst &MI, unsigned Op)
unsigned getDwarfRegFlavour(const Triple &TT, bool isEH)
This is an optimization pass for GlobalISel generic memory operations.
MCTargetStreamer * createX86ObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
Implements X86-only directives for object files.
MCRegister getX86SubSuperRegister(MCRegister Reg, unsigned Size, bool High=false)
MCAsmBackend * createX86_64AsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
std::unique_ptr< MCObjectTargetWriter > createX86WinCOFFObjectWriter(bool Is64Bit)
Construct an X86 Win COFF object writer.
MCTargetStreamer * createX86AsmTargetStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrinter)
Implements X86-only directives for assembly emission.
MCCodeEmitter * createX86MCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
MCStreamer * createX86ELFStreamer(const Triple &T, MCContext &Context, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&MOW, std::unique_ptr< MCCodeEmitter > &&MCE)
MCStreamer * createX86WinCOFFStreamer(MCContext &C, std::unique_ptr< MCAsmBackend > &&AB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&CE)
Construct an X86 Windows COFF machine code streamer which will generate PE/COFF format object files.
std::unique_ptr< MCObjectTargetWriter > createX86MachObjectWriter(bool Is64Bit, uint32_t CPUType, uint32_t CPUSubtype)
Construct an X86 Mach-O object writer.
DWARFExpression::Operation Op
std::unique_ptr< MCObjectTargetWriter > createX86ELFObjectWriter(bool IsELF64, uint8_t OSABI, uint16_t EMachine)
Construct an X86 ELF object writer.
MCAsmBackend * createX86_32AsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)