Sean Callanan | 8ed9f51 | 2009-12-19 02:59:52 +0000 | [diff] [blame] | 1 | //===- 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 | |
Nuno Lopes | 014dc70 | 2009-12-19 11:52:18 +0000 | [diff] [blame] | 13 | #include <string.h> |
Chandler Carruth | 4ffd89f | 2012-12-04 10:37:14 +0000 | [diff] [blame] | 14 | #include <string> |
Sean Callanan | 8ed9f51 | 2009-12-19 02:59:52 +0000 | [diff] [blame] | 15 | |
Daniel Dunbar | 8783087 | 2009-12-19 04:16:57 +0000 | [diff] [blame] | 16 | #define INSTRUCTION_SPECIFIER_FIELDS \ |
Craig Topper | 5a2c607 | 2012-08-01 07:39:18 +0000 | [diff] [blame] | 17 | struct OperandSpecifier operands[X86_MAX_OPERANDS]; \ |
Daniel Dunbar | 8783087 | 2009-12-19 04:16:57 +0000 | [diff] [blame] | 18 | bool filtered; \ |
| 19 | InstructionContext insnContext; \ |
| 20 | std::string name; \ |
| 21 | \ |
| 22 | InstructionSpecifier() { \ |
| 23 | filtered = false; \ |
| 24 | insnContext = IC; \ |
| 25 | name = ""; \ |
| 26 | modifierType = MODIFIER_NONE; \ |
| 27 | modifierBase = 0; \ |
| 28 | memset(operands, 0, sizeof(operands)); \ |
Sean Callanan | 8ed9f51 | 2009-12-19 02:59:52 +0000 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | #define INSTRUCTION_IDS \ |
| 32 | InstrUID instructionIDs[256]; |
| 33 | |
| 34 | #include "../../lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h" |
| 35 | |
| 36 | #undef INSTRUCTION_SPECIFIER_FIELDS |
| 37 | #undef INSTRUCTION_IDS |
| 38 | |
| 39 | #endif |