2009-12-19 03:59:52 +01:00
|
|
|
//===- X86DisassemblerShared.h - Emitter shared header ----------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef X86DISASSEMBLERSHARED_H
|
|
|
|
#define X86DISASSEMBLERSHARED_H
|
|
|
|
|
|
|
|
#include <string>
|
2009-12-19 12:52:18 +01:00
|
|
|
#include <string.h>
|
2009-12-19 03:59:52 +01:00
|
|
|
|
2009-12-19 05:16:57 +01:00
|
|
|
#define INSTRUCTION_SPECIFIER_FIELDS \
|
|
|
|
bool filtered; \
|
|
|
|
InstructionContext insnContext; \
|
|
|
|
std::string name; \
|
|
|
|
\
|
|
|
|
InstructionSpecifier() { \
|
|
|
|
filtered = false; \
|
|
|
|
insnContext = IC; \
|
|
|
|
name = ""; \
|
|
|
|
modifierType = MODIFIER_NONE; \
|
|
|
|
modifierBase = 0; \
|
|
|
|
memset(operands, 0, sizeof(operands)); \
|
2009-12-19 03:59:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#define INSTRUCTION_IDS \
|
|
|
|
InstrUID instructionIDs[256];
|
|
|
|
|
|
|
|
#include "../../lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h"
|
|
|
|
|
|
|
|
#undef INSTRUCTION_SPECIFIER_FIELDS
|
|
|
|
#undef INSTRUCTION_IDS
|
|
|
|
|
|
|
|
#endif
|