1 //===- LanaiDisassembler.cpp - Disassembler for Lanai -----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file is part of the Lanai Disassembler.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H
15 #define LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H
17 #define DEBUG_TYPE "lanai-disassembler"
19 #include "llvm/MC/MCDisassembler/MCDisassembler.h"
23 class LanaiDisassembler : public MCDisassembler {
25 LanaiDisassembler(const MCSubtargetInfo &STI, MCContext &Ctx);
27 ~LanaiDisassembler() override = default;
29 // getInstruction - See MCDisassembler.
30 MCDisassembler::DecodeStatus
31 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
32 uint64_t Address, raw_ostream &VStream,
33 raw_ostream &CStream) const override;
36 } // end namespace llvm
38 #endif // LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H