blob: 116e6b1733ab32dcaeb871636af8f3a02860c8bc [file] [log] [blame]
Chris Lattner72614082002-10-25 22:55:53 +00001//===- 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
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