LLVM: lib/Remarks/YAMLRemarkSerializer.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

17#include

18

19using namespace llvm;

21

22static void

24 std::optional RL, StringRef FunctionName,

32}

33

34namespace llvm {

35namespace yaml {

36

40

42 ;

44 ;

46 ;

47 else if (io.mapTag("!AnalysisFPCommute",

49 ;

50 else if (io.mapTag("!AnalysisAliasing",

52 ;

54 ;

55 else

57

60 }

61};

62

76

77 static const bool flow = true;

78};

79

80

81

86

96

97

98

99

100

101

102

107

108 return const_cast<T &>(seq[index]);

109 }

110};

111

112

116

117

118

122 } else {

124 }

126 }

127};

128

129}

130}

131

133

137

141 StrTab = std::move(StrTabIn);

142}

143

150

151std::unique_ptr

154 return std::make_unique(OS, ExternalFilename);

155}

156

163

165

166 std::array<char, 8> Version;

168 OS.write(Version.data(), Version.size());

169}

170

172

175 assert(!FilenameBuf.empty() && "The filename can't be empty.");

176 OS.write(FilenameBuf.data(), FilenameBuf.size());

178}

179

183

184

185

186

187

189 std::array<char, 8> StrTabSizeBuf;

191

192 OS.write(StrTabSizeBuf.data(), StrTabSizeBuf.size());

194}

assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")

static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")

static const char PassName[]

#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)

Utility for declaring that a std::vector of a particular type should be considered a YAML sequence.

This class represents an incoming formal argument to a Function.

ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...

SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...

pointer data()

Return a pointer to the vector's buffer, even if empty().

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

size_t count(char C) const

Return the number of occurrences of C in the string.

This class implements an extremely fast bulk output stream that can only output to a stream.

raw_ostream & write(unsigned char C)

virtual bool outputting() const =0

virtual bool mapTag(StringRef Tag, bool Default=false)=0

void mapOptional(StringRef Key, T &Val)

void mapRequired(StringRef Key, T &Val)

#define llvm_unreachable(msg)

Marks that the current location is not supposed to be reachable.

void write64le(void *P, uint64_t V)

LLVM_ABI std::error_code make_absolute(SmallVectorImpl< char > &path)

Make path an absolute path.

This is an optimization pass for GlobalISel generic memory operations.

auto seq(T Begin, T End)

Iterate over an integral type from Begin up to - but not including - End.

static void output(const StringBlockVal &S, void *Ctx, raw_ostream &OS)

Definition YAMLRemarkSerializer.cpp:88

static StringRef input(StringRef Scalar, void *Ctx, StringBlockVal &S)

Definition YAMLRemarkSerializer.cpp:92

This class should be specialized by type that requires custom conversion to/from a YAML literal block...

static void mapping(IO &io, Argument &A)

Definition YAMLRemarkSerializer.cpp:114

This class should be specialized by any type that needs to be converted to/from a YAML mapping.

This class should be specialized by type that requires custom conversion to/from a yaml scalar.

static Argument & element(IO &io, ArrayRef< T > &seq, size_t index)

Definition YAMLRemarkSerializer.cpp:105

static size_t size(IO &io, ArrayRef< T > &seq)

Definition YAMLRemarkSerializer.cpp:104

This class should be specialized by any type that needs to be converted to/from a YAML sequence.

Helper struct for multiline string block literals.

Definition YAMLRemarkSerializer.cpp:82

StringRef Value

Definition YAMLRemarkSerializer.cpp:83

StringBlockVal(StringRef R)

Definition YAMLRemarkSerializer.cpp:84