1 //===- X86InstructionInfo.cpp - X86 Instruction Information ---------------===//
3 // This file contains the X86 implementation of the MInstructionInfo class.
5 //===----------------------------------------------------------------------===//
7 #include "X86InstructionInfo.h"
8 #include "llvm/CodeGen/MInstruction.h"
11 // X86Insts - Turn the InstructionInfo.def file into a bunch of instruction
14 static const MInstructionDesc X86Insts[] = {
15 #define I(ENUM, NAME, FLAGS, TSFLAGS) { NAME, FLAGS, TSFLAGS },
16 #include "X86InstructionInfo.def"
19 X86InstructionInfo::X86InstructionInfo()
20 : MInstructionInfo(X86Insts, sizeof(X86Insts)/sizeof(X86Insts[0])) {
24 // print - Print out an x86 instruction in GAS syntax
25 void X86InstructionInfo::print(const MInstruction *MI, std::ostream &O) const {
27 O << get(MI->getOpcode()).Name << "\n";