LLVM: lib/IR/DiagnosticPrinter.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

19

20using namespace llvm;

21

26

31

36

41

46

48 const std::string &Str) {

50 return *this;

51}

52

61

63 unsigned long long N) {

65 return *this;

66}

67

72

77

82

87

92

97

98

100

101 if (V.hasName())

102 Stream << V.getName();

103 else

104 V.printAsOperand(Stream, false);

105

106 return *this;

107}

108

110 Stream << M.getModuleIdentifier();

111 return *this;

112}

113

114

117

118

119 Diag.print("", Stream, true, false);

120 return *this;

121}

Module.h This file contains the declarations for the Module class.

DiagnosticPrinter & operator<<(char C) override

Definition DiagnosticPrinter.cpp:22

Interface for custom diagnostic printing.

A Module instance is used to store all the information related to an LLVM module.

Instances of this class encapsulate one diagnostic report, allowing printing to a raw_ostream as a ca...

LLVM_ABI void print(const char *ProgName, raw_ostream &S, bool ShowColors=true, bool ShowKindLabel=true, bool ShowLocation=true) const

StringRef - Represent a constant reference to a string, i.e.

Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...

LLVM Value Representation.

@ C

The default llvm calling convention, compatible with C.

This is an optimization pass for GlobalISel generic memory operations.