forked from OSchip/llvm-project
				
			
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
| //===-- MBlazeDisassembler.h - Disassembler for MicroBlaze  -----*- C++ -*-===//
 | |
| //
 | |
| //                     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.
 | |
|   ///
 | |
|   MBlazeDisassembler(const MCSubtargetInfo &STI) :
 | |
|     MCDisassembler(STI) {
 | |
|   }
 | |
| 
 | |
|   ~MBlazeDisassembler() {
 | |
|   }
 | |
| 
 | |
|   /// getInstruction - See MCDisassembler.
 | |
|   MCDisassembler::DecodeStatus getInstruction(MCInst &instr,
 | |
|                       uint64_t &size,
 | |
|                       const MemoryObject ®ion,
 | |
|                       uint64_t address,
 | |
|                       raw_ostream &vStream,
 | |
|                       raw_ostream &cStream) const;
 | |
| };
 | |
| 
 | |
| } // namespace llvm
 | |
|   
 | |
| #endif
 |