X86InstrInfo.h revision 75276f150e081464300810c58934abcc9c4b9f53
1//===- X86InstructionInfo.h - X86 Instruction Information ---------*-C++-*-===// 2// 3// This file contains the X86 implementation of the MInstructionInfo class. 4// 5//===----------------------------------------------------------------------===// 6 7#ifndef X86INSTRUCTIONINFO_H 8#define X86INSTRUCTIONINFO_H 9 10#include "llvm/Target/InstructionInfo.h" 11#include "X86RegisterInfo.h" 12 13class X86InstructionInfo : public MInstructionInfo { 14 const X86RegisterInfo RI; 15public: 16 X86InstructionInfo(); 17 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). 21 /// 22 virtual const MRegisterInfo &getRegisterInfo() const { return RI; } 23 24 /// print - Print out an x86 instruction in GAS syntax 25 /// 26 virtual void print(const MInstruction *MI, std::ostream &O) const; 27}; 28 29 30#endif 31