blob: ab8b96892908e824bc597da77afdb96e0e5c0fc4 [file] [log] [blame]
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +08001//===-- 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
Nguyen Anh Quynh6023ef72014-04-29 11:21:04 +080012/* Capstone Disassembly Engine */
13/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +080014
15#ifndef CS_LLVM_MC_MCFIXEDLENDISASSEMBLER_H
16#define CS_LLVM_MC_MCFIXEDLENDISASSEMBLER_H
17
18// Disassembler state machine opcodes.
19enum 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