Home | History | Annotate | Download | only in Disassembler
      1 //===- LanaiDisassembler.cpp - Disassembler for Lanai -----------*- 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 //
     10 // This file is part of the Lanai Disassembler.
     11 //
     12 //===----------------------------------------------------------------------===//
     13 
     14 #ifndef LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H
     15 #define LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H
     16 
     17 #define DEBUG_TYPE "lanai-disassembler"
     18 
     19 #include "llvm/MC/MCDisassembler/MCDisassembler.h"
     20 
     21 namespace llvm {
     22 
     23 class MCInst;
     24 class raw_ostream;
     25 
     26 class LanaiDisassembler : public MCDisassembler {
     27 public:
     28   LanaiDisassembler(const MCSubtargetInfo &STI, MCContext &Ctx);
     29 
     30   ~LanaiDisassembler() override {}
     31 
     32   // getInstruction - See MCDisassembler.
     33   MCDisassembler::DecodeStatus
     34   getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
     35                  uint64_t Address, raw_ostream &VStream,
     36                  raw_ostream &CStream) const override;
     37 };
     38 
     39 } // namespace llvm
     40 
     41 #endif // LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H
     42