38 #define GET_REGINFO_MC_DESC 39 #include "X86GenRegisterInfo.inc" 41 #define GET_INSTRINFO_MC_DESC 42 #define GET_GENINSTRINFO_MC_HELPERS 43 #include "X86GenInstrInfo.inc" 45 #define GET_SUBTARGETINFO_MC_DESC 46 #include "X86GenSubtargetInfo.inc" 51 FS =
"+64bit-mode,-32bit-mode,-16bit-mode";
53 FS =
"-64bit-mode,+32bit-mode,-16bit-mode";
55 FS =
"-64bit-mode,-32bit-mode,+16bit-mode";
74 for (
unsigned Reg = X86::NoRegister + 1;
Reg < X86::NUM_TARGET_REGS; ++
Reg) {
84 { codeview::RegisterId::CVRegAL,
X86::AL},
85 { codeview::RegisterId::CVRegCL, X86::CL},
86 { codeview::RegisterId::CVRegDL, X86::DL},
87 { codeview::RegisterId::CVRegBL,
X86::BL},
88 { codeview::RegisterId::CVRegAH, X86::AH},
89 { codeview::RegisterId::CVRegCH, X86::CH},
90 { codeview::RegisterId::CVRegDH, X86::DH},
91 { codeview::RegisterId::CVRegBH, X86::BH},
92 { codeview::RegisterId::CVRegAX, X86::AX},
93 { codeview::RegisterId::CVRegCX, X86::CX},
94 { codeview::RegisterId::CVRegDX, X86::DX},
95 { codeview::RegisterId::CVRegBX, X86::BX},
96 { codeview::RegisterId::CVRegSP, X86::SP},
97 { codeview::RegisterId::CVRegBP, X86::BP},
98 { codeview::RegisterId::CVRegSI,
X86::SI},
99 { codeview::RegisterId::CVRegDI, X86::DI},
100 { codeview::RegisterId::CVRegEAX,
X86::EAX},
101 { codeview::RegisterId::CVRegECX,
X86::ECX},
102 { codeview::RegisterId::CVRegEDX,
X86::EDX},
103 { codeview::RegisterId::CVRegEBX,
X86::EBX},
104 { codeview::RegisterId::CVRegESP,
X86::ESP},
105 { codeview::RegisterId::CVRegEBP, X86::EBP},
106 { codeview::RegisterId::CVRegESI,
X86::ESI},
107 { codeview::RegisterId::CVRegEDI,
X86::EDI},
109 { codeview::RegisterId::CVRegEFLAGS, X86::EFLAGS},
111 { codeview::RegisterId::CVRegST0, X86::FP0},
112 { codeview::RegisterId::CVRegST1, X86::FP1},
113 { codeview::RegisterId::CVRegST2, X86::FP2},
114 { codeview::RegisterId::CVRegST3, X86::FP3},
115 { codeview::RegisterId::CVRegST4, X86::FP4},
116 { codeview::RegisterId::CVRegST5, X86::FP5},
117 { codeview::RegisterId::CVRegST6, X86::FP6},
118 { codeview::RegisterId::CVRegST7, X86::FP7},
120 { codeview::RegisterId::CVRegXMM0, X86::XMM0},
121 { codeview::RegisterId::CVRegXMM1, X86::XMM1},
122 { codeview::RegisterId::CVRegXMM2, X86::XMM2},
123 { codeview::RegisterId::CVRegXMM3, X86::XMM3},
124 { codeview::RegisterId::CVRegXMM4, X86::XMM4},
125 { codeview::RegisterId::CVRegXMM5, X86::XMM5},
126 { codeview::RegisterId::CVRegXMM6, X86::XMM6},
127 { codeview::RegisterId::CVRegXMM7, X86::XMM7},
129 { codeview::RegisterId::CVRegXMM8, X86::XMM8},
130 { codeview::RegisterId::CVRegXMM9, X86::XMM9},
131 { codeview::RegisterId::CVRegXMM10, X86::XMM10},
132 { codeview::RegisterId::CVRegXMM11, X86::XMM11},
133 { codeview::RegisterId::CVRegXMM12, X86::XMM12},
134 { codeview::RegisterId::CVRegXMM13, X86::XMM13},
135 { codeview::RegisterId::CVRegXMM14, X86::XMM14},
136 { codeview::RegisterId::CVRegXMM15, X86::XMM15},
138 { codeview::RegisterId::CVRegSIL, X86::SIL},
139 { codeview::RegisterId::CVRegDIL, X86::DIL},
140 { codeview::RegisterId::CVRegBPL, X86::BPL},
141 { codeview::RegisterId::CVRegSPL, X86::SPL},
142 { codeview::RegisterId::CVRegRAX, X86::RAX},
143 { codeview::RegisterId::CVRegRBX, X86::RBX},
144 { codeview::RegisterId::CVRegRCX, X86::RCX},
145 { codeview::RegisterId::CVRegRDX, X86::RDX},
146 { codeview::RegisterId::CVRegRSI, X86::RSI},
147 { codeview::RegisterId::CVRegRDI, X86::RDI},
148 { codeview::RegisterId::CVRegRBP, X86::RBP},
149 { codeview::RegisterId::CVRegRSP, X86::RSP},
150 { codeview::RegisterId::CVRegR8, X86::R8},
151 { codeview::RegisterId::CVRegR9, X86::R9},
152 { codeview::RegisterId::CVRegR10, X86::R10},
153 { codeview::RegisterId::CVRegR11, X86::R11},
154 { codeview::RegisterId::CVRegR12, X86::R12},
155 { codeview::RegisterId::CVRegR13, X86::R13},
156 { codeview::RegisterId::CVRegR14, X86::R14},
157 { codeview::RegisterId::CVRegR15, X86::R15},
158 { codeview::RegisterId::CVRegR8B, X86::R8B},
159 { codeview::RegisterId::CVRegR9B, X86::R9B},
160 { codeview::RegisterId::CVRegR10B, X86::R10B},
161 { codeview::RegisterId::CVRegR11B, X86::R11B},
162 { codeview::RegisterId::CVRegR12B, X86::R12B},
163 { codeview::RegisterId::CVRegR13B, X86::R13B},
164 { codeview::RegisterId::CVRegR14B, X86::R14B},
165 { codeview::RegisterId::CVRegR15B, X86::R15B},
166 { codeview::RegisterId::CVRegR8W, X86::R8W},
167 { codeview::RegisterId::CVRegR9W, X86::R9W},
168 { codeview::RegisterId::CVRegR10W, X86::R10W},
169 { codeview::RegisterId::CVRegR11W, X86::R11W},
170 { codeview::RegisterId::CVRegR12W, X86::R12W},
171 { codeview::RegisterId::CVRegR13W, X86::R13W},
172 { codeview::RegisterId::CVRegR14W, X86::R14W},
173 { codeview::RegisterId::CVRegR15W, X86::R15W},
174 { codeview::RegisterId::CVRegR8D, X86::R8D},
175 { codeview::RegisterId::CVRegR9D, X86::R9D},
176 { codeview::RegisterId::CVRegR10D, X86::R10D},
177 { codeview::RegisterId::CVRegR11D, X86::R11D},
178 { codeview::RegisterId::CVRegR12D, X86::R12D},
179 { codeview::RegisterId::CVRegR13D, X86::R13D},
180 { codeview::RegisterId::CVRegR14D, X86::R14D},
181 { codeview::RegisterId::CVRegR15D, X86::R15D},
182 { codeview::RegisterId::CVRegAMD64_YMM0, X86::YMM0},
183 { codeview::RegisterId::CVRegAMD64_YMM1, X86::YMM1},
184 { codeview::RegisterId::CVRegAMD64_YMM2, X86::YMM2},
185 { codeview::RegisterId::CVRegAMD64_YMM3, X86::YMM3},
186 { codeview::RegisterId::CVRegAMD64_YMM4, X86::YMM4},
187 { codeview::RegisterId::CVRegAMD64_YMM5, X86::YMM5},
188 { codeview::RegisterId::CVRegAMD64_YMM6, X86::YMM6},
189 { codeview::RegisterId::CVRegAMD64_YMM7, X86::YMM7},
190 { codeview::RegisterId::CVRegAMD64_YMM8, X86::YMM8},
191 { codeview::RegisterId::CVRegAMD64_YMM9, X86::YMM9},
192 { codeview::RegisterId::CVRegAMD64_YMM10, X86::YMM10},
193 { codeview::RegisterId::CVRegAMD64_YMM11, X86::YMM11},
194 { codeview::RegisterId::CVRegAMD64_YMM12, X86::YMM12},
195 { codeview::RegisterId::CVRegAMD64_YMM13, X86::YMM13},
196 { codeview::RegisterId::CVRegAMD64_YMM14, X86::YMM14},
197 { codeview::RegisterId::CVRegAMD64_YMM15, X86::YMM15},
208 ArchFS = (
Twine(ArchFS) +
"," + FS).str();
213 std::string CPUName = CPU;
217 return createX86MCSubtargetInfoImpl(TT, CPUName, ArchFS);
222 InitX86MCInstrInfo(X);
239 const Triple &TheTriple) {
264 int stackGrowth = is64Bit ? -8 : -4;
267 unsigned StackPtr = is64Bit ? X86::RSP :
X86::ESP;
273 unsigned InstPtr = is64Bit ? X86::RIP : X86::EIP;
282 unsigned SyntaxVariant,
286 if (SyntaxVariant == 0)
288 if (SyntaxVariant == 1)
311 const MCInst &Inst)
const override;
317 const MCInst &Inst)
const {
318 if (STI.
getCPU() ==
"btver2") {
354 case X86::VPCMPEQBrr:
355 case X86::VPCMPEQWrr:
356 case X86::VPCMPEQDrr:
357 case X86::VPCMPEQQrr:
362 case X86::VPCMPGTBrr:
363 case X86::VPCMPGTWrr:
364 case X86::VPCMPGTDrr:
365 case X86::VPCMPGTQrr:
366 case X86::MMX_PXORirr:
367 case X86::MMX_PANDNirr:
368 case X86::MMX_PSUBBirr:
369 case X86::MMX_PSUBDirr:
370 case X86::MMX_PSUBQirr:
371 case X86::MMX_PSUBWirr:
372 case X86::MMX_PCMPGTBirr:
373 case X86::MMX_PCMPGTDirr:
374 case X86::MMX_PCMPGTWirr:
375 case X86::MMX_PCMPEQBirr:
376 case X86::MMX_PCMPEQDirr:
377 case X86::MMX_PCMPEQWirr:
395 "Unexpected number of bits in the mask!");
405 auto ClearsSuperReg = [=](
unsigned RegID) {
414 if (!HasEVEX && !HasVEX && !HasXOP)
425 for (
unsigned I = 0,
E = NumDefs;
I <
E; ++
I) {
427 if (ClearsSuperReg(Op.
getReg()))
431 for (
unsigned I = 0, E = NumImplicitDefs;
I <
E; ++
I) {
433 if (ClearsSuperReg(Reg))
503 case X86::DIL:
case X86::DI:
case X86::EDI:
case X86::RDI:
505 case X86::BPL:
case X86::BP:
case X86::EBP:
case X86::RBP:
507 case X86::SPL:
case X86::SP:
case X86::ESP:
case X86::RSP:
509 case X86::AH:
case X86::AL:
case X86::AX:
case X86::EAX:
case X86::RAX:
511 case X86::DH:
case X86::DL:
case X86::DX:
case X86::EDX:
case X86::RDX:
513 case X86::CH:
case X86::CL:
case X86::CX:
case X86::ECX:
case X86::RCX:
515 case X86::BH:
case X86::BL:
case X86::BX:
case X86::EBX:
case X86::RBX:
521 case X86::AH:
case X86::AL:
case X86::AX:
case X86::EAX:
case X86::RAX:
523 case X86::DH:
case X86::DL:
case X86::DX:
case X86::EDX:
case X86::RDX:
525 case X86::CH:
case X86::CL:
case X86::CX:
case X86::ECX:
case X86::RCX:
527 case X86::BH:
case X86::BL:
case X86::BX:
case X86::EBX:
case X86::RBX:
531 case X86::DIL:
case X86::DI:
case X86::EDI:
case X86::RDI:
533 case X86::BPL:
case X86::BP:
case X86::EBP:
case X86::RBP:
535 case X86::SPL:
case X86::SP:
case X86::ESP:
case X86::RSP:
537 case X86::R8B:
case X86::R8W:
case X86::R8D:
case X86::R8:
539 case X86::R9B:
case X86::R9W:
case X86::R9D:
case X86::R9:
541 case X86::R10B:
case X86::R10W:
case X86::R10D:
case X86::R10:
543 case X86::R11B:
case X86::R11W:
case X86::R11D:
case X86::R11:
545 case X86::R12B:
case X86::R12W:
case X86::R12D:
case X86::R12:
547 case X86::R13B:
case X86::R13W:
case X86::R13D:
case X86::R13:
549 case X86::R14B:
case X86::R14W:
case X86::R14D:
case X86::R14:
551 case X86::R15B:
case X86::R15W:
case X86::R15D:
case X86::R15:
558 case X86::AH:
case X86::AL:
case X86::AX:
case X86::EAX:
case X86::RAX:
560 case X86::DH:
case X86::DL:
case X86::DX:
case X86::EDX:
case X86::RDX:
562 case X86::CH:
case X86::CL:
case X86::CX:
case X86::ECX:
case X86::RCX:
564 case X86::BH:
case X86::BL:
case X86::BX:
case X86::EBX:
case X86::RBX:
568 case X86::DIL:
case X86::DI:
case X86::EDI:
case X86::RDI:
570 case X86::BPL:
case X86::BP:
case X86::EBP:
case X86::RBP:
572 case X86::SPL:
case X86::SP:
case X86::ESP:
case X86::RSP:
574 case X86::R8B:
case X86::R8W:
case X86::R8D:
case X86::R8:
576 case X86::R9B:
case X86::R9W:
case X86::R9D:
case X86::R9:
578 case X86::R10B:
case X86::R10W:
case X86::R10D:
case X86::R10:
580 case X86::R11B:
case X86::R11W:
case X86::R11D:
case X86::R11:
582 case X86::R12B:
case X86::R12W:
case X86::R12D:
case X86::R12:
584 case X86::R13B:
case X86::R13W:
case X86::R13D:
case X86::R13:
586 case X86::R14B:
case X86::R14W:
case X86::R14D:
case X86::R14:
588 case X86::R15B:
case X86::R15W:
case X86::R15D:
case X86::R15:
594 case X86::AH:
case X86::AL:
case X86::AX:
case X86::EAX:
case X86::RAX:
596 case X86::DH:
case X86::DL:
case X86::DX:
case X86::EDX:
case X86::RDX:
598 case X86::CH:
case X86::CL:
case X86::CX:
case X86::ECX:
case X86::RCX:
600 case X86::BH:
case X86::BL:
case X86::BX:
case X86::EBX:
case X86::RBX:
604 case X86::DIL:
case X86::DI:
case X86::EDI:
case X86::RDI:
606 case X86::BPL:
case X86::BP:
case X86::EBP:
case X86::RBP:
608 case X86::SPL:
case X86::SP:
case X86::ESP:
case X86::RSP:
610 case X86::R8B:
case X86::R8W:
case X86::R8D:
case X86::R8:
612 case X86::R9B:
case X86::R9W:
case X86::R9D:
case X86::R9:
614 case X86::R10B:
case X86::R10W:
case X86::R10D:
case X86::R10:
616 case X86::R11B:
case X86::R11W:
case X86::R11D:
case X86::R11:
618 case X86::R12B:
case X86::R12W:
case X86::R12D:
case X86::R12:
620 case X86::R13B:
case X86::R13W:
case X86::R13D:
case X86::R13:
622 case X86::R14B:
case X86::R14W:
case X86::R14D:
case X86::R14:
624 case X86::R15B:
case X86::R15W:
case X86::R15D:
case X86::R15:
630 case X86::AH:
case X86::AL:
case X86::AX:
case X86::EAX:
case X86::RAX:
632 case X86::DH:
case X86::DL:
case X86::DX:
case X86::EDX:
case X86::RDX:
634 case X86::CH:
case X86::CL:
case X86::CX:
case X86::ECX:
case X86::RCX:
636 case X86::BH:
case X86::BL:
case X86::BX:
case X86::EBX:
case X86::RBX:
640 case X86::DIL:
case X86::DI:
case X86::EDI:
case X86::RDI:
642 case X86::BPL:
case X86::BP:
case X86::EBP:
case X86::RBP:
644 case X86::SPL:
case X86::SP:
case X86::ESP:
case X86::RSP:
646 case X86::R8B:
case X86::R8W:
case X86::R8D:
case X86::R8:
648 case X86::R9B:
case X86::R9W:
case X86::R9D:
case X86::R9:
650 case X86::R10B:
case X86::R10W:
case X86::R10D:
case X86::R10:
652 case X86::R11B:
case X86::R11W:
case X86::R11D:
case X86::R11:
654 case X86::R12B:
case X86::R12W:
case X86::R12D:
case X86::R12:
656 case X86::R13B:
case X86::R13W:
case X86::R13D:
case X86::R13:
658 case X86::R14B:
case X86::R14W:
case X86::R14D:
case X86::R14:
660 case X86::R15B:
case X86::R15W:
case X86::R15D:
case X86::R15:
668 assert(Res != 0 &&
"Unexpected register or VT");
void clearAllBits()
Set every bit to 0.
bool isOSDarwin() const
isOSDarwin - Is this a "Darwin" OS (OS X, iOS, or watchOS).
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
unsigned getNumImplicitDefs() const
Return the number of implicit defs this instruct has.
Compute iterated dominance frontiers using a linear time algorithm.
bool isOSBinFormatELF() const
Tests whether the OS uses the ELF binary format.
bool isDependencyBreaking(const MCSubtargetInfo &STI, const MCInst &Inst) const override
Returns true if.
static void RegisterMCInstrAnalysis(Target &T, Target::MCInstrAnalysisCtorFnTy Fn)
RegisterMCInstrAnalysis - Register a MCInstrAnalysis implementation for the given target...
Describe properties that are true of each instruction in the target description file.
static MCCFIInstruction createOffset(MCSymbol *L, unsigned Register, int Offset)
.cfi_offset Previous value of Register is saved at offset Offset from CFA.
MCTargetStreamer * createX86ObjectTargetStreamer(MCStreamer &OS, const MCSubtargetInfo &STI)
Implements X86-only directives for object files.
bool clearsSuperRegisters(const MCRegisterInfo &MRI, const MCInst &Inst, APInt &Mask) const override
Returns true if at least one of the register writes performed by.
static MCRegisterInfo * createX86MCRegisterInfo(const Triple &TT)
static void RegisterMCInstPrinter(Target &T, Target::MCInstPrinterCtorTy Fn)
RegisterMCInstPrinter - Register a MCInstPrinter implementation for the given target.
unsigned getDwarfRegFlavour(const Triple &TT, bool isEH)
static void RegisterAsmTargetStreamer(Target &T, Target::AsmTargetStreamerCtorTy Fn)
unsigned getBitWidth() const
Return the number of bits in the APInt.
std::string ParseX86Triple(const Triple &TT)
X86MCInstrAnalysis(const MCInstrInfo *MCII)
SI optimize exec mask operations pre RA
MCAsmBackend * createX86_32AsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
void setBit(unsigned BitPosition)
Set a given bit to 1.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
bool contains(unsigned Reg) const
contains - Return true if the specified register is included in this register class.
MCCodeEmitter * createX86MCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
int getDwarfRegNum(unsigned RegNum, bool isEH) const
Map a target register to an equivalent dwarf register number.
MCAsmBackend * createX86_64AsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
static void RegisterCOFFStreamer(Target &T, Target::COFFStreamerCtorTy Fn)
This file implements a class to represent arbitrary precision integral constant values and operations...
unsigned getReg() const
Returns the register number.
Context object for machine code objects.
bool getBoolValue() const
Convert APInt to a boolean value.
static MCRelocationInfo * createX86MCRelocationInfo(const Triple &TheTriple, MCContext &Ctx)
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
void addInitialFrameState(const MCCFIInstruction &Inst)
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool empty() const
empty - Check if the string is empty.
void LLVMInitializeX86TargetMC()
bool isWindowsItaniumEnvironment() const
MCRegisterClass - Base class of TargetRegisterClass.
bool isWindowsCoreCLREnvironment() const
Instances of this class represent a single low-level machine instruction.
MCRelocationInfo * createMCRelocationInfo(const Triple &TT, MCContext &Ctx)
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
This class is intended to be used as a base class for asm properties and features specific to the tar...
static void RegisterMCAsmBackend(Target &T, Target::MCAsmBackendCtorTy Fn)
RegisterMCAsmBackend - Register a MCAsmBackend implementation for the given target.
const MCPhysReg * getImplicitDefs() const
Return a list of registers that are potentially written by any instance of this machine instruction...
unsigned const MachineRegisterInfo * MRI
static MCCFIInstruction createDefCfa(MCSymbol *L, unsigned Register, int Offset)
.cfi_def_cfa defines a rule for computing CFA as: take address from Register and add Offset to it...
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
static bool is64Bit(const char *name)
Interface to description of machine instruction set.
MCStreamer * createX86WinCOFFStreamer(MCContext &C, std::unique_ptr< MCAsmBackend > &&AB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&CE, bool RelaxAll, bool IncrementalLinkerCompatible)
Construct an X86 Windows COFF machine code streamer which will generate PE/COFF format object files...
MCTargetStreamer * createX86AsmTargetStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint, bool isVerboseAsm)
Implements X86-only directives for assembly emission.
Create MCExprs from relocations found in an object file.
bool isOSBinFormatMachO() const
Tests whether the environment is MachO.
static void RegisterMCSubtargetInfo(Target &T, Target::MCSubtargetInfoCtorFnTy Fn)
RegisterMCSubtargetInfo - Register a MCSubtargetInfo implementation for the given target...
static void RegisterObjectTargetStreamer(Target &T, Target::ObjectTargetStreamerCtorTy Fn)
Triple - Helper class for working with autoconf configuration names.
MCSubtargetInfo * createX86MCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
Create a X86 MCSubtargetInfo instance.
unsigned getX86SubSuperRegisterOrZero(unsigned, unsigned, bool High=false)
Returns the sub or super register of a specific X86 register.
void initLLVMToSEHAndCVRegMapping(MCRegisterInfo *MRI)
const MCOperand & getOperand(unsigned i) const
constexpr size_t array_lengthof(T(&)[N])
Find the length of an array.
static void RegisterMCCodeEmitter(Target &T, Target::MCCodeEmitterCtorTy Fn)
RegisterMCCodeEmitter - Register a MCCodeEmitter implementation for the given target.
EnvironmentType getEnvironment() const
getEnvironment - Get the parsed environment type of this triple.
unsigned getNumDefs() const
Return the number of MachineOperands that are register definitions.
unsigned getX86SubSuperRegister(unsigned, unsigned, bool High=false)
Returns the sub or super register of a specific X86 register.
static void RegisterMCRegInfo(Target &T, Target::MCRegInfoCtorFnTy Fn)
RegisterMCRegInfo - Register a MCRegisterInfo implementation for the given target.
Target - Wrapper for Target specific information.
Class for arbitrary precision integers.
bool isOSCygMing() const
Tests for either Cygwin or MinGW OS.
static MCAsmInfo * createX86MCAsmInfo(const MCRegisterInfo &MRI, const Triple &TheTriple)
static MCInstrInfo * createX86MCInstrInfo()
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
uint16_t getEncodingValue(unsigned RegNo) const
Returns the encoding for RegNo.
void mapLLVMRegToCVReg(unsigned LLVMReg, int CVReg)
const MCInstrDesc & get(unsigned Opcode) const
Return the machine instruction descriptor that corresponds to the specified instruction opcode...
static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn)
RegisterMCInstrInfo - Register a MCInstrInfo implementation for the given target. ...
Generic base class for all target subtargets.
Target & getTheX86_32Target()
XOP - Opcode prefix used by XOP instructions.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
RegisterMCAsmInfoFn - Helper template for registering a target assembly info implementation.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
std::underlying_type< E >::type Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
static void RegisterMCRelocationInfo(Target &T, Target::MCRelocationInfoCtorTy Fn)
RegisterMCRelocationInfo - Register an MCRelocationInfo implementation for the given target...
StringRef - Represent a constant reference to a string, i.e.
static MCInstrAnalysis * createX86MCInstrAnalysis(const MCInstrInfo *Info)
unsigned getOpcode() const
bool isWindowsMSVCEnvironment() const
Checks if the environment could be MSVC.
Instances of this class represent operands of the MCInst class.
static MCInstPrinter * createX86MCInstPrinter(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
Target & getTheX86_64Target()
void mapLLVMRegToSEHReg(unsigned LLVMReg, int SEHReg)
mapLLVMRegToSEHReg - Used to initialize LLVM register to SEH register number mapping.
const MCRegisterClass & getRegClass(unsigned i) const
Returns the register class associated with the enumeration value.