mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +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
30 lines
896 B
C++
30 lines
896 B
C++
//===- X86InstructionInfo.cpp - X86 Instruction Information ---------------===//
|
|
//
|
|
// This file contains the X86 implementation of the MInstructionInfo class.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "X86InstructionInfo.h"
|
|
#include "llvm/CodeGen/MInstruction.h"
|
|
#include <ostream>
|
|
|
|
// X86Insts - Turn the InstructionInfo.def file into a bunch of instruction
|
|
// descriptors
|
|
//
|
|
static const MInstructionDesc X86Insts[] = {
|
|
#define I(ENUM, NAME, FLAGS, TSFLAGS) { NAME, FLAGS, TSFLAGS },
|
|
#include "X86InstructionInfo.def"
|
|
};
|
|
|
|
X86InstructionInfo::X86InstructionInfo()
|
|
: MInstructionInfo(X86Insts, sizeof(X86Insts)/sizeof(X86Insts[0])) {
|
|
}
|
|
|
|
|
|
// print - Print out an x86 instruction in GAS syntax
|
|
void X86InstructionInfo::print(const MInstruction *MI, std::ostream &O) const {
|
|
// FIXME: This sucks.
|
|
O << get(MI->getOpcode()).Name << "\n";
|
|
}
|
|
|