LLVM: lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86INTELINSTPRINTER_H

14#define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86INTELINSTPRINTER_H

15

18

19namespace llvm {

20

22public:

26

31

32

33

36 unsigned OpIdx, unsigned PrintMethodIdx,

38

39

40 std::pair<const char *, uint64_t>

44

52

54 O << "byte ptr ";

56 }

58 O << "word ptr ";

60 }

62 O << "dword ptr ";

64 }

66 O << "qword ptr ";

68 }

70 O << "xmmword ptr ";

72 }

74 O << "ymmword ptr ";

76 }

78 O << "zmmword ptr ";

80 }

82 O << "tbyte ptr ";

84 }

85

86

88 O << "byte ptr ";

90 }

92 O << "word ptr ";

94 }

96 O << "dword ptr ";

98 }

100 O << "qword ptr ";

102 }

104 O << "byte ptr ";

106 }

108 O << "word ptr ";

110 }

112 O << "dword ptr ";

114 }

116 O << "qword ptr ";

118 }

120 O << "byte ptr ";

122 }

124 O << "word ptr ";

126 }

128 O << "dword ptr ";

130 }

132 O << "qword ptr ";

134 }

135};

136

137}

138

139#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

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.

void printMemOffset(const MCInst *MI, unsigned OpNo, raw_ostream &O)

void printMemOffs32(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:127

void printymmwordmem(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:73

void printwordmem(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:57

bool printVecCompareInstr(const MCInst *MI, raw_ostream &OS)

void printMemOffs16(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:123

void printRegName(raw_ostream &OS, MCRegister Reg) override

Print the assembler register name.

void printDstIdx16(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:107

void printxmmwordmem(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:69

void printU8Imm(const MCInst *MI, unsigned Op, raw_ostream &O)

void printdwordmem(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:61

void printSTiRegOperand(const MCInst *MI, unsigned OpNo, raw_ostream &OS)

void printCustomAliasOperand(const MCInst *MI, uint64_t Address, unsigned OpIdx, unsigned PrintMethodIdx, raw_ostream &O)

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 printzmmwordmem(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:77

void printDstIdx8(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:103

void printSrcIdx8(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:87

void printDstIdx32(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:111

void printMemOffs64(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:131

void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O)

void printSrcIdx(const MCInst *MI, unsigned OpNo, raw_ostream &O)

void printbytemem(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:53

void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) override

void printSrcIdx32(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:95

void printSrcIdx64(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:99

X86IntelInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)

Definition X86IntelInstPrinter.h:23

bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &OS)

void printDstIdx64(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:115

void printDstIdx(const MCInst *MI, unsigned OpNo, raw_ostream &O)

static const char * getRegisterName(MCRegister Reg)

void printSrcIdx16(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:91

void printInst(const MCInst *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &OS) override

Print the specified MCInst to the specified raw_ostream.

void printMemReference(const MCInst *MI, unsigned Op, raw_ostream &O)

void printMemOffs8(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:119

void printqwordmem(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:65

void printtbytemem(const MCInst *MI, unsigned OpNo, raw_ostream &O)

Definition X86IntelInstPrinter.h:81

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.

DWARFExpression::Operation Op