#ifndef LLVM_LIB_TARGET_M68K_INSTPRINTER_M68KINSTPRINTER_H
#define LLVM_LIB_TARGET_M68K_INSTPRINTER_M68KINSTPRINTER_H
#include "llvm/MC/MCInstPrinter.h"
namespace llvm {
class TargetMachine;
class M68kInstPrinter : public MCInstPrinter {
public:
M68kInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
const MCRegisterInfo &MRI)
: MCInstPrinter(MAI, MII, MRI) {}
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O);
static const char *getRegisterName(unsigned RegNo);
void printRegName(raw_ostream &OS, unsigned RegNo) const override;
void printInst(const MCInst *MI, uint64_t Address, StringRef Annot,
const MCSubtargetInfo &STI, raw_ostream &O) override;
bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &OS);
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
unsigned PrintMethodIdx, raw_ostream &O);
std::pair<const char *, uint64_t> getMnemonic(const MCInst *MI) override;
private:
void printOperand(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printImmediate(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printMoveMask(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printMoveMaskR(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printDisp(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printARIMem(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printARIPIMem(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printARIPDMem(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printARIDMem(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printARIIMem(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printAbsMem(const MCInst *MI, unsigned opNum, raw_ostream &O);
void printPCDMem(const MCInst *MI, uint64_t Address, unsigned opNum,
raw_ostream &O);
void printPCIMem(const MCInst *MI, uint64_t Address, unsigned opNum,
raw_ostream &O);
void printPCRelImm(const MCInst *MI, uint64_t Address, unsigned opNum,
raw_ostream &O) {
printAbsMem(MI, opNum, O);
}
void printARI8Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIMem(MI, opNum, O);
}
void printARI16Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIMem(MI, opNum, O);
}
void printARI32Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIMem(MI, opNum, O);
}
void printARIPI8Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIPIMem(MI, opNum, O);
}
void printARIPI16Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIPIMem(MI, opNum, O);
}
void printARIPI32Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIPIMem(MI, opNum, O);
}
void printARIPD8Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIPDMem(MI, opNum, O);
}
void printARIPD16Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIPDMem(MI, opNum, O);
}
void printARIPD32Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIPDMem(MI, opNum, O);
}
void printARID8Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIDMem(MI, opNum, O);
}
void printARID16Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIDMem(MI, opNum, O);
}
void printARID32Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIDMem(MI, opNum, O);
}
void printARII8Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIIMem(MI, opNum, O);
}
void printARII16Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIIMem(MI, opNum, O);
}
void printARII32Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printARIIMem(MI, opNum, O);
}
void printAS8Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printAbsMem(MI, opNum, O);
}
void printAS16Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printAbsMem(MI, opNum, O);
}
void printAS32Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printAbsMem(MI, opNum, O);
}
void printAL8Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printAbsMem(MI, opNum, O);
}
void printAL16Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printAbsMem(MI, opNum, O);
}
void printAL32Mem(const MCInst *MI, unsigned opNum, raw_ostream &O) {
printAbsMem(MI, opNum, O);
}
void printPCD8Mem(const MCInst *MI, uint64_t Address, unsigned opNum,
raw_ostream &O) {
printPCDMem(MI, Address, opNum, O);
}
void printPCD16Mem(const MCInst *MI, uint64_t Address, unsigned opNum,
raw_ostream &O) {
printPCDMem(MI, Address, opNum, O);
}
void printPCD32Mem(const MCInst *MI, uint64_t Address, unsigned opNum,
raw_ostream &O) {
printPCDMem(MI, Address, opNum, O);
}
void printPCI8Mem(const MCInst *MI, uint64_t Address, unsigned opNum,
raw_ostream &O) {
printPCIMem(MI, Address, opNum, O);
}
void printPCI16Mem(const MCInst *MI, uint64_t Address, unsigned opNum,
raw_ostream &O) {
printPCIMem(MI, Address, opNum, O);
}
void printPCI32Mem(const MCInst *MI, uint64_t Address, unsigned opNum,
raw_ostream &O) {
printPCIMem(MI, Address, opNum, O);
}
};
}
#endif