LLVM  9.0.0svn
LanaiDisassembler.h
Go to the documentation of this file.
1 //===- LanaiDisassembler.cpp - Disassembler for Lanai -----------*- 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 // This file is part of the Lanai Disassembler.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H
14 #define LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H
15 
16 #define DEBUG_TYPE "lanai-disassembler"
17 
19 
20 namespace llvm {
21 
23 public:
25 
26  ~LanaiDisassembler() override = default;
27 
28  // getInstruction - See MCDisassembler.
30  getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
31  uint64_t Address, raw_ostream &VStream,
32  raw_ostream &CStream) const override;
33 };
34 
35 } // end namespace llvm
36 
37 #endif // LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H
This class represents lattice values for constants.
Definition: AllocatorList.h:23
DecodeStatus
Ternary decode status.
Superclass for all disassemblers.
Context object for machine code objects.
Definition: MCContext.h:62
const MCSubtargetInfo & STI
~LanaiDisassembler() override=default
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:158
MCDisassembler::DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef< uint8_t > Bytes, uint64_t Address, raw_ostream &VStream, raw_ostream &CStream) const override
Returns the disassembly of a single instruction.
LanaiDisassembler(const MCSubtargetInfo &STI, MCContext &Ctx)
Generic base class for all target subtargets.
uint32_t Size
Definition: Profile.cpp:46
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45