summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/utils/TableGen/X86DisassemblerShared.h
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2020-08-03 15:06:44 +0000
committerpatrick <patrick@openbsd.org>2020-08-03 15:06:44 +0000
commitb64793999546ed8adebaeebd9d8345d18db8927d (patch)
tree4357c27b561d73b0e089727c6ed659f2ceff5f47 /gnu/llvm/utils/TableGen/X86DisassemblerShared.h
parentAdd support for UTF-8 DISPLAY-HINTs with octet length. For now only (diff)
downloadwireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.tar.xz
wireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.zip
Remove LLVM 8.0.1 files.
Diffstat (limited to 'gnu/llvm/utils/TableGen/X86DisassemblerShared.h')
-rw-r--r--gnu/llvm/utils/TableGen/X86DisassemblerShared.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/gnu/llvm/utils/TableGen/X86DisassemblerShared.h b/gnu/llvm/utils/TableGen/X86DisassemblerShared.h
deleted file mode 100644
index 220765f7241..00000000000
--- a/gnu/llvm/utils/TableGen/X86DisassemblerShared.h
+++ /dev/null
@@ -1,58 +0,0 @@
-//===- 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 LLVM_UTILS_TABLEGEN_X86DISASSEMBLERSHARED_H
-#define LLVM_UTILS_TABLEGEN_X86DISASSEMBLERSHARED_H
-
-#include <cstring>
-#include <string>
-
-#include "llvm/Support/X86DisassemblerDecoderCommon.h"
-
-struct InstructionSpecifier {
- llvm::X86Disassembler::OperandSpecifier
- operands[llvm::X86Disassembler::X86_MAX_OPERANDS];
- llvm::X86Disassembler::InstructionContext insnContext;
- std::string name;
-
- InstructionSpecifier() {
- insnContext = llvm::X86Disassembler::IC;
- name = "";
- memset(operands, 0, sizeof(operands));
- }
-};
-
-/// Specifies whether a ModR/M byte is needed and (if so) which
-/// instruction each possible value of the ModR/M byte corresponds to. Once
-/// this information is known, we have narrowed down to a single instruction.
-struct ModRMDecision {
- uint8_t modrm_type;
- llvm::X86Disassembler::InstrUID instructionIDs[256];
-};
-
-/// Specifies which set of ModR/M->instruction tables to look at
-/// given a particular opcode.
-struct OpcodeDecision {
- ModRMDecision modRMDecisions[256];
-};
-
-/// Specifies which opcode->instruction tables to look at given
-/// a particular context (set of attributes). Since there are many possible
-/// contexts, the decoder first uses CONTEXTS_SYM to determine which context
-/// applies given a specific set of attributes. Hence there are only IC_max
-/// entries in this table, rather than 2^(ATTR_max).
-struct ContextDecision {
- OpcodeDecision opcodeDecisions[llvm::X86Disassembler::IC_max];
-
- ContextDecision() {
- memset(opcodeDecisions, 0, sizeof(opcodeDecisions));
- }
-};
-
-#endif