Jia Liu | 31d157a | 2012-02-18 12:03:15 +0000 | [diff] [blame^] | 1 | //===-- MBlazeDisassembler.h - Disassembler for MicroBlaze -----*- C++ -*-===// |
Wesley Peck | a060383 | 2010-10-27 00:23:01 +0000 | [diff] [blame] | 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 MBlaze Disassembler. It it the header for |
| 11 | // MBlazeDisassembler, a subclass of MCDisassembler. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef MBLAZEDISASSEMBLER_H |
| 16 | #define MBLAZEDISASSEMBLER_H |
| 17 | |
| 18 | #include "llvm/MC/MCDisassembler.h" |
| 19 | |
Wesley Peck | a060383 | 2010-10-27 00:23:01 +0000 | [diff] [blame] | 20 | namespace llvm { |
| 21 | |
| 22 | class MCInst; |
| 23 | class MemoryObject; |
| 24 | class raw_ostream; |
| 25 | |
| 26 | struct EDInstInfo; |
| 27 | |
| 28 | /// MBlazeDisassembler - Disassembler for all MBlaze platforms. |
| 29 | class MBlazeDisassembler : public MCDisassembler { |
| 30 | public: |
| 31 | /// Constructor - Initializes the disassembler. |
| 32 | /// |
James Molloy | b950585 | 2011-09-07 17:24:38 +0000 | [diff] [blame] | 33 | MBlazeDisassembler(const MCSubtargetInfo &STI) : |
| 34 | MCDisassembler(STI) { |
Wesley Peck | a060383 | 2010-10-27 00:23:01 +0000 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | ~MBlazeDisassembler() { |
| 38 | } |
| 39 | |
| 40 | /// getInstruction - See MCDisassembler. |
Owen Anderson | 83e3f67 | 2011-08-17 17:44:15 +0000 | [diff] [blame] | 41 | MCDisassembler::DecodeStatus getInstruction(MCInst &instr, |
Wesley Peck | a060383 | 2010-10-27 00:23:01 +0000 | [diff] [blame] | 42 | uint64_t &size, |
Derek Schuff | 2ea9387 | 2012-02-06 22:30:29 +0000 | [diff] [blame] | 43 | MemoryObject ®ion, |
Wesley Peck | a060383 | 2010-10-27 00:23:01 +0000 | [diff] [blame] | 44 | uint64_t address, |
Owen Anderson | 98c5dda | 2011-09-15 23:38:46 +0000 | [diff] [blame] | 45 | raw_ostream &vStream, |
| 46 | raw_ostream &cStream) const; |
Wesley Peck | a060383 | 2010-10-27 00:23:01 +0000 | [diff] [blame] | 47 | |
| 48 | /// getEDInfo - See MCDisassembler. |
Benjamin Kramer | 88b6fc0 | 2012-02-11 14:51:07 +0000 | [diff] [blame] | 49 | const EDInstInfo *getEDInfo() const; |
Wesley Peck | a060383 | 2010-10-27 00:23:01 +0000 | [diff] [blame] | 50 | }; |
| 51 | |
| 52 | } // namespace llvm |
| 53 | |
| 54 | #endif |