AArch64Disassembler.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. //===- AArch64Disassembler.h - Disassembler for AArch64 ---------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. //
  10. //===----------------------------------------------------------------------===//
  11. #ifndef LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64DISASSEMBLER_H
  12. #define LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64DISASSEMBLER_H
  13. #include "llvm/MC/MCDisassembler/MCDisassembler.h"
  14. namespace llvm {
  15. class AArch64Disassembler : public MCDisassembler {
  16. public:
  17. AArch64Disassembler(const MCSubtargetInfo &STI, MCContext &Ctx)
  18. : MCDisassembler(STI, Ctx) {}
  19. ~AArch64Disassembler() override = default;
  20. MCDisassembler::DecodeStatus
  21. getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
  22. uint64_t Address, raw_ostream &CStream) const override;
  23. };
  24. } // end namespace llvm
  25. #endif // LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64DISASSEMBLER_H