Path: blob/master/libs/capstone/MCFixedLenDisassembler.h
4387 views
//===-- llvm/MC/MCFixedLenDisassembler.h - Decoder driver -------*- C++ -*-===//1//2// The LLVM Compiler Infrastructure3//4// This file is distributed under the University of Illinois Open Source5// License. See LICENSE.TXT for details.6//7//===----------------------------------------------------------------------===//8// Fixed length disassembler decoder state machine driver.9//===----------------------------------------------------------------------===//1011/* Capstone Disassembly Engine */12/* By Nguyen Anh Quynh <[email protected]>, 2013-2019 */1314#ifndef CS_LLVM_MC_MCFIXEDLENDISASSEMBLER_H15#define CS_LLVM_MC_MCFIXEDLENDISASSEMBLER_H1617// Disassembler state machine opcodes.18enum DecoderOps {19MCD_OPC_ExtractField = 1, // OPC_ExtractField(uint8_t Start, uint8_t Len)20MCD_OPC_FilterValue, // OPC_FilterValue(uleb128 Val, uint16_t NumToSkip)21MCD_OPC_CheckField, // OPC_CheckField(uint8_t Start, uint8_t Len,22// uleb128 Val, uint16_t NumToSkip)23MCD_OPC_CheckPredicate, // OPC_CheckPredicate(uleb128 PIdx, uint16_t NumToSkip)24MCD_OPC_Decode, // OPC_Decode(uleb128 Opcode, uleb128 DIdx)25MCD_OPC_TryDecode, // OPC_TryDecode(uleb128 Opcode, uleb128 DIdx,26// uint16_t NumToSkip)27MCD_OPC_SoftFail, // OPC_SoftFail(uleb128 PMask, uleb128 NMask)28MCD_OPC_Fail // OPC_Fail()29};3031#endif323334