blob: 7fcd122b6b3bc6f494c60f6e40eccbb3857acae3 [file] [log] [blame]
Sean Callanan8ed9f512009-12-19 02:59:52 +00001//===- X86DisassemblerShared.h - Emitter shared header ----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef X86DISASSEMBLERSHARED_H
11#define X86DISASSEMBLERSHARED_H
12
13#include <string>
14
Daniel Dunbar87830872009-12-19 04:16:57 +000015#define INSTRUCTION_SPECIFIER_FIELDS \
16 bool filtered; \
17 InstructionContext insnContext; \
18 std::string name; \
19 \
20 InstructionSpecifier() { \
21 filtered = false; \
22 insnContext = IC; \
23 name = ""; \
24 modifierType = MODIFIER_NONE; \
25 modifierBase = 0; \
26 memset(operands, 0, sizeof(operands)); \
Sean Callanan8ed9f512009-12-19 02:59:52 +000027 }
28
29#define INSTRUCTION_IDS \
30 InstrUID instructionIDs[256];
31
32#include "../../lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h"
33
34#undef INSTRUCTION_SPECIFIER_FIELDS
35#undef INSTRUCTION_IDS
36
37#endif