2009-10-21 00:10:30 +00:00
|
|
|
//===-- MSP430InstPrinter.h - Convert MSP430 MCInst to assembly syntax ----===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This class prints a MSP430 MCInst to a .s file.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef MSP430INSTPRINTER_H
|
|
|
|
#define MSP430INSTPRINTER_H
|
|
|
|
|
|
|
|
#include "llvm/MC/MCInstPrinter.h"
|
|
|
|
|
2010-04-04 05:04:31 +00:00
|
|
|
namespace llvm {
|
2009-10-21 00:10:30 +00:00
|
|
|
class MCOperand;
|
|
|
|
|
|
|
|
class MSP430InstPrinter : public MCInstPrinter {
|
|
|
|
public:
|
2010-04-04 05:04:31 +00:00
|
|
|
MSP430InstPrinter(const MCAsmInfo &MAI) : MCInstPrinter(MAI) {
|
2009-10-21 00:10:30 +00:00
|
|
|
}
|
|
|
|
|
2010-04-04 05:04:31 +00:00
|
|
|
virtual void printInst(const MCInst *MI, raw_ostream &O);
|
2009-10-21 00:10:30 +00:00
|
|
|
|
|
|
|
// Autogenerated by tblgen.
|
2010-04-04 04:47:45 +00:00
|
|
|
void printInstruction(const MCInst *MI, raw_ostream &O);
|
2009-10-21 00:10:30 +00:00
|
|
|
static const char *getRegisterName(unsigned RegNo);
|
|
|
|
|
2010-04-04 04:47:45 +00:00
|
|
|
void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O,
|
2009-10-21 00:11:27 +00:00
|
|
|
const char *Modifier = 0);
|
2010-04-04 04:47:45 +00:00
|
|
|
void printPCRelImmOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
|
|
|
|
void printSrcMemOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O,
|
2009-10-21 00:12:08 +00:00
|
|
|
const char *Modifier = 0);
|
2010-04-04 04:47:45 +00:00
|
|
|
void printCCOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
|
2009-10-21 00:10:30 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|