Rizin
unix-like reverse engineering framework and cli tools
MCFixedLenDisassembler.h
Go to the documentation of this file.
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 <aquynh@gmail.com>, 2013-2015 */
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_SoftFail, // OPC_SoftFail(uleb128 PMask, uleb128 NMask)
27  MCD_OPC_Fail // OPC_Fail()
28 };
29 
30 #endif
@ MCD_OPC_ExtractField
@ MCD_OPC_SoftFail
@ MCD_OPC_Decode
@ MCD_OPC_Fail
@ MCD_OPC_FilterValue
@ MCD_OPC_CheckPredicate
@ MCD_OPC_CheckField