LLVM: lib/Target/M68k/MCTargetDesc/M68kMemOperandPrinter.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15#ifndef LLVM_LIB_TARGET_M68K_MEMOPERANDPRINTER_M68KINSTPRINTER_H
16#define LLVM_LIB_TARGET_M68K_MEMOPERANDPRINTER_M68KINSTPRINTER_H
17
19
21
22namespace llvm {
24 Derived &impl() { return *static_cast<Derived *>(this); }
25
26protected:
28 O << '(';
29 impl().printOperand(MI, OpNum, O);
30 O << ')';
31 }
32
34 O << "(";
35 impl().printOperand(MI, OpNum, O);
36 O << ")+";
37 }
38
40 O << "-(";
41 impl().printOperand(MI, OpNum, O);
42 O << ")";
43 }
44
46 O << '(';
48 O << ',';
50 O << ')';
51 }
52
54 O << '(';
56 O << ',';
58 O << ',';
60 O << ')';
61 }
62
65 O << '(';
67 O << ",%pc)";
68 }
69
72 O << '(';
74 O << ",%pc,";
76 O << ')';
77 }
78};
79}
80#endif
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)
Definition M68kMemOperandPrinter.h:45
void printPCDMem(const InstTy *MI, uint64_t Address, unsigned OpNum, raw_ostream &O)
Definition M68kMemOperandPrinter.h:63
void printPCIMem(const InstTy *MI, uint64_t Address, unsigned OpNum, raw_ostream &O)
Definition M68kMemOperandPrinter.h:70
void printARIPDMem(const InstTy *MI, unsigned OpNum, raw_ostream &O)
Definition M68kMemOperandPrinter.h:39
void printARIPIMem(const InstTy *MI, unsigned OpNum, raw_ostream &O)
Definition M68kMemOperandPrinter.h:33
void printARIIMem(const InstTy *MI, unsigned OpNum, raw_ostream &O)
Definition M68kMemOperandPrinter.h:53
void printARIMem(const InstTy *MI, unsigned OpNum, raw_ostream &O)
Definition M68kMemOperandPrinter.h:27
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.