More bzero -> memset that I missed.
[oota-llvm.git] / utils / TableGen / X86DisassemblerShared.h
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
13 #include <string>
14
15 #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)); \
27   }
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