LLVM  8.0.1
LanaiDisassembler.h
Go to the documentation of this file.
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 
20 
21 namespace llvm {
22 
24 public:
26 
27  ~LanaiDisassembler() override = default;
28 
29  // getInstruction - See MCDisassembler.
31  getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
32  uint64_t Address, raw_ostream &VStream,
33  raw_ostream &CStream) const override;
34 };
35 
36 } // end namespace llvm
37 
38 #endif // LLVM_LIB_TARGET_LANAI_DISASSEMBLER_LANAIDISASSEMBLER_H
This class represents lattice values for constants.
Definition: AllocatorList.h:24
DecodeStatus
Ternary decode status.
Superclass for all disassemblers.
Context object for machine code objects.
Definition: MCContext.h:63
const MCSubtargetInfo & STI
~LanaiDisassembler() override=default
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:161
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:47
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:46