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