mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 14:15:53 +00:00
5cfd40ccd4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198284 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
//===- 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.h>
|
|
#include <string>
|
|
|
|
#define INSTRUCTION_SPECIFIER_FIELDS \
|
|
struct OperandSpecifier operands[X86_MAX_OPERANDS]; \
|
|
bool filtered; \
|
|
InstructionContext insnContext; \
|
|
std::string name; \
|
|
\
|
|
InstructionSpecifier() { \
|
|
filtered = false; \
|
|
insnContext = IC; \
|
|
name = ""; \
|
|
memset(operands, 0, sizeof(operands)); \
|
|
}
|
|
|
|
#define INSTRUCTION_IDS \
|
|
InstrUID instructionIDs[256];
|
|
|
|
#include "../../lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h"
|
|
|
|
#undef INSTRUCTION_SPECIFIER_FIELDS
|
|
#undef INSTRUCTION_IDS
|
|
|
|
#endif
|