1 //===- X86InstructionInfo.h - X86 Instruction Information ---------*-C++-*-===//
3 // This file contains the X86 implementation of the MInstructionInfo class.
5 //===----------------------------------------------------------------------===//
7 #ifndef X86INSTRUCTIONINFO_H
8 #define X86INSTRUCTIONINFO_H
10 #include "llvm/Target/InstructionInfo.h"
11 #include "X86RegisterInfo.h"
13 class X86InstructionInfo : public MInstructionInfo {
14 const X86RegisterInfo RI;
18 /// getRegisterInfo - MInstructionInfo is a superset of MRegister info. As
19 /// such, whenever a client has an instance of instruction info, it should
20 /// always be able to get register info as well (through this method).
22 virtual const MRegisterInfo &getRegisterInfo() const { return RI; }
24 /// print - Print out an x86 instruction in GAS syntax
26 virtual void print(const MInstruction *MI, std::ostream &O) const;