15#ifndef LLVM_LIB_TARGET_M68K_MEMOPERANDPRINTER_M68KINSTPRINTER_H
16#define LLVM_LIB_TARGET_M68K_MEMOPERANDPRINTER_M68KINSTPRINTER_H
24 Derived &impl() {
return *
static_cast<Derived *
>(
this); }
29 impl().printOperand(
MI, OpNum, O);
35 impl().printOperand(
MI, OpNum, O);
41 impl().printOperand(
MI, OpNum, O);
79 template <
size_t IndexSize>
82 static_assert(IndexSize == 16 || IndexSize == 32,
"unsupported index size");
90 if (!RegStr.empty()) {
92 O << (IndexSize == 16 ?
".W" :
".L");
This file contains small standalone helper functions and enum definitions for the M68k target useful ...
void printARIDMem(const InstTy *MI, unsigned OpNum, raw_ostream &O)
void printPCDMem(const InstTy *MI, uint64_t Address, unsigned OpNum, raw_ostream &O)
void printPCIMem(const InstTy *MI, uint64_t Address, unsigned OpNum, raw_ostream &O)
void printARIPDMem(const InstTy *MI, unsigned OpNum, raw_ostream &O)
void printARIPIMem(const InstTy *MI, unsigned OpNum, raw_ostream &O)
void printARIIMem(const InstTy *MI, unsigned OpNum, raw_ostream &O)
void printARIMem(const InstTy *MI, unsigned OpNum, raw_ostream &O)
void printPCIBDMem(const InstTy *MI, uint64_t Address, unsigned OpNum, raw_ostream &O)
This class implements an extremely fast bulk output stream that can only output to a stream.
A raw_ostream that writes to an std::string.
This is an optimization pass for GlobalISel generic memory operations.