1 //===- X86DisassemblerShared.h - Emitter shared header ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef X86DISASSEMBLERSHARED_H
11 #define X86DISASSEMBLERSHARED_H
16 #define INSTRUCTION_IDS \
17 InstrUID instructionIDs[256];
19 #include "../../lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h"
21 #undef INSTRUCTION_SPECIFIER_FIELDS
22 #undef INSTRUCTION_IDS
24 struct InstructionSpecifier {
25 llvm::X86Disassembler::OperandSpecifier operands[X86_MAX_OPERANDS];
26 llvm::X86Disassembler::InstructionContext insnContext;
29 InstructionSpecifier() {
30 insnContext = llvm::X86Disassembler::IC;
32 memset(operands, 0, sizeof(operands));