LLVM: lib/Target/SPIRV/MCTargetDesc/SPIRVInstPrinter.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_LIB_TARGET_SPIRV_INSTPRINTER_SPIRVINSTPRINTER_H

14#define LLVM_LIB_TARGET_SPIRV_INSTPRINTER_SPIRVINSTPRINTER_H

15

20

21namespace llvm {

23private:

25 void recordOpExtInstImport(const MCInst *MI);

26

27public:

29

33

35

40 raw_ostream &O, bool SkipFirstSpace = false,

41 bool SkipImmediates = false);

44

46 template <SPIRV::OperandCategory::OperandCategory category>

48

49

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

54};

55}

56

57#endif

This file defines the DenseSet and SmallDenseSet classes.

MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)

Instances of this class represent a single low-level machine instruction.

Wrapper class representing physical registers. Should be passed by value.

Generic base class for all target subtargets.

Definition SPIRVInstPrinter.h:22

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

static const char * getRegisterName(MCRegister Reg)

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

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

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

void printOpExtInst(const MCInst *MI, raw_ostream &O)

void printOpConstantVarOps(const MCInst *MI, unsigned StartIndex, raw_ostream &O)

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

void printRemainingVariableOps(const MCInst *MI, unsigned StartIndex, raw_ostream &O, bool SkipFirstSpace=false, bool SkipImmediates=false)

void printOpDecorate(const MCInst *MI, raw_ostream &O)

void printUnknownType(const MCInst *MI, raw_ostream &O)

MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)

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.