Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 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 | |
Nguyen Anh Quynh | 6023ef7 | 2014-04-29 11:21:04 +0800 | [diff] [blame] | 12 | /* Capstone Disassembly Engine */ |
Nguyen Anh Quynh | bfcaba5 | 2015-03-04 17:45:23 +0800 | [diff] [blame] | 13 | /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */ |
Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 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 |