Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/capstone/MCFixedLenDisassembler.h
4387 views
1
//===-- llvm/MC/MCFixedLenDisassembler.h - Decoder driver -------*- 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
// Fixed length disassembler decoder state machine driver.
10
//===----------------------------------------------------------------------===//
11
12
/* Capstone Disassembly Engine */
13
/* By Nguyen Anh Quynh <[email protected]>, 2013-2019 */
14
15
#ifndef CS_LLVM_MC_MCFIXEDLENDISASSEMBLER_H
16
#define CS_LLVM_MC_MCFIXEDLENDISASSEMBLER_H
17
18
// Disassembler state machine opcodes.
19
enum DecoderOps {
20
MCD_OPC_ExtractField = 1, // OPC_ExtractField(uint8_t Start, uint8_t Len)
21
MCD_OPC_FilterValue, // OPC_FilterValue(uleb128 Val, uint16_t NumToSkip)
22
MCD_OPC_CheckField, // OPC_CheckField(uint8_t Start, uint8_t Len,
23
// uleb128 Val, uint16_t NumToSkip)
24
MCD_OPC_CheckPredicate, // OPC_CheckPredicate(uleb128 PIdx, uint16_t NumToSkip)
25
MCD_OPC_Decode, // OPC_Decode(uleb128 Opcode, uleb128 DIdx)
26
MCD_OPC_TryDecode, // OPC_TryDecode(uleb128 Opcode, uleb128 DIdx,
27
// uint16_t NumToSkip)
28
MCD_OPC_SoftFail, // OPC_SoftFail(uleb128 PMask, uleb128 NMask)
29
MCD_OPC_Fail // OPC_Fail()
30
};
31
32
#endif
33
34