LLVM: lib/Target/AMDGPU/AMDGPUMIRFormatter.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

16#ifndef LLVM_LIB_TARGET_AMDGPUMIRFORMATTER_H

17#define LLVM_LIB_TARGET_AMDGPUMIRFORMATTER_H

18

20

21namespace llvm {

22

25

27public:

30

31

32

33

35 std::optional OpIdx, int64_t Imm) const override;

36

37

38

42

43

44 bool

49

50private:

51

53

54

55 bool parseSDelayAluImmMnemonic(

58

59};

60

61}

62

63#endif

MachineInstr unsigned OpIdx

~AMDGPUMIRFormatter() override=default

bool parseCustomPseudoSourceValue(StringRef Src, MachineFunction &MF, PerFunctionMIParsingState &PFS, const PseudoSourceValue *&PSV, ErrorCallbackType ErrorCallback) const override

Implement target specific parsing of target custom pseudo source value.

void printImm(raw_ostream &OS, const MachineInstr &MI, std::optional< unsigned > OpIdx, int64_t Imm) const override

Implement target specific printing for machine operand immediate value, so that we can have more mean...

bool parseImmMnemonic(const unsigned OpCode, const unsigned OpIdx, StringRef Src, int64_t &Imm, ErrorCallbackType ErrorCallback) const override

Implement target specific parsing of immediate mnemonics.

AMDGPUMIRFormatter()=default

function_ref< bool(StringRef::iterator Loc, const Twine &)> ErrorCallbackType

Representation of each machine instruction.

Special value supplied for machine level alias analysis.

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.