LLVM: lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSINSTPRINTER_H
14#define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSINSTPRINTER_H
16
17namespace llvm {
18
19
20
21namespace Mips {
22
30
31
71
73}
74
76public:
80
81
82 std::pair<const char *, uint64_t>
87
91
95 unsigned OpIdx, unsigned PrintMethodIdx,
97
98private:
101 void printJumpOperand(const MCInst *MI, unsigned OpNo,
105 template <unsigned Bits, unsigned Offset = 0>
110 void printMemOperandEA(const MCInst *MI, int opNum,
115
118 bool IsBranch = false);
120 unsigned OpNo0, unsigned OpNo1, const MCSubtargetInfo &STI,
126 void printRegisterList(const MCInst *MI, int opNum,
128};
129}
130
131#endif
MachineInstr unsigned OpIdx
This class is intended to be used as a base class for asm properties and features specific to the tar...
const MCRegisterInfo & MRI
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, 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.
void printCustomAliasOperand(const MCInst *MI, uint64_t Address, unsigned OpIdx, unsigned PrintMethodIdx, const MCSubtargetInfo &STI, raw_ostream &O)
void printRegName(raw_ostream &OS, MCRegister Reg) override
Print the assembler register name.
void printInstruction(const MCInst *MI, uint64_t Address, const MCSubtargetInfo &STI, raw_ostream &O)
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.
MipsInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
Definition MipsInstPrinter.h:77
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...
static const char * getRegisterName(MCRegister Reg)
bool printAliasInstr(const MCInst *MI, uint64_t Address, const MCSubtargetInfo &STI, raw_ostream &OS)
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.
const char * MipsFCCToString(Mips::CondCode CC)
CondCode
Definition MipsInstPrinter.h:32
@ FCOND_SF
Definition MipsInstPrinter.h:42
@ FCOND_ULE
Definition MipsInstPrinter.h:41
@ FCOND_GLE
Definition MipsInstPrinter.h:63
@ FCOND_UEQ
Definition MipsInstPrinter.h:37
@ FCOND_OGE
Definition MipsInstPrinter.h:59
@ FCOND_F
Definition MipsInstPrinter.h:34
@ FCOND_OEQ
Definition MipsInstPrinter.h:36
@ FCOND_UNE
Definition MipsInstPrinter.h:56
@ FCOND_OR
Definition MipsInstPrinter.h:55
@ FCOND_NGE
Definition MipsInstPrinter.h:47
@ FCOND_OLE
Definition MipsInstPrinter.h:40
@ FCOND_UGT
Definition MipsInstPrinter.h:60
@ FCOND_ST
Definition MipsInstPrinter.h:62
@ FCOND_GT
Definition MipsInstPrinter.h:69
@ FCOND_NLT
Definition MipsInstPrinter.h:66
@ FCOND_UN
Definition MipsInstPrinter.h:35
@ FCOND_ULT
Definition MipsInstPrinter.h:39
@ FCOND_OGT
Definition MipsInstPrinter.h:61
@ FCOND_NLE
Definition MipsInstPrinter.h:68
@ FCOND_GL
Definition MipsInstPrinter.h:65
@ FCOND_NGT
Definition MipsInstPrinter.h:49
@ FCOND_GE
Definition MipsInstPrinter.h:67
@ FCOND_NGLE
Definition MipsInstPrinter.h:43
@ FCOND_ONE
Definition MipsInstPrinter.h:57
@ FCOND_NGL
Definition MipsInstPrinter.h:45
@ FCOND_LE
Definition MipsInstPrinter.h:48
@ FCOND_T
Definition MipsInstPrinter.h:54
@ FCOND_LT
Definition MipsInstPrinter.h:46
@ FCOND_OLT
Definition MipsInstPrinter.h:38
@ FCOND_SEQ
Definition MipsInstPrinter.h:44
@ FCOND_UGE
Definition MipsInstPrinter.h:58
@ FCOND_SNE
Definition MipsInstPrinter.h:64
FPBranchCode
Definition MipsInstPrinter.h:23
@ BRANCH_FL
Definition MipsInstPrinter.h:26
@ BRANCH_TL
Definition MipsInstPrinter.h:27
@ BRANCH_INVALID
Definition MipsInstPrinter.h:28
@ BRANCH_T
Definition MipsInstPrinter.h:25
@ BRANCH_F
Definition MipsInstPrinter.h:24
This is an optimization pass for GlobalISel generic memory operations.