Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB

  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. #ifndef LLVM_MC_MCFIXEDLENDISASSEMBLER_H
  12. #define LLVM_MC_MCFIXEDLENDISASSEMBLER_H
  13. namespace llvm {
  14. namespace MCD {
  15. // Disassembler state machine opcodes.
  16. enum DecoderOps {
  17. OPC_ExtractField = 1, // OPC_ExtractField(uint8_t Start, uint8_t Len)
  18. OPC_FilterValue, // OPC_FilterValue(uleb128 Val, uint16_t NumToSkip)
  19. OPC_CheckField, // OPC_CheckField(uint8_t Start, uint8_t Len,
  20. // uleb128 Val, uint16_t NumToSkip)
  21. OPC_CheckPredicate, // OPC_CheckPredicate(uleb128 PIdx, uint16_t NumToSkip)
  22. OPC_Decode, // OPC_Decode(uleb128 Opcode, uleb128 DIdx)
  23. OPC_SoftFail, // OPC_SoftFail(uleb128 PMask, uleb128 NMask)
  24. OPC_Fail // OPC_Fail()
  25. };
  26. } // namespace MCDecode
  27. } // namespace llvm
  28. #endif