14#ifndef LLVM_LIB_TARGET_M68K_INSTPRINTER_M68KINSTPRINTER_H
15#define LLVM_LIB_TARGET_M68K_INSTPRINTER_M68KINSTPRINTER_H
45 std::pair<const char *, uint64_t>
64 printAbsMem(
MI, opNum, O);
70 void printARI16Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
73 void printARI32Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
77 void printARIPI8Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
80 void printARIPI16Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
83 void printARIPI32Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
87 void printARIPD8Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
90 void printARIPD16Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
93 void printARIPD32Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
97 void printARID8Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
100 void printARID16Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
103 void printARID32Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
107 void printARII8Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
110 void printARII16Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
113 void printARII32Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
117 void printAS8Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
118 printAbsMem(
MI, opNum, O);
120 void printAS16Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
121 printAbsMem(
MI, opNum, O);
123 void printAS32Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
124 printAbsMem(
MI, opNum, O);
127 void printAL8Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
128 printAbsMem(
MI, opNum, O);
130 void printAL16Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
131 printAbsMem(
MI, opNum, O);
133 void printAL32Mem(
const MCInst *
MI,
unsigned opNum, raw_ostream &O) {
134 printAbsMem(
MI, opNum, O);
This file contains memory operand printing logics shared between AsmPrinter.
static bool printOperand(raw_ostream &OS, const SelectionDAG *G, const SDValue Value)
M68kInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &OS)
void printRegName(raw_ostream &OS, MCRegister Reg) override
Print the assembler register name.
std::pair< const char *, uint64_t > getMnemonic(const MCInst &MI) const override
Returns a pair containing the mnemonic for MI and the number of bits left for further processing by p...
void printInst(const MCInst *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &O) override
Print the specified MCInst to the specified raw_ostream.
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O)
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx, unsigned PrintMethodIdx, raw_ostream &O)
static const char * getRegisterName(MCRegister Reg)
void printARIDMem(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 printARIPDMem(const MCInst *MI, unsigned OpNum, raw_ostream &O)
void printARIPIMem(const MCInst *MI, unsigned OpNum, raw_ostream &O)
void printARIIMem(const MCInst *MI, unsigned OpNum, raw_ostream &O)
void printARIMem(const MCInst *MI, unsigned OpNum, raw_ostream &O)
This class is intended to be used as a base class for asm properties and features specific to the tar...
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
const MCRegisterInfo & MRI
Instances of this class represent a single low-level machine instruction.
Interface to description of machine instruction set.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Wrapper class representing physical registers. Should be passed by value.
Generic base class for all target subtargets.
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.