MCDecoderOps.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===------------ llvm/MC/MCDecoderOps.h - Decoder driver -------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. // Disassembler decoder state machine driver.
  14. //===----------------------------------------------------------------------===//
  15. #ifndef LLVM_MC_MCDECODEROPS_H
  16. #define LLVM_MC_MCDECODEROPS_H
  17. namespace llvm {
  18. namespace MCD {
  19. // Disassembler state machine opcodes.
  20. enum DecoderOps {
  21. OPC_ExtractField = 1, // OPC_ExtractField(uint8_t Start, uint8_t Len)
  22. OPC_FilterValue, // OPC_FilterValue(uleb128 Val, uint16_t NumToSkip)
  23. OPC_CheckField, // OPC_CheckField(uint8_t Start, uint8_t Len,
  24. // uleb128 Val, uint16_t NumToSkip)
  25. OPC_CheckPredicate, // OPC_CheckPredicate(uleb128 PIdx, uint16_t NumToSkip)
  26. OPC_Decode, // OPC_Decode(uleb128 Opcode, uleb128 DIdx)
  27. OPC_TryDecode, // OPC_TryDecode(uleb128 Opcode, uleb128 DIdx,
  28. // uint16_t NumToSkip)
  29. OPC_SoftFail, // OPC_SoftFail(uleb128 PMask, uleb128 NMask)
  30. OPC_Fail // OPC_Fail()
  31. };
  32. } // namespace MCD
  33. } // namespace llvm
  34. #endif
  35. #ifdef __GNUC__
  36. #pragma GCC diagnostic pop
  37. #endif