Fixed spelling and grammar.
[oota-llvm.git] / lib / Target / X86 / X86InstrInfo.h
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/MInstructionInfo.h"
11 #include "X86RegisterInfo.h"
12
13 class X86InstructionInfo : public MInstructionInfo {
14   const X86RegisterInfo RI;
15 public:
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