mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
726140821f
We can instruction select exactly one instruction 'ret void'. Wow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4284 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
939 B
C++
31 lines
939 B
C++
//===- X86InstructionInfo.h - X86 Instruction Information ---------*-C++-*-===//
|
|
//
|
|
// This file contains the X86 implementation of the MInstructionInfo class.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef X86INSTRUCTIONINFO_H
|
|
#define X86INSTRUCTIONINFO_H
|
|
|
|
#include "llvm/Target/MInstructionInfo.h"
|
|
#include "X86RegisterInfo.h"
|
|
|
|
class X86InstructionInfo : public MInstructionInfo {
|
|
const X86RegisterInfo RI;
|
|
public:
|
|
X86InstructionInfo();
|
|
|
|
/// getRegisterInfo - MInstructionInfo is a superset of MRegister info. As
|
|
/// such, whenever a client has an instance of instruction info, it should
|
|
/// always be able to get register info as well (through this method).
|
|
///
|
|
virtual const MRegisterInfo &getRegisterInfo() const { return RI; }
|
|
|
|
/// print - Print out an x86 instruction in GAS syntax
|
|
///
|
|
virtual void print(const MInstruction *MI, std::ostream &O) const;
|
|
};
|
|
|
|
|
|
#endif
|