2012-02-18 12:03:15 +00:00
|
|
|
//===-- MBlazeDisassembler.h - Disassembler for MicroBlaze -----*- C++ -*-===//
|
2010-10-27 00:23:01 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file is part of the MBlaze Disassembler. It it the header for
|
|
|
|
// MBlazeDisassembler, a subclass of MCDisassembler.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef MBLAZEDISASSEMBLER_H
|
|
|
|
#define MBLAZEDISASSEMBLER_H
|
|
|
|
|
|
|
|
#include "llvm/MC/MCDisassembler.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MCInst;
|
|
|
|
class MemoryObject;
|
|
|
|
class raw_ostream;
|
|
|
|
|
|
|
|
/// MBlazeDisassembler - Disassembler for all MBlaze platforms.
|
|
|
|
class MBlazeDisassembler : public MCDisassembler {
|
|
|
|
public:
|
|
|
|
/// Constructor - Initializes the disassembler.
|
|
|
|
///
|
2011-09-07 17:24:38 +00:00
|
|
|
MBlazeDisassembler(const MCSubtargetInfo &STI) :
|
|
|
|
MCDisassembler(STI) {
|
2010-10-27 00:23:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
~MBlazeDisassembler() {
|
|
|
|
}
|
|
|
|
|
|
|
|
/// getInstruction - See MCDisassembler.
|
2011-08-17 17:44:15 +00:00
|
|
|
MCDisassembler::DecodeStatus getInstruction(MCInst &instr,
|
2010-10-27 00:23:01 +00:00
|
|
|
uint64_t &size,
|
2012-02-29 01:09:06 +00:00
|
|
|
const MemoryObject ®ion,
|
2010-10-27 00:23:01 +00:00
|
|
|
uint64_t address,
|
2011-09-15 23:38:46 +00:00
|
|
|
raw_ostream &vStream,
|
|
|
|
raw_ostream &cStream) const;
|
2010-10-27 00:23:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|